diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2017-01-08 19:11:27 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-14 16:47:15 -0500 |
commit | 208db781cad4c24f538658a9cb17e24fa43ca3c9 (patch) | |
tree | 3a40865e83c2f657a287fe19fb64dca6750ef515 /scripts/Makefile.lib | |
parent | f19f1315039c1deb83bc321fbef1113cdaa435d1 (diff) |
Avoid non-portable sed construct
Using \n in a substitution is a GNU extension. Use the 'G" command instead
to insert the desired line.
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r-- | scripts/Makefile.lib | 2 |
1 files changed, 1 insertions, 1 deletions
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) \ |