diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-11-02 13:28:26 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-11-02 16:01:18 +0100 |
commit | 986d9deb3b24bc72e9e7ecf93affbc3f188bb926 (patch) | |
tree | ad0e4378ce1116b3089445ff79ea5fa7a4f16ff8 /include/image-commands.mk | |
parent | 7e2c271a8053df940d554cc5e17066033da4fc82 (diff) | |
download | mtk-20170518-986d9deb3b24bc72e9e7ecf93affbc3f188bb926.zip mtk-20170518-986d9deb3b24bc72e9e7ecf93affbc3f188bb926.tar.gz mtk-20170518-986d9deb3b24bc72e9e7ecf93affbc3f188bb926.tar.bz2 |
build: allow calling append-dtb from image build commands
mpc85xx uses this for firmware image files, since the dtb data is not
directly part of the kernel image. This causes build failures in the
image builder.
Fix this by adding a separate build step that runs this call earlier,
reusing the generated file for any calls from kernel or image build
commands.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/image-commands.mk')
-rw-r--r-- | include/image-commands.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk index aaece70..1ec5252 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -102,8 +102,7 @@ define Build/tplink-safeloader endef define Build/append-dtb - $(call Image/BuildDTB,$(if $(DEVICE_DTS_DIR),$(DEVICE_DTS_DIR),$(DTS_DIR))/$(DEVICE_DTS).dts,$@.dtb) - cat $@.dtb >> $@ + cat $(KDIR)/image-$(firstword $(DEVICE_DTS)).dtb >> $@ endef define Build/install-dtb |