diff options
author | Christian Tacke <Christian.Tacke+libopencm3@cosmokey.com> | 2018-02-22 23:38:56 +0300 |
---|---|---|
committer | Christian Tacke <Christian.Tacke+libopencm3@cosmokey.com> | 2018-02-22 23:38:56 +0300 |
commit | 0b3adfb9b391118af3df4f86b0d9fde1be587dd8 (patch) | |
tree | 364bbea1bd9df48c0688ccd2d3d20246862cc6ce /mk | |
parent | fdaac94ba15c85d0e119712049bcae1f4f8c947d (diff) |
Let the created ld script depend on devices.data
If devices.data changes, rebuild the linker scripts, so they have all the
new information in it.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/genlink-rules.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/genlink-rules.mk b/mk/genlink-rules.mk index 8979b5cb..64b37be0 100644 --- a/mk/genlink-rules.mk +++ b/mk/genlink-rules.mk @@ -17,6 +17,6 @@ ## along with this library. If not, see <http://www.gnu.org/licenses/>. ## -$(LDSCRIPT):$(OPENCM3_DIR)/ld/linker.ld.S +$(LDSCRIPT): $(OPENCM3_DIR)/ld/linker.ld.S $(OPENCM3_DIR)/ld/devices.data @printf " GENLNK $(DEVICE)\n" $(Q)$(CPP) $(ARCH_FLAGS) $(shell gawk -v PAT="$(DEVICE)" -v MODE="DEFS" -f $(OPENCM3_DIR)/scripts/genlink.awk $(OPENCM3_DIR)/ld/devices.data 2>/dev/null) -P -E $< > $@ |