diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:57 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:57 +0200 |
commit | e6cc63bbf4bd0bf59269c1b692d7a8f5faba6a8f (patch) | |
tree | 87024b4d7f51808e4875d2d74e26b7e58e4b4168 /arch/linux/Makefile | |
parent | dd7bf785a9d4ea2dfaeec8baa86fbf0aaae0e63f (diff) | |
download | barebox-e6cc63bbf4bd0bf59269c1b692d7a8f5faba6a8f.tar.gz barebox-e6cc63bbf4bd0bf59269c1b692d7a8f5faba6a8f.tar.xz |
svn_rev_478
add support for x86_64
Diffstat (limited to 'arch/linux/Makefile')
-rw-r--r-- | arch/linux/Makefile | 6 |
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 |