um: most of the SUBARCH uses can be killed
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 11 Feb 2012 10:39:56 +0000 (05:39 -0500)
committerRichard Weinberger <richard@nod.at>
Sat, 24 Mar 2012 23:29:56 +0000 (00:29 +0100)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[richard@nod.at: Re-export SUBARCH in arch/um/Makefile]
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/Makefile
arch/um/kernel/Makefile
arch/x86/Makefile.um

index 28688e6d96d795c3f860f5343524584b0cefb994..4c993c89d0f02284bbc66e279a30ad865557b52b 100644 (file)
@@ -50,7 +50,7 @@ KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/um
 #
 # These apply to USER_CFLAGS to.
 
-KBUILD_CFLAGS += $(CFLAGS) $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \
+KBUILD_CFLAGS += $(CFLAGS) $(CFLAGS-y) -D__arch_um__ \
        $(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap      \
        -Din6addr_loopback=kernel_in6addr_loopback \
        -Din6addr_any=kernel_in6addr_any -Dstrrchr=kernel_strrchr
@@ -99,7 +99,7 @@ KBUILD_KCONFIG := $(HOST_DIR)/um/Kconfig
 
 archheaders:
        $(Q)$(MAKE) -C '$(srctree)' KBUILD_SRC= \
-               ARCH=$(SUBARCH) O='$(objtree)' archheaders
+               ARCH=$(HEADER_ARCH) O='$(objtree)' archheaders
 
 archprepare: include/generated/user_constants.h
 
index bc494741b1f35f55b96421b00c581ab554c47d32..492bc4c1b62bf3516a996d81c24c05c494fcf8d5 100644 (file)
@@ -3,7 +3,7 @@
 # Licensed under the GPL
 #
 
-CPPFLAGS_vmlinux.lds := -U$(SUBARCH) -DSTART=$(LDS_START) \
+CPPFLAGS_vmlinux.lds := -DSTART=$(LDS_START) \
                         -DELF_ARCH=$(LDS_ELF_ARCH)        \
                         -DELF_FORMAT=$(LDS_ELF_FORMAT)
 extra-y := vmlinux.lds
index 36ddec6a41c9fd6690fec0acd45fe10c8a6dc73c..4be406abeefde51f1f3dd9419a799256ae1c1e1d 100644 (file)
@@ -8,15 +8,11 @@ ELF_ARCH              := i386
 ELF_FORMAT             := elf32-i386
 CHECKFLAGS     += -D__i386__
 
-ifeq ("$(origin SUBARCH)", "command line")
-ifneq ("$(shell uname -m | sed -e s/i.86/i386/)", "$(SUBARCH)")
 KBUILD_CFLAGS          += $(call cc-option,-m32)
 KBUILD_AFLAGS          += $(call cc-option,-m32)
 LINK-y                 += $(call cc-option,-m32)
 
 export LDFLAGS
-endif
-endif
 
 # First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y.
 include $(srctree)/arch/x86/Makefile_32.cpu