Skip to contentSkip to conversation

kbuild fixes

GIT PULL Sam Ravnborg 1 participant 3 messages May 25, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Linus.

Please pull from:

ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes.git

This fixes the 'make oldconfig' regression you reported. And in addition a small .gitignore and ver_linux update.

Sam

The pull includes the following patches:

Gabriel C (1):
scripts/ver_linux use 'gcc -dumpversion'

Jike Song (1):
.gitignore: match ncscope.out

Sam Ravnborg (1):
Kconfig: add KBUILD_DEFCONFIG to DEFCONFIG_LIST

 .gitignore        |    1 +
 arch/x86/Kconfig  |   13 -------------
 init/Kconfig      |   11 ++++++++++-
 scripts/ver_linux |    5 +----
 4 files changed, 12 insertions(+), 18 deletions(-)
.gitignore +1 -0
index 9c0d650..d24ad50 100644
@@ -52,6 +52,7 @@ series
 
 # cscope files
 cscope.*
+ncscope.*
 
 *.orig
 *~
arch/x86/Kconfig +0 -13
index fe361ae..6a4b98e 100644
@@ -26,19 +26,6 @@ config X86
 	select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64)
 	select HAVE_ARCH_KGDB if !X86_VOYAGER
 
-config DEFCONFIG_LIST
-	string
-	depends on X86_32
-	option defconfig_list
-	default "arch/x86/configs/i386_defconfig"
-
-config DEFCONFIG_LIST
-	string
-	depends on X86_64
-	option defconfig_list
-	default "arch/x86/configs/x86_64_defconfig"
-
-
 config GENERIC_LOCKBREAK
 	def_bool n
 
init/Kconfig +10 -1
index 6135d07..2aa7180 100644
@@ -6,6 +6,14 @@ config KERNELVERSION
 	string
 	option env="KERNELVERSION"
 
+config KBUILD_DEFCONFIG
+	string
+	option env="KBUILD_DEFCONFIG"
+
+config SRCARCH
+	string
+	option env="SRCARCH"
+
 config DEFCONFIG_LIST
 	string
 	depends on !UML
@@ -13,7 +21,8 @@ config DEFCONFIG_LIST
 	default "/lib/modules/$UNAME_RELEASE/.config"
 	default "/etc/kernel-config"
 	default "/boot/config-$UNAME_RELEASE"
-	default "arch/$ARCH/defconfig"
+	default "arch/$SRCARCH/configs/$KBUILD_DEFCONFIG"
+	default "arch/$SRCARCH/defconfig"
 
 menu "General setup"
 
scripts/ver_linux +1 -4
index ab69ece..7ac0e30 100755
@@ -12,12 +12,9 @@ echo ' '
 uname -a
 echo ' '
 
-gcc --version 2>&1| head -n 1 | grep -v gcc | awk \
+gcc -dumpversion 2>&1| awk \
 'NR==1{print "Gnu C                 ", $1}'
 
-gcc --version 2>&1| grep gcc | awk \
-'NR==1{print "Gnu C                 ", $3}'
-
 make --version 2>&1 | awk -F, '{print $1}' | awk \
       '/GNU Make/{print "Gnu make              ",$NF}'
 
#1 lore raw
Quoted 13 lines · Sam Ravnborg

Hi Linus.

Please pull from:

ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes.git

This fixes the 'make oldconfig' regression you reported. And in addition a small .gitignore and ver_linux update.

Sam

The pull includes the following patches:

Quoted 8 lines

Gabriel C (1):
scripts/ver_linux use 'gcc -dumpversion'

Jike Song (1):
.gitignore: match ncscope.out

Sam Ravnborg (1):
Kconfig: add KBUILD_DEFCONFIG to DEFCONFIG_LIST

And this commit caused my make to enter an
infinite looke calling scripts/kconfig/conf -s arch/x86/Kconfig Reproduceable by:
make defconfig
make

[on my 32 bit x86]

May try to dig into this later tonight.

For now I have dropped all commits from kbuild-fixes.git so the bad commit does not end up in -linus, -next or -mm.

Sam

#2 lore raw

Hi Linus.

Quoted 8 lines · I wrote:
Quoted 2 lines

Sam Ravnborg (1):
Kconfig: add KBUILD_DEFCONFIG to DEFCONFIG_LIST

And this commit caused my make to enter an
infinite looke calling scripts/kconfig/conf -s arch/x86/Kconfig Reproduceable by:
make defconfig
make

The problem was that the environment variable KBUILD_DEFCONFIG in some cases were not defined and in other cases it was defined. Fixing this is non-trivial.

So I reverted back to a solution where we have one config symbol defined in the ARCH specific Kconfig file.
For now only x86 uses this.

Please pull from:

ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes.git

to receive the following updates:

Gabriel C (1):
scripts/ver_linux use 'gcc -dumpversion'

Jike Song (1):
.gitignore: match ncscope.out

Sam Ravnborg (1):
Kconfig: introduce ARCH_DEFCONFIG to DEFCONFIG_LIST

 .gitignore        |    1 +
 arch/x86/Kconfig  |   13 +++----------
 init/Kconfig      |    1 +
 scripts/ver_linux |    5 +----
 4 files changed, 6 insertions(+), 14 deletions(-)
.gitignore +1 -0
index 9c0d650..d24ad50 100644
@@ -52,6 +52,7 @@ series
 
 # cscope files
 cscope.*
+ncscope.*
 
 *.orig
 *~
arch/x86/Kconfig +3 -10
index fe361ae..dcbec34 100644
@@ -26,17 +26,10 @@ config X86
 	select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64)
 	select HAVE_ARCH_KGDB if !X86_VOYAGER
 
-config DEFCONFIG_LIST
+config ARCH_DEFCONFIG
 	string
-	depends on X86_32
-	option defconfig_list
-	default "arch/x86/configs/i386_defconfig"
-
-config DEFCONFIG_LIST
-	string
-	depends on X86_64
-	option defconfig_list
-	default "arch/x86/configs/x86_64_defconfig"
+	default "arch/x86/configs/i386_defconfig" if X86_32
+	default "arch/x86/configs/x86_64_defconfig" if X86_64
 
 
 config GENERIC_LOCKBREAK
init/Kconfig +1 -0
index 6135d07..6199d11 100644
@@ -13,6 +13,7 @@ config DEFCONFIG_LIST
 	default "/lib/modules/$UNAME_RELEASE/.config"
 	default "/etc/kernel-config"
 	default "/boot/config-$UNAME_RELEASE"
+	default "$ARCH_DEFCONFIG"
 	default "arch/$ARCH/defconfig"
 
 menu "General setup"
scripts/ver_linux +1 -4
index ab69ece..7ac0e30 100755
@@ -12,12 +12,9 @@ echo ' '
 uname -a
 echo ' '
 
-gcc --version 2>&1| head -n 1 | grep -v gcc | awk \
+gcc -dumpversion 2>&1| awk \
 'NR==1{print "Gnu C                 ", $1}'
 
-gcc --version 2>&1| grep gcc | awk \
-'NR==1{print "Gnu C                 ", $3}'
-
 make --version 2>&1 | awk -F, '{print $1}' | awk \
       '/GNU Make/{print "Gnu make              ",$NF}'