Skip to content

Commit 3b8101c

Browse files
masahir0yglebm
authored andcommitted
kbuild: fix # escaping in appending U-Boot own DT
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 <[email protected]>
1 parent 3e07c50 commit 3b8101c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ quiet_cmd_dtc = DTC $@
308308
# Modified for U-Boot
309309
# Bring in any U-Boot-specific include at the end of the file
310310
cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
311-
(cat $<; $(if $(u_boot_dtsi),echo '\#include "$(u_boot_dtsi)"')) > $(pre-tmp); \
311+
(cat $<; $(if $(u_boot_dtsi),echo '$(pound)include "$(u_boot_dtsi)"')) > $(pre-tmp); \
312312
$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $(pre-tmp) ; \
313313
$(DTC) -O dtb -o $@ -b 0 \
314314
-i $(dir $<) $(DTC_FLAGS) \

0 commit comments

Comments
 (0)