diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2012-12-14 13:05:21 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2012-12-14 22:29:48 +0100 |
commit | 8af0d03fd49f9c88db98ef7b3c2d95bf1cd0f319 (patch) | |
tree | e33aae504fe01548bfc51a96c8350c3d05d0e6ed /payloads/libpayload/bin/lpgcc | |
parent | f6935a006a6ffe57413877093035cdc1a020e7bd (diff) | |
download | coreboot-8af0d03fd49f9c88db98ef7b3c2d95bf1cd0f319.tar.xz |
libpayload: Initial ARMv7 port
This compiles, but it's not tested yet.
Change-Id: I2f73a814649aa36c39af3e77cefd8a968671f5c0
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2035
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'payloads/libpayload/bin/lpgcc')
-rwxr-xr-x | payloads/libpayload/bin/lpgcc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/payloads/libpayload/bin/lpgcc b/payloads/libpayload/bin/lpgcc index 6cba45d025..52a8e554c0 100755 --- a/payloads/libpayload/bin/lpgcc +++ b/payloads/libpayload/bin/lpgcc @@ -107,16 +107,21 @@ while [ $# -gt 0 ]; do shift done -if [ "$CONFIG_ARCH_X86" = "y" ]; then - _ARCHINCDIR=$_INCDIR/x86 - _ARCHLIBDIR=$_LIBDIR/x86 +if [ "$CONFIG_ARCH_ARMV7" = "y" ]; then + _ARCHINCDIR=$_INCDIR/armv7 + _ARCHLIBDIR=$_LIBDIR/armv7 fi -if [ "$CONFIG_TARGET_POWERPC" = "y" ]; then +if [ "$CONFIG_ARCH_POWERPC" = "y" ]; then _ARCHINCDIR=$_INCDIR/powerpc _ARCHLIBDIR=$_LIBDIR/powerpc fi +if [ "$CONFIG_ARCH_X86" = "y" ]; then + _ARCHINCDIR=$_INCDIR/x86 + _ARCHLIBDIR=$_LIBDIR/x86 +fi + _CFLAGS="-m32 -nostdinc -nostdlib -I$_INCDIR -I$_ARCHINCDIR -D__LIBPAYLOAD__=1" # Check for the -fno-stack-protector silliness |