Browse Source

x86: move i386 and x86_64 Kconfig files to x86 directory

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>
Sam Ravnborg 17 years ago
parent
commit
47572387d5
4 changed files with 7 additions and 2 deletions
  1. 0 0
      arch/x86/Kconfig.cpu
  2. 1 1
      arch/x86/Kconfig.i386
  3. 0 0
      arch/x86/Kconfig.x86_64
  4. 6 1
      scripts/kconfig/Makefile

+ 0 - 0
arch/i386/Kconfig.cpu → arch/x86/Kconfig.cpu


+ 1 - 1
arch/i386/Kconfig → arch/x86/Kconfig.i386

@@ -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"

+ 0 - 0
arch/x86_64/Kconfig → arch/x86/Kconfig.x86_64


+ 6 - 1
scripts/kconfig/Makefile

@@ -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)
+else
+        Kconfig := arch/$(SRCARCH)/Kconfig
+endif
 
 xconfig: $(obj)/qconf
 	$< $(Kconfig)