Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bec2c48c2045ca467d07bba54783318b8672bda7
Commit:     bec2c48c2045ca467d07bba54783318b8672bda7
Parent:     428c5a2339f6d59e3b2d59e9b878b95e6f7a09d7
Author:     Thomas Gleixner <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 23 22:37:23 2007 +0200
Committer:  Thomas Gleixner <[EMAIL PROTECTED]>
CommitDate: Tue Oct 23 22:37:23 2007 +0200

    x86: Add BITS to allow simple Makefile sharing
    
    Preperatory patch to simplify the sharing of Makefiles in
    arch/x86.
    
    Linus came up with this during a discussion about the ugliness of
    ifeq($CONFIG_X86_32),y) and obj-$(CONFIG_X86_32) in the shared
    Makefiles.
    
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 arch/i386/Makefile   |    6 ++++++
 arch/x86_64/Makefile |    6 ++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/arch/i386/Makefile b/arch/i386/Makefile
index b81cb64..f5b9a37 100644
--- a/arch/i386/Makefile
+++ b/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/arch/x86_64/Makefile b/arch/x86_64/Makefile
index 6d89ab7..20eb69b 100644
--- a/arch/x86_64/Makefile
+++ b/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 :=
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to