Skip to content

Commit 09690eb

Browse files
committed
document MAKE_FRAGMENT
1 parent 304528c commit 09690eb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

documentation/tools/manifest.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@ The third pass generates make variables and rules for matched files:
249249

250250
The generated make file contains the generated variables, then the make fragment corresponding to the goal of the build, then the generated rules.
251251

252-
You will find the make fragments and the make recipes in `$(MODDABLE)/tools/mcconfig`. It is the make fragments that define the compiler options, the linker options, the libraries, etc.
252+
You will find the default make fragments and the make recipes in `$(MODDABLE)/tools/mcconfig`. It is the make fragments that define the compiler options, the linker options, the libraries, etc.
253+
254+
The make fragment can be specified in a platform's `"build"` section.
255+
256+
"platforms": {
257+
"gecko/*": {
258+
"build": {
259+
"MAKE_FRAGMENT": "$(BUILD)/devices/gecko/targets/$(SUBPLATFORM)/make.$(SUBPLATFORM).mk",
260+
}
261+
"include": "./targets/$(SUBPLATFORM)/manifest.json"
262+
},
263+
}
253264

254-
If a platform also has a sub-platform, it's make fragments will be contained in `$(MODDABLE)/tools/mcconfig/`_platform_`/`_subplatform_.

0 commit comments

Comments
 (0)