diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-06-10 00:47:51 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-06-10 00:47:51 +0000 |
commit | ac5a78a14f2f2d0a34a0251e5220a92ac55f5e48 (patch) | |
tree | de3e074b96bf8c3895e8b545906476726a9deada /scripts | |
parent | 7a87d32fe725ea25db275f430a424af606f3d640 (diff) | |
download | ptxdist-ac5a78a14f2f2d0a34a0251e5220a92ac55f5e48.tar.gz ptxdist-ac5a78a14f2f2d0a34a0251e5220a92ac55f5e48.tar.xz |
generate autoconf cache in PTXDIST_GEN_CONFIG_DIR for host and target
just an empty cache for now
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10697 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_autoconf_cache.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_autoconf_cache.sh b/scripts/lib/ptxd_make_autoconf_cache.sh new file mode 100644 index 000000000..3f1483b1b --- /dev/null +++ b/scripts/lib/ptxd_make_autoconf_cache.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +PTXDIST_AUTOCONF_CACHE_TARGET="${PTXDIST_GEN_CONFIG_DIR}/config-target.cache" +PTXDIST_AUTOCONF_CACHE_HOST="${PTXDIST_GEN_CONFIG_DIR}/config-host.cache" + +export PTXDIST_AUTOCONF_CACHE_TARGET +export PTXDIST_AUTOCONF_CACHE_HOST + +ptxd_make_autoconf_cache() { + mkdir -p -- "${PTXDIST_GEN_CONFIG_DIR}" && + + # + # make there no garbage in the cache for the individual cache + # case, as long as we don't generate serious cache contents + # + if [ -z "${PTXCONF_SETUP_COMMON_CACHE}" ]; then + rm -rf -- \ + "${PTXDIST_AUTOCONF_CACHE_TARGET}" \ + "${PTXDIST_AUTOCONF_CACHE_HOST}" + fi && + + touch -- \ + "${PTXDIST_AUTOCONF_CACHE_TARGET}" \ + "${PTXDIST_AUTOCONF_CACHE_HOST}" +} +ptxd_make_autoconf_cache |