-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
executable file
·111 lines (89 loc) · 3 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
MCU_PLUS_SDK_PATH ?= $(abspath .)
include imports.mak
# Default device
DEVICE ?= am62x
# debug, release
PROFILE?=release
# GP, HS
DEVICE_TYPE?=GP
ifeq ($(DEVICE),$(filter $(DEVICE), am64x))
SYSCFG_DEVICE = AM64x_beta
# default syscfg CPU to use,
# options on am64x are r5fss0-0, r5fss0-1, r5fss1-0, r5fss1-1, m4fss0-0
SYSCFG_CPU = r5fss0-0
endif
ifeq ($(DEVICE),$(filter $(DEVICE), am243x))
SYSCFG_DEVICE = AM243x_ALV_beta
# default syscfg CPU to use,
# options on am64x are r5fss0-0, r5fss0-1, r5fss1-0, r5fss1-1, m4fss0-0
SYSCFG_CPU = r5fss0-0
endif
ifeq ($(DEVICE),$(filter $(DEVICE), am263x))
SYSCFG_DEVICE = AM263x_beta
# default syscfg CPU to use,
# options on am263x are r5fss0-0, r5fss0-1, r5fss1-0, r5fss1-1
SYSCFG_CPU = r5fss0-0
endif
ifeq ($(DEVICE),$(filter $(DEVICE), am273x))
SYSCFG_DEVICE = AM273x
# default syscfg CPU to use,
# options on am273x are r5fss0-0, r5fss0-1, c66ss0
SYSCFG_CPU = r5fss0-0
endif
ifeq ($(DEVICE),$(filter $(DEVICE), awr294x))
SYSCFG_DEVICE = AWR294X
# default syscfg CPU to use,
# options on awr294x are r5fss0-0, r5fss0-1, c66ss0
SYSCFG_CPU = r5fss0-0
endif
ifeq ($(DEVICE),$(filter $(DEVICE), am62x))
SYSCFG_DEVICE = AM62x
# default syscfg CPU to use,
# options on am62x are m4fss0-0
SYSCFG_CPU = m4fss0-0
endif
ifeq ($(DEVICE),$(filter $(DEVICE), am62ax))
SYSCFG_DEVICE = AM62Ax
# default syscfg CPU to use,
# options on am62x are m4fss0-0
SYSCFG_CPU = r5fss0-0
endif
all:
$(MAKE) -C . -f makefile.$(DEVICE) all PROFILE=$(PROFILE)
clean:
$(MAKE) -C . -f makefile.$(DEVICE) clean PROFILE=$(PROFILE)
scrub:
$(MAKE) -C . -f makefile.$(DEVICE) scrub PROFILE=$(PROFILE)
libs:
$(MAKE) -C . -f makefile.$(DEVICE) libs PROFILE=$(PROFILE) DEVICE_TYPE=$(DEVICE_TYPE)
libs-clean:
$(MAKE) -C . -f makefile.$(DEVICE) libs-clean PROFILE=$(PROFILE)
libs-scrub:
$(MAKE) -C . -f makefile.$(DEVICE) libs-scrub PROFILE=$(PROFILE)
examples:
$(MAKE) -C . -f makefile.$(DEVICE) examples PROFILE=$(PROFILE)
examples-clean:
$(MAKE) -C . -f makefile.$(DEVICE) examples-clean PROFILE=$(PROFILE)
examples-scrub:
$(MAKE) -C . -f makefile.$(DEVICE) examples-scrub PROFILE=$(PROFILE)
help:
$(MAKE) -C . -f makefile.$(DEVICE) -s help PROFILE=$(PROFILE)
sbl:
$(MAKE) -C . -f makefile.$(DEVICE) sbl PROFILE=$(PROFILE)
sbl-hs:
$(MAKE) -C . -f makefile.$(DEVICE) sbl-hs PROFILE=$(PROFILE)
sbl-clean:
$(MAKE) -C . -f makefile.$(DEVICE) sbl-clean PROFILE=$(PROFILE)
sbl-scrub:
$(MAKE) -C . -f makefile.$(DEVICE) sbl-scrub PROFILE=$(PROFILE)
syscfg-gui:
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(SYSCFG_SDKPRODUCT) --device $(SYSCFG_DEVICE) --context $(SYSCFG_CPU)
devconfig:
$(SYSCFG_NWJS) $(SYSCFG_PATH) --product $(MCU_PLUS_SDK_PATH)/devconfig/devconfig.json --device $(SYSCFG_DEVICE) --context $(SYSCFG_CPU) --output devconfig/ $(MCU_PLUS_SDK_PATH)/devconfig/devconfig.syscfg
.PHONY: all clean scrub
.PHONY: libs libs-clean libs-scrub
.PHONY: examples examples-clean examples-scrub
.PHONY: help
.PHONY: sbl sbl-clean sbl-scrub
.PHONY: syscfg-gui
.PHONY: devconfig