X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=scripts%2FMakefile.lib;h=23be32436922436ba5af0d454f96d7da20bd782e;hb=f77309d34325369dbdf0bf62387c9e974f1b37da;hp=81ac7eb12c2f6ec650d955bea82bc37b5b84d45c;hpb=f19f1315039c1deb83bc321fbef1113cdaa435d1;p=oweals%2Fu-boot.git diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 81ac7eb12c..23be324369 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -311,7 +311,7 @@ quiet_cmd_dtc = DTC $@ # Bring in any U-Boot-specific include after the '/dts-v1/;' header cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \ cat $< $(if $(u_boot_dtsi),\ - | sed 's%^/ {$$%\#include \"$(u_boot_dtsi)\"\n&%') | \ + | sed '/^\/ {$$/{x;s%$$%\#include \"$(u_boot_dtsi)\"%;G;}') | \ $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) - ; \ $(DTC) -O dtb -o $@ -b 0 \ -i $(dir $<) $(DTC_FLAGS) \