Re: [2.6 patch] defconfig's shouldn't set CONFIG_BROKEN=y

From: Russell King <rmk+lkml_at_arm.linux.org.uk>
Date: 2005-12-12 06:44:37
On Sun, Dec 11, 2005 at 08:31:18PM +0100, Adrian Bunk wrote:
> On Sun, Dec 11, 2005 at 07:21:10PM +0000, Russell King wrote:
> > On Sun, Dec 11, 2005 at 07:52:12PM +0100, Adrian Bunk wrote:
> > > defconfig's shouldn't set CONFIG_BROKEN=y.
> > 
> > NACK.  This changes other configuration options in addition, for example
> > in collie_defconfig:
> > 
> > -CONFIG_MTD_OBSOLETE_CHIPS=y
> > -# CONFIG_MTD_AMDSTD is not set
> > -CONFIG_MTD_SHARP=y
> > -# CONFIG_MTD_JEDEC is not set
> 
> That's not a problem introduced by my patch.

It's a problem introduced by your patch because the resulting defconfig
file becomes _wrong_ by your change, and other changes in the defconfig
are thereby hidden.

If you change any options in a defconfig file, and they're obviously not
leaf options, you should check what impact they have on other options by
running it through an "oldconfig" cycle.  That's what I just did with
this script:

#!/bin/sh -e
alias amake='make CROSS_COMPILE=arm-linux- ARCH=arm'
amake $1 O=../build/t >/dev/null 2>&1
mv ../build/t/.config ../build/t/.config.orig
sed '/CONFIG_BROKEN/d;s,^# CONFIG_CLEAN_COMPILE is not set,CONFIG_CLEAN_COMPILE=y,' < ../build/t/.config.orig > ../build/t/.config
amake oldconfig O=../build/t >/dev/null 2>&1
diff -u ../build/t/.config.orig ../build/t/.config

Hence I discovered that disabling CONFIG_BROKEN removes the above
options for the collie case.

BTW, it might be worth using something like the above script for all
the changes to the defconfig files in your patch so that it correctly
updates these files.  It will also mean that any review of it is more
meaningful because we can see the full extent of your changes.

> Either the depency of MTD_OBSOLETE_CHIPS on BROKEN is correct (in which 
> case CONFIG_MTD_OBSOLETE_CHIPS=y wouldn't bring you anything), or the 
> dependency on BROKEN is not correct and should be corrected.

That's something which collie folk need to comment on.  However, what
I can say is that the collie_defconfig builds successfully today:

http://armlinux.simtec.co.uk/kautobuild/2.6.15-rc5-git1/collie_defconfig/zimage.log

so it's quite possible that the Kconfig is out of sync with reality.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Dec 12 06:46:02 2005

This archive was generated by hypermail 2.1.8 : 2005-12-12 06:46:11 EST