diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-12-10 17:57:17 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-12-10 20:27:30 -0500 |
| commit | 013c84086288141696e4c09250c61b6f2dbdf4d2 (patch) | |
| tree | f636b74008cc4b5a0745c9e2111ed40b68b52777 /py | |
| parent | d628d2a261bb28b84c6b257a990bd9a30cbe369c (diff) | |
working on all ports
Diffstat (limited to 'py')
| -rw-r--r-- | py/circuitpy_defns.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index 34c097e36..265b552bb 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -402,6 +402,18 @@ $(addprefix lib/,\ ) endif +ifdef LD_TEMPLATE_FILE +# Generate a linker script (.ld file) from a template, for those builds that use it. +GENERATED_LD_FILE = $(BUILD)/$(notdir $(patsubst %.template.ld,%.ld,$(LD_TEMPLATE_FILE))) +# +# ld_defines.pp is generated from ld_defines.c. See py/mkrules.mk. +# Run gen_ld_files.py over ALL *.template.ld files, not just LD_TEMPLATE_FILE, +# because it may include other template files. +$(GENERATED_LD_FILE): $(BUILD)/ld_defines.pp boards/*.template.ld + $(STEPECHO) "GEN $@" + $(Q)$(PYTHON3) $(TOP)/tools/gen_ld_files.py --defines $< --out_dir $(BUILD) boards/*.template.ld +endif + .PHONY: check-release-needs-clean-build check-release-needs-clean-build: |
