This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1 of 1] arch/x86: fix x86 kernel arch


# HG changeset patch
# User Richard Strand <richard.strand@icomera.com>
# Date 1263142235 0
# Node ID 3a92c1b8f3f5c0cbb927fed7918676790b1da825
# Parent  5d693a13c84abf6a00275dfb1413834056e000c0
arch/x86: fix x86 kernel arch

Fix the x86 CT_KERNEL_ARCH variable. Without this nptl and kernel compilation
is broken when the CT_ARCH is x86. This fixes a regression caused by change
5d1936ad5ba8.

Signed-off-by: Richard Strand <richard.strand@icomera.com>

diff -r 5d693a13c84a -r 3a92c1b8f3f5 scripts/build/arch/x86.sh
--- a/scripts/build/arch/x86.sh	Fri Jan 08 18:48:21 2010 +0000
+++ b/scripts/build/arch/x86.sh	Sun Jan 10 16:50:35 2010 +0000
@@ -7,6 +7,7 @@
     # Override the architecture part of the tuple:
     if [ "${CT_ARCH_64}" = "y" ]; then
         CT_TARGET_ARCH=x86_64
+        CT_KERNEL_ARCH=x86_64
     else
         arch="${CT_ARCH_ARCH}"
         [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
@@ -18,5 +19,6 @@
             pentiumpro|pentium*|athlon*)  CT_TARGET_ARCH=i686;;
             *)                            CT_TARGET_ARCH=i586;;
         esac
+        CT_KERNEL_ARCH=i386
     fi
 }

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]