diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-06-03 13:35:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-06-03 13:35:35 +0200 |
commit | 9e6ee5e79516f5af5366bd95fab801a692728373 (patch) | |
tree | 636f0d476813341dea0f6c45e3cd46ec58735379 /arch/sandbox | |
parent | beaab972f8d4517724862f3d37388e42fa26ba18 (diff) | |
download | barebox-9e6ee5e79516f5af5366bd95fab801a692728373.tar.gz barebox-9e6ee5e79516f5af5366bd95fab801a692728373.tar.xz |
[sandbox] export ELF_CLASS for sandbox
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index 1f84caf6fb..17b908eed1 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -35,17 +35,21 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ ifeq ($(SUBARCH),x86_64) ELF_ARCH := i386:x86-64 ELF_FORMAT := elf64-x86-64 +ELF_CLASDD := ELFCLASS64 endif ifeq ($(SUBARCH),i386) ELF_ARCH := $(SUBARCH) ELF_FORMAT := elf32-$(SUBARCH) +ELF_CLASS := ELFCLASS32 endif ifeq ($(SUBARCH),powerpc) ELF_ARCH := powerpc ELF_FORMAT := elf32-powerpc +ELF_CLASS := ELFCLASS32 endif -export ELF_FORMAT ELF_ARCH SUBARCH +CPPFLAGS += -DELF_CLASS="$(ELF_CLASS)" +export ELF_FORMAT ELF_ARCH SUBARCH ELF_CLASS # Update machine arch and proc symlinks if something which affects # them changed. We use .arch to indicate when they were updated # last, otherwise make uses the target directory mtime. |