Skip to contentSkip to conversation

Support KLIBCARCH being different from the main ARCH

PATCH In review H. Peter Anvin 1 participant 1 message Jun 26, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/43 Support KLIBCARCH being different from the main ARCH

This is particularly significant for powerpc, since in the main kernel tree the ppc and ppc64 architectures have been fully unified.

---
commit 5ad9bee01be52a0593fedcf905ae26ef4fd65007
tree 0d00148602ab472cef20ed73438da634eec375ac
parent 79d8875c392c6eaf4b9537625c57690a02eab411
author H. Peter Anvin <[email protected]> Thu, 06 Apr 2006 11:21:10 -0700 committer H. Peter Anvin <[email protected]> Sun, 18 Jun 2006 18:45:56 -0700

 Makefile              |    7 +++++--
 arch/powerpc/Makefile |    1 +
 2 files changed, 6 insertions(+), 2 deletions(-)
Makefile +5 -2
index 1700d3f..889ee38 100644
@@ -176,7 +176,10 @@ ARCH		?= $(SUBARCH)
 CROSS_COMPILE	?=
 
 # Architecture as present in compile.h
-UTS_MACHINE := $(ARCH)
+UTS_MACHINE	:= $(ARCH)
+
+# Architecture used to compile user-space code
+KLIBCARCH	?= $(subst powerpc,ppc,$(ARCH))
 
 # SHELL used by kbuild
 CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
@@ -316,7 +319,7 @@ KERNELVERSION = $(VERSION).$(PATCHLEVEL)
 export	VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION \
 	ARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \
 	CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE \
-	HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
+	HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS KLIBCARCH
 
 export CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS
 export CFLAGS CFLAGS_KERNEL CFLAGS_MODULE 
arch/powerpc/Makefile +1 -0
index ed5b26a..7591ee7 100644
@@ -51,6 +51,7 @@ SZ	:= 32
 endif
 
 UTS_MACHINE := $(OLDARCH)
+KLIBCARCH   := $(OLDARCH)
 
 ifeq ($(HAS_BIARCH),y)
 override AS	+= -a$(SZ)