zephyr/ext/hal/ti/cc3200sdk/Kbuild

19 lines
938 B
Makefile

# CONFIG_CC3200SDK_BUILTIN can be used for debugging purposes.
# In that case, the CC3200 SDK driverlib must be built with level 0
# optimization (-O0) for the uart module to work properly.
# Note the default build for Zephyr is CONFIG_CC3200SDK_ROM_DRIVERLIB=y
# which uses the ROM versions of the APIs instead.
ccflags-$(CONFIG_CC3200SDK_BUILTIN) += -O0
ccflags-$(CONFIG_HAS_CC3200SDK) += -D$(COMPILER)
obj-$(CONFIG_CC3200SDK_BUILTIN) += driverlib/gpio.o
obj-$(CONFIG_CC3200SDK_BUILTIN) += driverlib/interrupt.o
obj-$(CONFIG_CC3200SDK_BUILTIN) += driverlib/pin.o
obj-$(CONFIG_CC3200SDK_BUILTIN) += driverlib/uart.o
obj-$(CONFIG_CC3200SDK_BUILTIN) += driverlib/udma.o
# spi.c warns on parens
CFLAGS_spi.o += -Wno-parentheses
obj-$(CONFIG_CC3200SDK_BUILTIN) += driverlib/spi.o
# Need prcm and utils for PRCMCC3200MCUInit which is not in ROM
obj-$(CONFIG_HAS_CC3200SDK) += driverlib/utils.o
obj-$(CONFIG_HAS_CC3200SDK) += driverlib/prcm.o