[coreboot] libpayload: fix cross compilation (somewhat)
Jordan Crouse
jordan.crouse at amd.com
Thu Aug 7 16:42:36 CEST 2008
On 07/08/08 13:16 +0200, Stefan Reinauer wrote:
> See patch
>
> --
> 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
>
> Attempt to fix cross compilation for libpayload / coreinfo by honoring
> the setting of CC in the payload (coreinfo) when calling
>
> make CC=i386-elf-gcc AS=i386-elf-as AR=i386-elf-ar STRIP=i386-elf-strip
>
> This still does not cope with the hardcoded -fno-stack-protector in
> libpayload's Makefile.
>
> Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
>
>
> Index: libpayload/bin/lpgcc
> ===================================================================
> --- libpayload/bin/lpgcc (revision 3473)
> +++ libpayload/bin/lpgcc (working copy)
> @@ -28,8 +28,7 @@
>
> # GCC wrapper for libpayload
>
> -DEFAULT_PREFIX=/opt
> -DEFAULT_CC=gcc
> +DEFAULT_CC=$CC
You should put a DEFAULT_CC ?= gcc after this line to account for
CC being empty. Other then that, this looks good.
Jordan
More information about the coreboot
mailing list