diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-06-04 10:46:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-09 12:20:05 +0200 |
commit | 03a4f384493ea04dd5c7c86f6e1d47141e89fd52 (patch) | |
tree | f626171813e5c6f490191deff3e498864f86fec6 /Makefile | |
parent | b73df16d428ed1a0bc35f6f9e96cf6603210a4a5 (diff) | |
download | barebox-03a4f384493ea04dd5c7c86f6e1d47141e89fd52.tar.gz |
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-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |