diff options
-rw-r--r-- | include/image-commands.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk index 740d627fc7..ea94059d20 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -142,6 +142,13 @@ define Build/append-dtb cat $(KDIR)/image-$(firstword $(DEVICE_DTS)).dtb >> $@ endef +define Build/append-dtb-elf + $(TARGET_CROSS)objcopy \ + --set-section-flags=.appended_dtb=alloc,contents \ + --update-section \ + .appended_dtb=$(KDIR)/image-$(firstword $(DEVICE_DTS)).dtb $@ +endef + define Build/install-dtb $(call locked, \ $(foreach dts,$(DEVICE_DTS), \ |