diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-18 20:03:49 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-18 20:04:55 +0100 |
commit | 5c39825cf30a919b18ad1370488703576a1b9d09 (patch) | |
tree | e101a7a387cac08d5664f74a19aa96ec22346224 /scripts | |
parent | 9a1a3bb63dbec16ddd946c557574bdfc7386d24b (diff) | |
download | ptxdist-5c39825cf30a919b18ad1370488703576a1b9d09.tar.gz ptxdist-5c39825cf30a919b18ad1370488703576a1b9d09.tar.xz |
[collection] generate valid kconfig files for "ptxdist collectionconfig"
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_colgen.sh | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/scripts/lib/ptxd_lib_colgen.sh b/scripts/lib/ptxd_lib_colgen.sh index 330ef4706..7691e430f 100644 --- a/scripts/lib/ptxd_lib_colgen.sh +++ b/scripts/lib/ptxd_lib_colgen.sh @@ -11,7 +11,6 @@ ptxd_colgen_generate_sections() BEGIN { FS = "=\"|\"|="; col_in = "'"${PTX_KGEN_DIR}"'" "/collection/ptx_collection.in"; - col_all_in = "'"${PTX_KGEN_DIR}"'" "/collection/ptx_collection_all.in"; } $1 ~ /^PTX_MAP_TO_package/ { @@ -41,20 +40,6 @@ ptxd_colgen_generate_sections() END { n = asorti(module_pkgs, sorted); - printf \ - "config COLLECTION_ALL\n"\ - "\t" "bool \"select all packages \"\n" > col_all_in; - - - for (i = 1; i <= n; i++) { - pkg = sorted[i]; - - print "\tselect " pkg > col_all_in; - } - - printf "\n" > col_all_in; - close(col_all_in); - printf "" > col_in; for (i = 1; i <= n; i++) { @@ -63,7 +48,9 @@ ptxd_colgen_generate_sections() printf \ "config " pkg "\n"\ - "\t" "bool \"" pkg_lc "\"\n" > col_in; + "\t" "bool\n"\ + "\t" "prompt \"" pkg_lc "\" if COLLECTION_MANUAL\n"\ + "\t" "default COLLECTION_ALL\n" > col_in; m = split(deps[pkg], dep, ":"); for (j = 1; j <= m; j++) { |