[coreboot-gerrit] New patch to review for coreboot: 673d440 intel: use crosscompiler readelf, instead of global

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Wed Nov 12 19:16:55 CET 2014


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7448

-gerrit

commit 673d440a5d35fb006fa855802f52445015019610
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Wed Nov 12 19:15:34 2014 +0100

    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 at google.com>
---
 src/soc/intel/baytrail/Makefile.inc  | 4 ++--
 src/soc/intel/broadwell/Makefile.inc | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/soc/intel/baytrail/Makefile.inc b/src/soc/intel/baytrail/Makefile.inc
index 464b639..4d941b7 100644
--- a/src/soc/intel/baytrail/Makefile.inc
+++ b/src/soc/intel/baytrail/Makefile.inc
@@ -91,8 +91,8 @@ endif
 # 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
 # determine the final location.
-mrcelfoffset = $(shell readelf -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 }')
+mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
+mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
 
 # Add memory reference code blob.
 cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
diff --git a/src/soc/intel/broadwell/Makefile.inc b/src/soc/intel/broadwell/Makefile.inc
index 072ab1f..1de2a01 100644
--- a/src/soc/intel/broadwell/Makefile.inc
+++ b/src/soc/intel/broadwell/Makefile.inc
@@ -100,8 +100,8 @@ PHONY += pch_add_me
 # 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
 # determine the final location.
-mrcelfoffset = $(shell readelf -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 }')
+mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
+mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
 
 # Add memory reference code blob.
 cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin



More information about the coreboot-gerrit mailing list