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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209240
@ -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