j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: afaerber Date: Sat Oct 30 17:19:58 2010 New Revision: 928 URL: http://tracker.coreboot.org/trac/openbios/changeset/928
Log: switch-arch: Whitelist targets that need int128_t
ppc64 doesn't use int128_t and thus fails to build when NEED_FAKE_INT128_T gets defined, due to its use in include/kernel/stack.h.
Continue to use it for all other targets for which "$targetlongbits" = "64".
Signed-off-by: Andreas Färber andreas.faerber@web.de
Modified: trunk/openbios-devel/config/scripts/switch-arch
Modified: trunk/openbios-devel/config/scripts/switch-arch ============================================================================== --- trunk/openbios-devel/config/scripts/switch-arch Sat Oct 30 17:17:37 2010 (r927) +++ trunk/openbios-devel/config/scripts/switch-arch Sat Oct 30 17:19:58 2010 (r928) @@ -74,10 +74,14 @@ cflags="$cflags -DNATIVE_BITWIDTH_LARGER_THAN_HOST_BITWIDTH" fi
- if test "$host" = "x86" -a "$targetlongbits" = "64"; then - cflags="$cflags -DNEED_FAKE_INT128_T" - elif test "$host" = "ppc" -a "$targetlongbits" = "64" -a `uname -s` = "Darwin"; then - cflags="$cflags -DNEED_FAKE_INT128_T" + if test "$target" = "sparc64" -o "$target" = "ia64" \ + -o "$target" = "amd64" -o "$target" = "x86_64" \ + -o "$target" = "alpha"; then + if test "$host" = "x86"; then + cflags="$cflags -DNEED_FAKE_INT128_T" + elif test "$host" = "ppc" -a `uname -s` = "Darwin"; then + cflags="$cflags -DNEED_FAKE_INT128_T" + fi fi
CROSSCFLAGS=$cflags