summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-07-08 19:39:13 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-07-09 10:16:48 +0200
commitb3068eeaeb83ac2cf07168a708821de87fa867e7 (patch)
tree3b2f8bf26df96f3e4d4feb515745aa2fcbe2964a
parentb67eeaef8950d326a67e4b3a3f7dc2e626c0d72d (diff)
downloadptxdist-b3068eeaeb83ac2cf07168a708821de87fa867e7.tar.gz
ptxdist-b3068eeaeb83ac2cf07168a708821de87fa867e7.tar.xz
ptxd_colgen_generate_sections: handle host and cross packages
Otherwise they won't be added to PTX_PACKAGES_SELECTED. This breaks source -> packages mapping and causes the get stage to fail with: error: empty parameter to 'ptxd_make_get' Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_lib_colgen.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_lib_colgen.sh b/scripts/lib/ptxd_lib_colgen.sh
index abbc31841..e41e1913e 100644
--- a/scripts/lib/ptxd_lib_colgen.sh
+++ b/scripts/lib/ptxd_lib_colgen.sh
@@ -7,7 +7,7 @@ ptxd_colgen_generate_sections()
# ignore the '-q' option to get a valid collection.
#
unset PTXDIST_QUIET
- ptxd_make_log "print-PACKAGES-m" | gawk '
+ ptxd_make_log "print-PACKAGES-m" "print-CROSS_PACKAGES-m" "print-HOST_PACKAGES-m" | gawk '
BEGIN {
FS = "=\"|\"|=";
col_in = "'"${PTX_KGEN_DIR}"'" "/generated/ptx_collection.in";
@@ -46,12 +46,18 @@ ptxd_colgen_generate_sections()
pkg = sorted[i];
pkg_lc = module_pkgs[pkg];
+ if (pkg_lc ~ /^host-|cross-/)
+ prompt = ""
+ else
+ prompt = "\tprompt \"" pkg_lc "\" if COLLECTION_MANUAL\n"
+
printf \
"config " pkg "\n"\
"\t" "bool\n"\
- "\t" "prompt \"" pkg_lc "\" if COLLECTION_MANUAL\n"\
+ prompt\
"\t" "default COLLECTION_ALL\n" > col_in;
+
m = split(deps[pkg], dep, " ");
asort(dep, sdep);
last = "";