mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
f19f131503
commit
208db781ca
1 changed files with 1 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue