lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090103171255.GO496@one.firstfloor.org>
Date:	Sat, 3 Jan 2009 18:12:55 +0100
From:	Andi Kleen <andi@...stfloor.org>
To:	Arnd Bergmann <arnd@...db.de>
Cc:	Andi Kleen <andi@...stfloor.org>, linux-kbuild@...r.kernel.org,
	sam@...nborg.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [1/3] KBUILD: Add script to manipulate .config files on the command line

On Sat, Jan 03, 2009 at 11:54:44AM +0100, Arnd Bergmann wrote:
> > I extracted most of the CONFIG manipulation code from one of my
> > build scripts into a new shell script scripts/config
> 
> This looks very useful, thanks for sharing.
> 
> > The script is not integrated with the normal Kconfig machinery
> > and doesn't do any checking against Kconfig files, but just manipulates
> > that text format. This is always done at make time anyways.
> 
> Why? I would imagine it to be useful to get immediate feedback
> whether changing the option was successful. It should be easy to
> run scripts/kconfig/conf -o on the config file afterwards.

Mostly so that the script doesn't need to know about the source
directory. That would be another argument, making it harder to use. 
At least my build scripts often run in a different environment. And
make always checks it anyways.

Also I wasn't sure how to change the filename of the config file
without using Kconfig internals.  That would be less of a concern
now if it was merged, but it was one out of tree.

> 
> My normal workflow when changing single options is to remove the
> line from .config and call make oldconfig again. What I would
> like to see most here is something like
> 
> ./scripts/config --reconfigure smp
> Remove SMP from .config, and do oldconfig to ask again.

You don't need the make oldconfig, make always does that automatically.

BTW there's an undocumented option to do this, but I intentionally
didn't document it because it doesn't work with --file due to the
reasons stated above.

-Andi

-- 
ak@...ux.intel.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ