summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-06-04 10:46:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-09 12:20:05 +0200
commit03a4f384493ea04dd5c7c86f6e1d47141e89fd52 (patch)
treef626171813e5c6f490191deff3e498864f86fec6 /Makefile
parentb73df16d428ed1a0bc35f6f9e96cf6603210a4a5 (diff)
downloadbarebox-03a4f384493ea04dd5c7c86f6e1d47141e89fd52.tar.gz
barebox-03a4f384493ea04dd5c7c86f6e1d47141e89fd52.tar.xz
kbuild: add ARCH={i386, x86_64} as aliases for x86
Linux already does this. Follow suit so we can interoperate with tools that assume Linux-like Kbuild structure. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210604084704.17410-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 65e3f6f80c..3b7dbd4c77 100644
--- a/Makefile
+++ b/Makefile
@@ -343,6 +343,14 @@ ifeq ($(ARCH),arm64)
SRCARCH := arm
endif
+ifeq ($(ARCH),i386)
+ SRCARCH := x86
+endif
+
+ifeq ($(ARCH),x86_64)
+ SRCARCH := x86
+endif
+
# Support ARCH=ppc for backward compatibility
ifeq ($(ARCH),ppc)
SRCARCH := powerpc