* Jordan Crouse jordan.crouse@amd.com [071023 00:19]:
[BUILDROM] fix memtest errors when building on a 64 bit system
Make sure we pass the 32 bit flags for the GNU tools - this allows memtest to build correctly on a 64 bit machine.
Signed-off-by: Jordan Crouse jordan.crouse@amd.com
Acked-by: Stefan Reinauer stepan@coresystems.de
Index: buildrom-devel/scripts/Build.settings
--- buildrom-devel.orig/scripts/Build.settings +++ buildrom-devel/scripts/Build.settings @@ -15,6 +15,7 @@ cc-option= $(call try-run,\ find-tool=$(shell set -e; if which $(1) > /dev/null 2>&1; \ then echo "y"; else echo "n"; fi)
CC ?= gcc STRIP ?= strip AS ?= as @@ -28,9 +29,15 @@ CROSS_LDFLAGS=
ifeq ($(BUILD_ARCH),x86_64) ifneq ($(BUILD_ARCH), $(TARGET_ARCH))
+CC += -m32 +AS += --32 +LD += -melf_i386
CROSS_ASFLAGS=-m32 CROSS_CFLAGS=-m32 CROSS_LDFLAGS=-melf_i386