forked from TexasInstruments/mcupsdk-core-k3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
executable file
·181 lines (144 loc) · 5.43 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
MCU_PLUS_SDK_PATH ?= $(abspath .)
include imports.mak
# Default device
DEVICE?=am62px
# 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
ifeq ($(DEVICE),$(filter $(DEVICE), am62px))
SYSCFG_DEVICE = AM62Px
# default syscfg CPU to use,
# options on am62ax are wkup-r5fss0-0, mcu-r5fss0-0
SYSCFG_CPU = mcu-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
################ Internal make targets - not to be used by customers ################
NODE=node
GEN_BUILDFILES_TARGET?=development
INSTRUMENTATION_MODE?=disable
DOC_COMBO = r5f.ti-arm-clang
# default combo for doc generation
ifeq ($(DEVICE),$(filter $(DEVICE), am62x))
DOC_COMBO = m4f.ti-arm-clang
endif
projectspec-help:
$(MAKE) -C . -f makefile_projectspec.$(DEVICE) -s help PROFILE=$(PROFILE)
docs:
$(MAKE) -C docs_src/docs/api_guide all DEVICE=$(DEVICE) DOC_COMBO=$(DOC_COMBO)
docs-clean:
$(MAKE) -C docs_src/docs/api_guide clean DEVICE=$(DEVICE) DOC_COMBO=$(DOC_COMBO)
gen-buildfiles:
$(NODE) ./.project/project.js --device $(DEVICE) --target $(GEN_BUILDFILES_TARGET) --instrumentation $(INSTRUMENTATION_MODE)
gen-buildfiles-clean:
$(NODE) ./.project/project.js --device $(DEVICE) --target clean
tests: libs
$(MAKE) -C test -f makefile.$(DEVICE) all PROFILE=$(PROFILE)
tests-clean:
$(MAKE) -C test -f makefile.$(DEVICE) clean PROFILE=$(PROFILE)
tests-scrub:
$(MAKE) -C test -f makefile.$(DEVICE) scrub PROFILE=$(PROFILE)
tests-libs: libs
$(MAKE) -C test -f makefile.$(DEVICE) libs PROFILE=$(PROFILE)
tests-libs-clean:
$(MAKE) -C test -f makefile.$(DEVICE) libs-clean PROFILE=$(PROFILE)
tests-libs-scrub:
$(MAKE) -C test -f makefile.$(DEVICE) libs-scrub PROFILE=$(PROFILE)
syscfg-tests:
ifeq ($(DEVICE),$(filter $(DEVICE), am64x))
-$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/tests/sanityTests.js -s $(SYSCFG_SDKPRODUCT) -d $(SYSCFG_DEVICE) -c a53ss0-0
endif
ifeq ($(DEVICE),$(filter $(DEVICE), am64x am243x am62x))
-$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/tests/sanityTests.js -s $(SYSCFG_SDKPRODUCT) -d $(SYSCFG_DEVICE) -c m4fss0-0
endif
ifeq ($(DEVICE),$(filter $(DEVICE), am62ax am62px))
-$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/tests/sanityTests.js -s $(SYSCFG_SDKPRODUCT) -d $(SYSCFG_DEVICE) -c mcu-r5fss0-0
endif
-$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/tests/sanityTests.js -s $(SYSCFG_SDKPRODUCT) -d $(SYSCFG_DEVICE) -c r5fss0-0
ifeq ($(DEVICE),$(filter $(DEVICE), am273x awr294x))
-$(SYSCFG_NODE) $(SYSCFG_CLI_PATH)/tests/sanityTests.js -s $(SYSCFG_SDKPRODUCT) -d $(SYSCFG_DEVICE) -c c66ss0
endif
.PHONY: projectspec-help docs docs-clean
.PHONY: gen-buildfiles gen-buildfiles-clean
.PHONY: tests tests-clean tests-scrub tests-libs tests-libs-clean tests-libs-scrub
.PHONY: syscfg-tests