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 stack_mode ?= normal
9modemfw_name ?=
10
11$(STACK_HEX): FORCE
12 @echo "$(COLOR_INFO)Select Stack firmware from the image folder$(COLOR_END)"
13 $(DD)$(MKDIR) $(@D)
14 $(DD)$(MKDIR) $(EXTRACT_PATH)
15 $(D)$(FMW_SEL) --firmware_path=$(FIRMWARE_PATH)\
16 --firmware_type="wp_stack"\
17 --archive_path=$(ARCHIVE_PATH)\
18 --extract_path=$(EXTRACT_PATH)\
19 --output_path=$(@D)\
20 --output_name=$(FIRMWARE_NAME)\
21 --mcu=$(MCU)\
22 --mcu_sub=$(MCU_SUB)\
23 --mcu_mem_var=$(MCU_MEM_VAR)\
24 --mac_profile=$(mac_profile)\
25 --mac_profileid=$(mac_profileid)\
26 --mode=$(stack_mode)\
27 --modem_fw=$(modemfw_name)\
28 --radio=$(radio)\
29 --radio_config=$(radio_config)\
30 --version=$(MIN_STACK_VERSION)\
31 --stack_area_addr=$(stack_area_addr)
32
33.PHONY: all
34all: $(STACK_HEX)
35
36clean:
37 $(D)$(RM) -rf $(STACK_HEX)
38
39# Special rule to force other rule to run every time
40FORCE: