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.
This commit is contained in:
Christian Tacke 2018-02-22 21:38:56 +01:00
parent fdaac94ba1
commit 0b3adfb9b3

View File

@ -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 $< > $@