Use awk alone for extracting FDT_DTS_FILE instead of grep/cut, which is
simpler and more robust. Submitted by: Andrzej Tobola
This commit is contained in:
parent
a77be127e6
commit
df06a5758b
@ -1458,8 +1458,8 @@ _xi-links:
|
||||
DTBOUTPUTPATH= ${KRNLOBJDIR}/${KERNCONF}/
|
||||
|
||||
.if !defined(FDT_DTS_FILE) || empty(FDT_DTS_FILE)
|
||||
FDT_DTS_FILE!= grep "^makeoptions[[:space:]]\+FDT_DTS_FILE" \
|
||||
${KERNCONFDIR}/${KERNCONF} 2> /dev/null | cut -d= -f2
|
||||
FDT_DTS_FILE!= awk '/^makeoptions[[:space:]]+FDT_DTS_FILE/ {FS="=|[ \t]+"; print $$3}' \
|
||||
${KERNCONFDIR}/${KERNCONF}
|
||||
.endif
|
||||
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user