Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorChristian Tacke <Christian.Tacke+libopencm3@cosmokey.com>2018-02-22 23:38:56 +0300
committerChristian Tacke <Christian.Tacke+libopencm3@cosmokey.com>2018-02-22 23:38:56 +0300
commit0b3adfb9b391118af3df4f86b0d9fde1be587dd8 (patch)
tree364bbea1bd9df48c0688ccd2d3d20246862cc6ce /mk
parentfdaac94ba15c85d0e119712049bcae1f4f8c947d (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.mk2
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 $< > $@