]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
kbuild: fix # escaping in appending U-Boot own DT
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 19 Sep 2018 02:35:57 +0000 (11:35 +0900)
committerTom Rini <trini@konsulko.com>
Sun, 30 Sep 2018 17:00:34 +0000 (13:00 -0400)
The escape sequence '\#' does not work for the latest GNU Make from
the git tree.

Replace it with $(pound) as Linux did.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.lib

index f8c3fff1d151ee5ebf6024969465523c3ad165c8..4dceb6d1b37ca79cce68437e63e3e43eb02bfbe9 100644 (file)
@@ -299,7 +299,7 @@ quiet_cmd_dtc = DTC     $@
 # Modified for U-Boot
 # Bring in any U-Boot-specific include at the end of the file
 cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
-       (cat $<; $(if $(u_boot_dtsi),echo '\#include "$(u_boot_dtsi)"')) > $(pre-tmp); \
+       (cat $<; $(if $(u_boot_dtsi),echo '$(pound)include "$(u_boot_dtsi)"')) > $(pre-tmp); \
        $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $(pre-tmp) ; \
        $(DTC) -O dtb -o $@ -b 0 \
                -i $(dir $<) $(DTC_FLAGS) \