mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
build/DTC: fix sed usage in DTC command
Current sed usage in the DTC command relies on GNU sed specific -i option which has a slightly different syntax for BSD sed and always expects an extension to be provided in order to create a backup file. Instead drop the cat concatenation done before the sed call and use sed itself to edit and concatenate the files. No functional change intended. Signed-off-by: Roger Pau Monné <royger@FreeBSD.org>
This commit is contained in:
parent
9907847245
commit
e420a38fa6
@ -326,8 +326,7 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
|
|||||||
-d $(depfile).dtc.tmp $(dtc-tmp) || \
|
-d $(depfile).dtc.tmp $(dtc-tmp) || \
|
||||||
(echo "Check $(shell pwd)/$(pre-tmp) for errors" && false) \
|
(echo "Check $(shell pwd)/$(pre-tmp) for errors" && false) \
|
||||||
; \
|
; \
|
||||||
cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) ; \
|
sed "s:$(pre-tmp):$(<):" $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
|
||||||
sed -i "s:$(pre-tmp):$(<):" $(depfile)
|
|
||||||
|
|
||||||
$(obj)/%.dtb: $(src)/%.dts FORCE
|
$(obj)/%.dtb: $(src)/%.dts FORCE
|
||||||
$(call if_changed_dep,dtc)
|
$(call if_changed_dep,dtc)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user