[LinuxBIOS] [BUILDROM] fix memtest errors when building on a 64 bit system
Stefan Reinauer
stepan at coresystems.de
Wed Oct 24 01:16:40 CEST 2007
* Jordan Crouse <jordan.crouse at 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 at amd.com>
Acked-by: Stefan Reinauer <stepan at 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
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
More information about the coreboot
mailing list