Fix FDT_DTS_FILE parsing to properly retrieve its value. This unbreaks the
'builddtb' target. Make the processing more robust against non-existent kernel config files (pointed out by imp@).
This commit is contained in:
parent
7832b1f674
commit
24c00a9054
@ -1477,8 +1477,12 @@ _xi-links:
|
||||
DTBOUTPUTPATH= ${KRNLOBJDIR}/${KERNCONF}/
|
||||
|
||||
.if !defined(FDT_DTS_FILE) || empty(FDT_DTS_FILE)
|
||||
FDT_DTS_FILE!= awk '/^makeoptions[[:space:]]+FDT_DTS_FILE/ {FS="=|[ \t]+"; print $$3}' \
|
||||
.if exists(${KERNCONFDIR}/${KERNCONF})
|
||||
FDT_DTS_FILE!= awk 'BEGIN {FS="="} /^makeoptions[[:space:]]+FDT_DTS_FILE/ {print $$2}' \
|
||||
${KERNCONFDIR}/${KERNCONF}
|
||||
.else
|
||||
.error ERROR: kernel config file not found.
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user