summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-06-15 22:30:01 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-06-15 22:30:01 +0000
commit896576be7e33920deed699239c1f8249f4e4555d (patch)
tree20a35d3d1b813749544dac09b6dea23fe287d62d /scripts
parent969586f3466786c3895e2db0e84c88fa81d17307 (diff)
downloadptxdist-896576be7e33920deed699239c1f8249f4e4555d.tar.gz
ptxdist-896576be7e33920deed699239c1f8249f4e4555d.tar.xz
[ptxd_make_world_compile] provide generic compile function
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10794 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_make_world_compile.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_compile.sh b/scripts/lib/ptxd_make_world_compile.sh
new file mode 100644
index 000000000..2c4238f19
--- /dev/null
+++ b/scripts/lib/ptxd_make_world_compile.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# call the compiler
+#
+ptxd_make_world_compile() {
+ ptxd_make_world_init &&
+
+ eval \
+ "${pkg_path}" \
+ "${pkg_make_env}" \
+ "${MAKE}" -C "${pkg_build_dir}" \
+ "${pkg_make_opt}" \
+ "${pkg_make_par}"
+}
+export -f ptxd_make_world_compile