diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2022-09-02 16:31:33 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2022-09-02 17:37:16 +0200 |
commit | d3100e7fd298e9263ab891ee536688dde4a5c736 (patch) | |
tree | 4f5c4d5b263170f8785b4c6f2ef44f8d8f11059f /scripts | |
parent | 29c5cd8aba8e3482310e6ccbbdcc2ff36e6c7a6d (diff) | |
download | ptxdist-d3100e7fd298e9263ab891ee536688dde4a5c736.tar.gz ptxdist-d3100e7fd298e9263ab891ee536688dde4a5c736.tar.xz |
ptxd_lib_dgen: generate list of all enabled virtual packages
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 6 | ||||
-rw-r--r-- | scripts/lib/ptxd_make_world_common.sh | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index ff4679465..fae7a491a 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -699,6 +699,12 @@ END { write_all_deps("R") write_all_deps("B") print "PTX_PACKAGES_ALL := " all_pkg > DGEN_DEPS_PRE; + virtual_pkgs = "" + for (this_PKG in virtual_pkg) { + this_pkg = gensub("_", "-", "g", tolower(this_PKG)); + virtual_pkgs = virtual_pkgs " " this_pkg + } + print "PTX_PACKAGES_VIRTUAL := " virtual_pkgs > DGEN_DEPS_PRE; # for active pkgs for (this_PKG in active_PKG_to_pkg) { diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh index f8bd8746d..461dbe7b8 100644 --- a/scripts/lib/ptxd_make_world_common.sh +++ b/scripts/lib/ptxd_make_world_common.sh @@ -178,6 +178,7 @@ export -f ptxd_make_world_init_sanity_check ptxd_make_world_env_init() { ptx_packages_all="${PTX_PACKAGES_ALL}" + ptx_packages_virtual="${PTX_PACKAGES_VIRTUAL}" ptx_packages_selected="${PTX_PACKAGES_SELECTED}" ptx_packages_disabled="${PTX_PACKAGES_DISABLED}" image_pkgs_selected_target="${PTX_PACKAGES_INSTALL}" |