summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_prepare.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-01-19 12:52:46 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-01-26 01:29:00 +0100
commit3503ef0fe84496365b50d8db87ef14c8c8aa9aa9 (patch)
treeffff1621430cf20050c5862e7350a6c1425ee1cf /scripts/lib/ptxd_make_world_prepare.sh
parent0147810d040f173c642d0b51c449a0614a45d5d6 (diff)
downloadptxdist-3503ef0fe84496365b50d8db87ef14c8c8aa9aa9.tar.gz
ptxdist-3503ef0fe84496365b50d8db87ef14c8c8aa9aa9.tar.xz
prepare: add -DCMAKE_TOOLCHAIN_FILE=... to {CROSS,HOST}_CMAKE_*
This makes it possible to call cmake manually in the prepare stage. 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.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/scripts/lib/ptxd_make_world_prepare.sh b/scripts/lib/ptxd_make_world_prepare.sh
index d484a7afa..623287824 100644
--- a/scripts/lib/ptxd_make_world_prepare.sh
+++ b/scripts/lib/ptxd_make_world_prepare.sh
@@ -37,23 +37,14 @@ export -f ptxd_make_world_prepare_sanity_check
# prepare for cmake based pkgs
#
ptxd_make_world_prepare_cmake() {
- local pkg_cmake_opt
-
- case "${pkg_type}" in
- target)
- pkg_cmake_opt="-DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_TARGET}'" ;;
- host)
- pkg_cmake_opt="-DCMAKE_TOOLCHAIN_FILE='${PTXDIST_CMAKE_TOOLCHAIN_HOST}'" ;;
- cross)
- ptxd_bailout "sorry - cmake 'cross' packages are not supported" ;;
- esac
+ [ "${pkg_type}" == "cross" ] && \
+ ptxd_bailout "sorry - cmake 'cross' packages are not supported"
eval \
"${pkg_path}" \
"${pkg_env}" \
"${pkg_conf_env}" \
cmake \
- "${pkg_cmake_opt}" \
"${pkg_conf_opt}" \
"${pkg_conf_dir}"
}