]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Makefile.lib: include /__symbols__ in dtb if OF_LIBFDT_OVERLAY is enabled
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Fri, 22 Mar 2019 14:39:49 +0000 (15:39 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 4 Jun 2019 10:47:15 +0000 (12:47 +0200)
In order to apply an overlay to a DTB. The DTB must have been generated
with the option '-@'.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
scripts/Makefile.lib

index d8d9175629baf0b78b6870700a2ae757138b7874..0fc79e3198317c69752ed79de07ef7ad7125356a 100644 (file)
@@ -295,6 +295,10 @@ cmd_dt_S_dtb=                                              \
 $(obj)/%.dtb.S: $(obj)/%.dtb
        $(call cmd,dt_S_dtb)
 
+ifeq ($(CONFIG_OF_LIBFDT_OVERLAY),y)
+DTC_FLAGS += -@
+endif
+
 quiet_cmd_dtc = DTC     $@
 # Modified for U-Boot
 # Bring in any U-Boot-specific include at the end of the file