2007-12-04 14:11:47 +00:00
|
|
|
Postpone architecture dependant definitions.
|
|
|
|
Makes it possible to overwrite arch, compiler and things like cflags in one
|
|
|
|
place.
|
|
|
|
|
2006-06-13 14:18:29 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2008-08-10 08:35:53 +00:00
|
|
|
@@ -193,25 +193,6 @@
|
2006-09-22 17:17:09 +00:00
|
|
|
ARCH ?= $(SUBARCH)
|
|
|
|
CROSS_COMPILE ?=
|
|
|
|
|
|
|
|
-# Architecture as present in compile.h
|
2007-11-29 11:12:14 +00:00
|
|
|
-UTS_MACHINE := $(ARCH)
|
|
|
|
-SRCARCH := $(ARCH)
|
|
|
|
-
|
|
|
|
-# Additional ARCH settings for x86
|
|
|
|
-ifeq ($(ARCH),i386)
|
|
|
|
- SRCARCH := x86
|
|
|
|
-endif
|
|
|
|
-ifeq ($(ARCH),x86_64)
|
|
|
|
- SRCARCH := x86
|
|
|
|
-endif
|
2008-08-10 08:35:53 +00:00
|
|
|
-
|
|
|
|
-# Where to locate arch specific headers
|
|
|
|
-ifeq ($(ARCH),sparc64)
|
|
|
|
- hdr-arch := sparc
|
|
|
|
-else
|
|
|
|
- hdr-arch := $(SRCARCH)
|
|
|
|
-endif
|
2006-09-22 17:17:09 +00:00
|
|
|
-
|
|
|
|
KCONFIG_CONFIG ?= .config
|
|
|
|
|
|
|
|
# SHELL used by kbuild
|
2008-08-10 08:35:53 +00:00
|
|
|
@@ -340,6 +326,27 @@
|
2007-06-26 10:27:56 +00:00
|
|
|
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
|
|
|
|
KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
2006-06-13 14:18:29 +00:00
|
|
|
|
|
|
|
+-include .kernelvariables
|
2006-09-22 17:17:09 +00:00
|
|
|
+
|
|
|
|
+# Architecture as present in compile.h
|
2007-11-29 11:12:14 +00:00
|
|
|
+UTS_MACHINE := $(ARCH)
|
|
|
|
+SRCARCH := $(ARCH)
|
|
|
|
+
|
|
|
|
+# Additional ARCH settings for x86
|
|
|
|
+ifeq ($(ARCH),i386)
|
|
|
|
+ SRCARCH := x86
|
|
|
|
+endif
|
|
|
|
+ifeq ($(ARCH),x86_64)
|
|
|
|
+ SRCARCH := x86
|
|
|
|
+endif
|
2008-08-10 08:35:53 +00:00
|
|
|
+
|
|
|
|
+# Where to locate arch specific headers
|
|
|
|
+ifeq ($(ARCH),sparc64)
|
|
|
|
+ hdr-arch := sparc
|
|
|
|
+else
|
|
|
|
+ hdr-arch := $(SRCARCH)
|
|
|
|
+endif
|
2006-06-13 14:18:29 +00:00
|
|
|
+
|
2007-06-26 10:27:56 +00:00
|
|
|
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
|
2007-12-04 14:08:29 +00:00
|
|
|
export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
|
2007-06-26 10:27:56 +00:00
|
|
|
export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE
|