intel: use crosscompiler readelf, instead of global
readelf(1) may not know about the i386 flavor, or not be present at all under this name. Change-Id: I285df1f2098200b89918a4c4d3610e6427e86e01 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/7448 Reviewed-by: Aaron Durbin <adurbin@google.com> Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
7c6e489b23
commit
0a1699e311
|
@ -91,8 +91,8 @@ endif
|
||||||
# If an MRC file is an ELF file determine the entry address and first loadable
|
# If an MRC file is an ELF file determine the entry address and first loadable
|
||||||
# section offset in the file. Subtract the offset from the entry address to
|
# section offset in the file. Subtract the offset from the entry address to
|
||||||
# determine the final location.
|
# determine the final location.
|
||||||
mrcelfoffset = $(shell readelf -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
|
mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
|
||||||
mrcelfentry = $(shell readelf -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
|
mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
|
||||||
|
|
||||||
# Add memory reference code blob.
|
# Add memory reference code blob.
|
||||||
cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
|
cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
|
||||||
|
|
|
@ -100,8 +100,8 @@ PHONY += pch_add_me
|
||||||
# If an MRC file is an ELF file determine the entry address and first loadable
|
# If an MRC file is an ELF file determine the entry address and first loadable
|
||||||
# section offset in the file. Subtract the offset from the entry address to
|
# section offset in the file. Subtract the offset from the entry address to
|
||||||
# determine the final location.
|
# determine the final location.
|
||||||
mrcelfoffset = $(shell readelf -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
|
mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
|
||||||
mrcelfentry = $(shell readelf -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
|
mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
|
||||||
|
|
||||||
# Add memory reference code blob.
|
# Add memory reference code blob.
|
||||||
cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
|
cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
|
||||||
|
|
Loading…
Reference in New Issue