All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] parisc: autoselect 32/64bit compiler
@ 2009-02-16 21:47 Helge Deller
  2009-02-17 23:12 ` Helge Deller
  0 siblings, 1 reply; 2+ messages in thread
From: Helge Deller @ 2009-02-16 21:47 UTC (permalink / raw)
  To: Kyle McMartin, linux-parisc

Automatically select correct 32- or 64bit (cross) compiler, independent if
the kernel is built locally (e.g. 64bit kernel target on 32bit userspace) or 
cross-compiled from another architecture. This patch allows one to just
run 
	make ARCH=parisc	when run as cross compiler, or just
	make 			when run locally.

Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index da6f669..9d0bd90 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
@@ -22,23 +22,12 @@ KBUILD_DEFCONFIG := default_defconfig
 NM		= sh $(srctree)/arch/parisc/nm
 CHECKFLAGS	+= -D__hppa__=1
 
-MACHINE		:= $(shell uname -m)
-ifeq ($(MACHINE),parisc*)
-NATIVE		:= 1
-endif
-
 ifdef CONFIG_64BIT
 UTS_MACHINE	:= parisc64
 CHECKFLAGS	+= -D__LP64__=1 -m64
-WIDTH		:= 64
 CROSS_COMPILE	:= hppa64-linux-gnu-
 else # 32-bit
-WIDTH		:=
-endif

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-17 23:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-16 21:47 [PATCH] parisc: autoselect 32/64bit compiler Helge Deller
2009-02-17 23:12 ` Helge Deller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.