Files

23 lines
399 B
Makefile

#
# Component Makefile
#
COMPONENT_SRCDIRS := src
ifdef IS_BOOTLOADER_BUILD
COMPONENT_OBJS := src/spi_flash.o src/spi_flash_raw.o
endif
COMPONENT_ADD_LDFRAGMENTS += linker.lf
CFLAGS += -DPARTITION_QUEUE_HEADER=\"sys/queue.h\"
ifdef IS_BOOTLOADER_BUILD
COMPONENT_SRCDIRS += port
COMPONENT_OBJS += port/port.o
else
ifdef CONFIG_ENABLE_TH25Q16HB_PATCH_0
COMPONENT_SRCDIRS += src/patch
endif
endif