Wirepas SDK
makefile_stack.mk
Go to the documentation of this file.
1include makefile_common.mk
2
3# Include build-time make variables that depend on the selected configuration
4include $(BUILD_VARIABLES_MK)
5
6.DEFAULT_GOAL := all
7
8
9stack_mode ?= normal
10modemfw_name ?=
11
12$(STACK_HEX): FORCE
13 @echo "$(COLOR_INFO)Select Stack firmware from the image folder$(COLOR_END)"
14 $(DD)$(MKDIR) $(@D)
15 $(DD)$(MKDIR) $(EXTRACT_PATH)
16 $(D)$(FMW_SEL) --firmware_path=$(FIRMWARE_PATH)\
17 --firmware_type="wp_stack"\
18 --archive_path=$(ARCHIVE_PATH)\
19 --extract_path=$(EXTRACT_PATH)\
20 --output_path=$(@D)\
21 --output_name=$(FIRMWARE_NAME)\
22 --mcu=$(MCU)\
23 --mcu_sub=$(MCU_SUB)\
24 --mcu_mem_var=$(MCU_MEM_VAR)\
25 --mac_profile=$(mac_profile)\
26 --mac_profileid=$(mac_profileid)\
27 --mode=$(stack_mode)\
28 --modem_fw=$(modemfw_name)\
29 --radio=$(radio)\
30 --radio_config=$(radio_config)\
31 --version=$(MIN_STACK_VERSION)\
32 --stack_area_addr=$(stack_area_addr)
33
34.PHONY: all
35all: $(STACK_HEX)
36
37clean:
38 $(D)$(RM) -rf $(STACK_HEX)
39
40# Special rule to force other rule to run every time
41FORCE: