summaryrefslogtreecommitdiffstats
path: root/arch/linux/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/linux/Makefile')
-rw-r--r--arch/linux/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/linux/Makefile b/arch/linux/Makefile
index 9e2c32505d..b186f88183 100644
--- a/arch/linux/Makefile
+++ b/arch/linux/Makefile
@@ -35,8 +35,14 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
-e s/s390x/s390/ -e s/parisc64/parisc/ \
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
+ifeq ($(SUBARCH),x86_64)
+ELF_ARCH := i386:x86-64
+ELF_FORMAT := elf64-x86-64
+endif
+ifeq ($(SUBARCH),i386)
ELF_ARCH := $(SUBARCH)
ELF_FORMAT := elf32-$(SUBARCH)
+endif
export ELF_FORMAT ELF_ARCH SUBARCH
# Update machine arch and proc symlinks if something which affects