-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
31 lines (22 loc) · 868 Bytes
/
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
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
NAME := $(notdir $(CURDIR))
SUBFOLDERS := stage1 stage2 stage3_universal_otherapp bb3_installer bb3_installer/payload bb3_installer/payload/otherapp_template
MAKEOPTS :=
.PHONY: all release clean $(SUBFOLDERS) slotTool
all: usm.bin slotTool
clean:
@$(MAKE) -C slotTool clean
@$(foreach dir, $(SUBFOLDERS), $(MAKE) -C $(dir) clean &&) true
@rm -rf usm.bin
@echo clean ...
usm.bin: $(SUBFOLDERS) build_payload.py
@python build_payload.py
@echo built ... $(notdir $@)
# If the output slot1.bin is the same, don't rebuild slotTool
slotTool: $(SUBFOLDERS)
@$(MAKE) -C $@ all
$(SUBFOLDERS):
@$(MAKE) -C $@ $(MAKEOPTS) all
stage3_universal_otherapp: MAKEOPTS += MEMCHUNKHAX_ONLY=1