From e6cc63bbf4bd0bf59269c1b692d7a8f5faba6a8f Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 5 Jul 2007 18:01:57 +0200 Subject: svn_rev_478 add support for x86_64 --- arch/linux/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/linux/Makefile') 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 -- cgit v1.2.3