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