]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
kernel headers: Install correct headers for all architectures
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 8 Apr 2017 10:12:42 +0000 (12:12 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 May 2017 10:50:37 +0000 (11:50 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/linux

index d7b21e6d17021663a73e7693d24f42978b9a0ec4..3c85a23bad155d0700b04ed85952f3e99a709bc9 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -40,10 +40,10 @@ CXXFLAGS   =
 PAK_VER    = 73
 DEPS      = ""
 
-KERNEL_ARCH = $(MACHINE)
-
 ifeq "$(MACHINE)" "i586"
        KERNEL_ARCH = i386
+else
+       KERNEL_ARCH = $(MACHINE)
 endif
 
 VERSUFIX=ipfire$(KCFG)
@@ -56,9 +56,19 @@ else
        HEADERS_PREFIX = /usr
 endif
 
-ifeq "$(MACHINE_TYPE)" "arm"
+ifeq "$(MACHINE)" "armv5tel"
        HEADERS_ARCH=arm
-else
+endif
+
+ifeq "$(MACHINE)" "aarch64"
+       HEADERS_ARCH=arm64
+endif
+
+ifeq "$(MACHINE)" "x86_64"
+       HEADERS_ARCH=x86
+endif
+
+ifeq "$(MACHINE)" "i586"
        HEADERS_ARCH=x86
 endif