aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlorian Larysch <fl@n621.de>2016-11-03 13:58:24 +0100
committerFelix Fietkau <nbd@nbd.name>2017-10-24 13:24:04 +0200
commitf28b3bb56af4cb870f5b9b8a6e5bd0b3021de837 (patch)
tree4b15c7797edbc49a6bb7de3acf050d5e5f9cef51 /include
parent7ea6261b4344bde08be0e72ab018f772e8d25da2 (diff)
downloadupstream-f28b3bb56af4cb870f5b9b8a6e5bd0b3021de837.tar.gz
upstream-f28b3bb56af4cb870f5b9b8a6e5bd0b3021de837.tar.bz2
upstream-f28b3bb56af4cb870f5b9b8a6e5bd0b3021de837.zip
kernel: fixup KARCH for powerpc64 builds
The kernel calls both ppc64 and ppc32 "powerpc", so we need to fixup LINUX_KARCH when building with ARCH=powerpc64. Signed-off-by: Florian Larysch <fl@n621.de>
Diffstat (limited to 'include')
-rw-r--r--include/kernel.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 7674f0dadc..a84c755a06 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -85,6 +85,8 @@ else ifneq (,$(findstring $(ARCH) , armeb ))
LINUX_KARCH := arm
else ifneq (,$(findstring $(ARCH) , mipsel mips64 mips64el ))
LINUX_KARCH := mips
+else ifneq (,$(findstring $(ARCH) , powerpc64 ))
+ LINUX_KARCH := powerpc
else ifneq (,$(findstring $(ARCH) , sh2 sh3 sh4 ))
LINUX_KARCH := sh
else ifneq (,$(findstring $(ARCH) , i386 x86_64 ))