68 lines
1.3 KiB
Diff
68 lines
1.3 KiB
Diff
diff --git a/Makefile b/Makefile
|
|
index 59cf6da..6e1e048 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -193,30 +193,6 @@ export KBUILD_BUILDHOST := $(SUBARCH)
|
|
ARCH ?= $(SUBARCH)
|
|
CROSS_COMPILE ?=
|
|
|
|
-# Architecture as present in compile.h
|
|
-UTS_MACHINE := $(ARCH)
|
|
-SRCARCH := $(ARCH)
|
|
-
|
|
-# Additional ARCH settings for x86
|
|
-ifeq ($(ARCH),i386)
|
|
- SRCARCH := x86
|
|
-endif
|
|
-ifeq ($(ARCH),x86_64)
|
|
- SRCARCH := x86
|
|
-endif
|
|
-
|
|
-# Additional ARCH settings for sparc
|
|
-ifeq ($(ARCH),sparc64)
|
|
- SRCARCH := sparc
|
|
-endif
|
|
-
|
|
-# Where to locate arch specific headers
|
|
-hdr-arch := $(SRCARCH)
|
|
-
|
|
-ifeq ($(ARCH),m68knommu)
|
|
- hdr-arch := m68k
|
|
-endif
|
|
-
|
|
KCONFIG_CONFIG ?= .config
|
|
|
|
# SHELL used by kbuild
|
|
@@ -334,6 +310,31 @@ LDFLAGS_MODULE =
|
|
CFLAGS_KERNEL =
|
|
AFLAGS_KERNEL =
|
|
|
|
+-include .kernelvariables
|
|
+
|
|
+# Architecture as present in compile.h
|
|
+UTS_MACHINE := $(ARCH)
|
|
+SRCARCH := $(ARCH)
|
|
+
|
|
+# Additional ARCH settings for x86
|
|
+ifeq ($(ARCH),i386)
|
|
+ SRCARCH := x86
|
|
+endif
|
|
+ifeq ($(ARCH),x86_64)
|
|
+ SRCARCH := x86
|
|
+endif
|
|
+
|
|
+# Additional ARCH settings for sparc
|
|
+ifeq ($(ARCH),sparc64)
|
|
+ SRCARCH := sparc
|
|
+endif
|
|
+
|
|
+# Where to locate arch specific headers
|
|
+hdr-arch := $(SRCARCH)
|
|
+
|
|
+ifeq ($(ARCH),m68knommu)
|
|
+ hdr-arch := m68k
|
|
+endif
|
|
|
|
# Use LINUXINCLUDE when you must reference the include/ directory.
|
|
# Needed to be compatible with the O= option
|