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:
Rafal Jaworowski 2010-06-16 16:52:35 +00:00
parent a77be127e6
commit df06a5758b

View File

@ -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