-
Notifications
You must be signed in to change notification settings - Fork 518
/
Copy pathmakefile
38 lines (27 loc) · 1.31 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
MODULE=system-part1
SYSTEM_PART1_MODULE_PATH=.
PROJECT_ROOT = ../../..
BUILD_PATH_EXT = $(BUILD_TARGET_PLATFORM)
HAL_LINK :=
PLATFORM_DFU = 0x30000
NCP_FIRMWARE_MODULE_VERSION=4
# MODULE_DEPENDENCY2=7,0,$(NCP_FIRMWARE_MODULE_VERSION)
DEPENDENCIES = newlib_nano modules/argon/user-part modules/argon/system-part1 dynalib services hal platform system wiring communication rt-dynalib crypto proto_defs
LIB_DEPENDENCIES = services system wiring communication hal platform crypto proto_defs
export FORCE_LTO=1
# newlib_nano is special in that it's linked automatically by the system, so no need to add it to the library path here
MAKE_DEPENDENCIES = newlib_nano $(LIB_DEPENDENCIES)
include ../modular.mk
include $(PROJECT_ROOT)/build/platform-id.mk
LIBS += $(LIB_DEPENDENCIES)
LIB_DEPS += $(SERVICES_LIB_DEP) $(PLATFORM_LIB_DEP) $(HAL_LIB_DEP) $(SYSTEM_LIB_DEP) $(COMMUNICATION_LIB_DEP) $(WIRING_LIB_DEP) $(CRYPTO_LIB_DEP) $(PROTO_DEFS_LIB_DEP)
DEPENDENCIES += wiring_globals
LIB_DEPENDENCIES += wiring_globals
LIB_DEPS += $(WIRING_GLOBALS_LIB_DEP)
LIB_DIRS += $(dir $(LIB_DEPS))
TARGET=elf bin lst hex size
include $(PROJECT_ROOT)/build/arm-tlm.mk
# NOTE: When compiling with LTO vTaskSwitchContext is getting linked out, despite the fact that it's
# marked as used.
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
$(call check_modular)