[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

"make oldconfig" changing silently old kernel config options?



Hi All

What's this:

For a new 2.4.27 kernel I copied my old 2.4.25-ben1 config to
<kernel-source-dir>/.config, did a 'make oldconfig' which resulted in a
new config file where options I chose in the old 2.4.25-ben1 are missing
in the new 2.4.27 .config file. For example in  2.4.25-ben1 I have
 
CONFIG_AGP_UNINORTH=y

which is missing in the new 2.4.27 .config

And I got a compile error for agpgart_be.c, which I don't very
surprising after this messed up .config:

---------------------------------------------------------------
agpgart_be.c:96:2: #error "Please define flush_cache."
agpgart_be.c:402: warning: `agp_generic_agp_enable' defined but not used
agpgart_be.c:495: warning: `agp_generic_create_gatt_table' defined but not used
agpgart_be.c:619: warning: `agp_generic_suspend' defined but not used
agpgart_be.c:624: warning: `agp_generic_resume' defined but not used
agpgart_be.c:629: warning: `agp_generic_free_gatt_table' defined but not used
agpgart_be.c:681: warning: `agp_generic_insert_memory' defined but not used
agpgart_be.c:743: warning: `agp_generic_remove_memory' defined but not used
agpgart_be.c:760: warning: `agp_generic_alloc_by_type' defined but not used
agpgart_be.c:765: warning: `agp_generic_free_by_type' defined but not used
agpgart_be.c:783: warning: `agp_generic_alloc_page' defined but not used
agpgart_be.c:803: warning: `agp_generic_destroy_page' defined but not used
make[4]: *** [agpgart_be.o] Error 1
make[4]: Leaving directory `/home/shorty/sources/2.4.27/linux-2.4.27/drivers/char/agp'
make[3]: *** [_modsubdir_agp] Error 2
make[3]: Leaving directory `/home/shorty/sources/2.4.27/linux-2.4.27/drivers/char'
make[2]: *** [_modsubdir_char] Error 2
make[2]: Leaving directory `/home/shorty/sources/2.4.27/linux-2.4.27/drivers'
make[1]: *** [_mod_drivers] Error 2
make[1]: Leaving directory `/home/shorty/sources/2.4.27/linux-2.4.27'
make: *** [stamp-build] Error 2
----------------------------------------------------------------


A diff between the 2 kernel config versions (sorry the following
grepping might not be very elegant):

-----------------------------------
$ cat kernel.config.diff |grep -v ^' #' | grep -v ^'-#' | grep -v ^'+#' |  grep -v ^' ' | grep -v ^@
--- /boot/config-2.4.25-ben1    2004-04-25 15:53:20.000000000 +0200
+++ /home/shorty/sources/2.4.27/linux-2.4.27/.config    2004-08-20 18:46:44.000000000 +0200
-CONFIG_CPU_FREQ=y
-CONFIG_CPU_FREQ_26_API=y
-CONFIG_CPU_FREQ_PMAC=y
-CONFIG_IPV6_SCTP__=y
-CONFIG_PMU_HD_BLINK=y
-CONFIG_AGP_UNINORTH=y
+CONFIG_I2C=m
+CONFIG_I2C_KEYWEST=m
+CONFIG_CRYPTO_TEA=m
+CONFIG_CRYPTO_ARC4=m
+CONFIG_CRYPTO_MICHAEL_MIC=m
-----------------------------------------

Another example: in 2.4.25 I have
CONFIG_I2C=y
CONFIG_I2C_KEYWEST=y

now in 2.4.27 these previously built-in drivers have suddenly become
modules ....

What's going on with 'make oldconfig', i.e. why did it mess up the old
options from 2.4.25-ben1? My mistake?

TIA

Best Regards
Wolfgang
-- 
Wolfgang Pfeiffer                           gpg ID: 0AA7E825 
Profile, links: http://profiles.yahoo.com/wolfgangpfeiffer



Reply to: