diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-04-11 10:31:58 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-04-11 14:39:29 +0200 |
commit | 3773950546f48aa98f357e43cc45a3d0a318bd40 (patch) | |
tree | 9bd863ada6934bddd0cbc8e17693700a881b0a72 /scripts/lib/ptxd_make_world_prepare.sh | |
parent | 8891bc373e6764f560d236db62c05c25916f1144 (diff) | |
download | ptxdist-3773950546f48aa98f357e43cc45a3d0a318bd40.tar.gz ptxdist-3773950546f48aa98f357e43cc45a3d0a318bd40.tar.xz |
ptxd_make_world_prepare: support <PKG>_CONF_TOOL := perl
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_prepare.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_prepare.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_prepare.sh b/scripts/lib/ptxd_make_world_prepare.sh index 17793e258..8b83107cd 100644 --- a/scripts/lib/ptxd_make_world_prepare.sh +++ b/scripts/lib/ptxd_make_world_prepare.sh @@ -97,6 +97,24 @@ export -f ptxd_make_world_prepare_kconfig # +# prepare for perl modules +# +ptxd_make_world_prepare_perl() { + [ "${pkg_type}" != "target" ] && \ + ptxd_bailout "only perl taget packages are supported" + + ptxd_eval \ + "${pkg_path}" \ + "${pkg_env}" \ + "${pkg_conf_env}" \ + perl \ + Makefile.PL \ + "${pkg_conf_opt}" +} +export -f ptxd_make_world_prepare_perl + + +# # generic prepare # ptxd_make_world_prepare() { @@ -115,7 +133,7 @@ ptxd_make_world_prepare() { fi case "${pkg_conf_tool}" in - autoconf|cmake|qmake|kconfig) + autoconf|cmake|qmake|kconfig|perl) cd -- "${pkg_build_dir}" && ptxd_make_world_prepare_"${pkg_conf_tool}" ;; "NO") echo "prepare stage disabled." ;; |