x86: move i386 and x86_64 Kconfig files to x86 directory
Sam Ravnborg [Thu, 25 Oct 2007 19:04:16 +0000 (21:04 +0200)]
After a small change in kconfig Makefile we could
move all x86 Kconfig files to x86 directory.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

arch/x86/Kconfig.cpu [moved from arch/i386/Kconfig.cpu with 100% similarity]
arch/x86/Kconfig.i386 [moved from arch/i386/Kconfig with 99% similarity]
arch/x86/Kconfig.x86_64 [moved from arch/x86_64/Kconfig with 100% similarity]

similarity index 100%
rename from arch/i386/Kconfig.cpu
rename to arch/x86/Kconfig.cpu
similarity index 99%
rename from arch/i386/Kconfig
rename to arch/x86/Kconfig.i386
index d24e3e2..7331efe 100644 (file)
@@ -287,7 +287,7 @@ config ES7000_CLUSTERED_APIC
        default y
        depends on SMP && X86_ES7000 && MPENTIUMIII
-source "arch/i386/Kconfig.cpu"
+source "arch/x86/Kconfig.cpu"
 config HPET_TIMER
        bool "HPET Timer Support"
similarity index 100%
rename from arch/x86_64/Kconfig
rename to arch/x86/Kconfig.x86_64
index 3c9db07..5959412 100644 (file)
@@ -4,7 +4,12 @@
 PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
-Kconfig := arch/$(ARCH)/Kconfig
+# If a arch/$(SRCARCH)/Kconfig.$(ARCH) file exist use it
+ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/Kconfig.$(ARCH)),)
+        Kconfig := arch/$(SRCARCH)/Kconfig.$(ARCH)
+        Kconfig := arch/$(SRCARCH)/Kconfig
 xconfig: $(obj)/qconf
        $< $(Kconfig)