From 6569979366f0e8ffaadec19d0d859a2ad155ef0b Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Tue, 23 Oct 2007 22:37:23 +0200 Subject: [PATCH] --- yaml --- r: 72362 b: refs/heads/master c: bec2c48c2045ca467d07bba54783318b8672bda7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/i386/Makefile | 6 ++++++ trunk/arch/x86_64/Makefile | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 2a768d910d0c..36f64ec0034d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 428c5a2339f6d59e3b2d59e9b878b95e6f7a09d7 +refs/heads/master: bec2c48c2045ca467d07bba54783318b8672bda7 diff --git a/trunk/arch/i386/Makefile b/trunk/arch/i386/Makefile index b81cb64d48e5..f5b9a37def8b 100644 --- a/trunk/arch/i386/Makefile +++ b/trunk/arch/i386/Makefile @@ -20,6 +20,12 @@ # Fill in SRCARCH SRCARCH := x86 +# BITS is used as extension for files which are available in a 32 bit +# and a 64 bit version to simplify shared Makefiles. +# e.g.: obj-y += foo_$(BITS).o +BITS := 32 +export BITS + HAS_BIARCH := $(call cc-option-yn, -m32) ifeq ($(HAS_BIARCH),y) AS := $(AS) --32 diff --git a/trunk/arch/x86_64/Makefile b/trunk/arch/x86_64/Makefile index 6d89ab762ffc..20eb69bd5a6d 100644 --- a/trunk/arch/x86_64/Makefile +++ b/trunk/arch/x86_64/Makefile @@ -24,6 +24,12 @@ # Fill in SRCARCH SRCARCH := x86 +# BITS is used as extension for files which are available in a 32 bit +# and a 64 bit version to simplify shared Makefiles. +# e.g.: obj-y += foo_$(BITS).o +BITS := 64 +export BITS + LDFLAGS := -m elf_x86_64 OBJCOPYFLAGS := -O binary -R .note -R .comment -S LDFLAGS_vmlinux :=