my Makefile contains many build configurations:
Code: Select all
TARGET = my_board
APP_NAME = my_app
BUILD_FLAGS = -DFLASH_MAX_UPGRADE_SIZE=64*1024 -fcomment-asm -Xmapper --map -Xmapper MAPFILE -Wall -O3 -report -lquadflash -fsubword-select -save-temps -g -fxscope -DXSCOPE -DXUD_SERIES_SUPPORT=4 -march=xs2a -DUSB_TILE=tile[1] -DADAT_TX_USE_SHARED_BUFF=1 -DQUAD_SPI_FLASH=1 // General flags for all build configurations
XCC_FLAGS_config1 = $(BUILD_FLAGS) some defines
INCLUDE_ONLY_IN_config1 =
XCC_FLAGS_config2 = $(BUILD_FLAGS) some defines
INCLUDE_ONLY_IN_config2 =
USED_MODULES = module_dfu lib_i2c module_spdif_rx module_spdif_tx module_usb_audio module_usb_device module_usb_shared module_xud lib_otpinfo
Is it possible to build additional library only for config2?