kconfig: simplification of scripts/extract-ikconfig
Linus,
The following patch has been sitting in linux-next since October.
Because I did not have any other changes to push, I forgot to send this during the merge window. Since it has been in linux-next for such a long time, it should not be much of a risk.
Please pull the latest for-linus-1 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-kconfig.git
for-linus-1
Dick Streefland (1):
kconfig: simplification of scripts/extract-ikconfig
----
Documentation/dontdiff | 1 - scripts/.gitignore | 1 - scripts/binoffset.c | 163 ---------------------------------------------- scripts/extract-ikconfig | 127 ++++++++++++----------------------- 4 files changed, 44 insertions(+), 248 deletions(-) --------------------------- commit 7b76bfc86757ca5e7b0a62f50003752da77c115b Author: Dick Streefland <[email protected]> Date: Tue Oct 6 22:35:40 2009 +0200
kconfig: simplification of scripts/extract-ikconfig
I've rewritten the extract-ikconfig script to extract the kernel configuration from a kernel compiled with CONFIG_IKCONFIG. The main motivation for the rewrite was to remove the dependency on the external C program binoffset.c, which is compiled on the initial run.
The binoffset executable is invoked with a relative path, which means that the old script can only be run from the top of the kernel tree, and only when you have write permission in the scripts directory.
The new script uses tr/grep/tail/zcat only, and can be invoked from anywhere. The binoffset.c program has been removed. This script requires GNU grep 2.5 (released 2002-03-13) or higher, because the -o option was introduced in that version.
LKML-Reference: <[email protected]>
Documentation/dontdiff +0 -1
@@ -68,7 +68,6 @@ autoconf.h* bbootsect bin2c binkernel.spec -binoffset bootsect bounds.h bsetup
scripts/.gitignore +0 -1
@@ -6,5 +6,4 @@ kallsyms pnmtologo bin2c unifdef -binoffset ihex2fw
scripts/binoffset.c deleted +0 -163
163 lines not on this page · raw message
scripts/extract-ikconfig +44 -83
136 lines not on this page · raw message