summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_common.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-06-12 19:55:20 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-06-21 09:34:50 +0200
commitb2ab2eb421f308c29961730037472e6e40ffa1fb (patch)
treee1cf2e7f1338e17ebd9b99abc694734b9c6a6464 /scripts/lib/ptxd_make_world_common.sh
parent457fd335ccbea618895cbdd21cfd9b426bd09368 (diff)
downloadptxdist-b2ab2eb421f308c29961730037472e6e40ffa1fb.tar.gz
ptxdist-b2ab2eb421f308c29961730037472e6e40ffa1fb.tar.xz
pkg-config-wrapper: only allow packages that are selected
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_common.sh')
-rw-r--r--scripts/lib/ptxd_make_world_common.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh
index b366dc80c..10ad0c714 100644
--- a/scripts/lib/ptxd_make_world_common.sh
+++ b/scripts/lib/ptxd_make_world_common.sh
@@ -329,6 +329,12 @@ ptxd_make_world_init() {
;;
*) ;;
esac
+ local pkgconfig_whitelist
+ pkgconfig_whitelist="$(echo $(
+ for dep in ${pkg_build_deps}; do
+ cat "${ptx_state_dir}/${dep}.pkgconfig" 2>/dev/null;
+ done))"
+ pkg_env="PKGCONFIG_WHITELIST='${pkgconfig_whitelist}' PKGCONFIG_WHITELIST_SRC='${pkg_label}' ${pkg_env}"
# DESTDIR
if [[ "${pkg_conf_tool}" =~ "python" ]]; then