summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-01-19 15:36:55 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-01-19 15:36:55 +0000
commitec42183ec2fb5bee567f61e1dbdbba41a5b59f5b (patch)
tree66aa4e494d784696a1e83e1d92fe6349acef6109 /vars
parentd279a98da1aae886a4b4201122ce5614a185f008 (diff)
downloadmidipix_build-ec42183ec2fb5bee567f61e1dbdbba41a5b59f5b.tar.bz2
midipix_build-ec42183ec2fb5bee567f61e1dbdbba41a5b59f5b.tar.xz
vars/invariants_zipdist.vars:pkg_invariants_zipdist_all(): move beneath ${BUILD_WORKDIR}/zipdist/ & remove temporary mpackage directories.
vars/midipix.vars: adds ${DEFAULT_ZIPDIST_DEFROOT}.
Diffstat (limited to 'vars')
-rw-r--r--vars/invariants_zipdist.vars28
-rw-r--r--vars/midipix.vars1
2 files changed, 17 insertions, 12 deletions
diff --git a/vars/invariants_zipdist.vars b/vars/invariants_zipdist.vars
index 9a90b1a5..66f38a64 100644
--- a/vars/invariants_zipdist.vars
+++ b/vars/invariants_zipdist.vars
@@ -12,18 +12,22 @@ pkg_invariants_zipdist_all() {
fi;
done;
_dist_fname="${DEFAULT_ZIPDIST_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.zip";
- "${BUILD_WORKDIR}/mpackage/mpackage.sh" \
- --defroot=/dev/fs/c/midipix \
- --flysyms \
- --minroot="${PREFIX_MINIPIX}" \
- --objroot="${BUILD_WORKDIR}" \
- --pkgroot="${BUILD_WORKDIR}/pkgroot" \
- --product=Midipix \
- --subset="${_pkglist_fname}" \
- --symbols \
- --sysroot="${BUILD_WORKDIR}/sysroot" \
- --target="${DEFAULT_TARGET}" \
- --tmproot="${BUILD_WORKDIR}/tmproot" \
+ if [ -e "${BUILD_WORKDIR}/zipdist" ]; then
+ ex_rtl_fileop rm "${BUILD_WORKDIR}/zipdist";
+ fi;
+ ex_rtl_fileop mkdir "${BUILD_WORKDIR}/zipdist";
+ "${BUILD_WORKDIR}/mpackage/mpackage.sh" \
+ --defroot="${DEFAULT_ZIPDIST_DEFROOT}" \
+ --flysyms \
+ --minroot="${PREFIX_MINIPIX}" \
+ --objroot="${BUILD_WORKDIR}" \
+ --pkgroot="${BUILD_WORKDIR}/zipdist/pkgroot" \
+ --product=Midipix \
+ --subset="${_pkglist_fname}" \
+ --symbols \
+ --sysroot="${BUILD_WORKDIR}/zipdist/sysroot" \
+ --target="${DEFAULT_TARGET}" \
+ --tmproot="${BUILD_WORKDIR}/zipdist/tmproot" \
--zipfile="${PREFIX}/${_dist_fname}";
fi;
};
diff --git a/vars/midipix.vars b/vars/midipix.vars
index 471670ca..669c0c3b 100644
--- a/vars/midipix.vars
+++ b/vars/midipix.vars
@@ -53,6 +53,7 @@
: ${DEFAULT_MAKEFLAGS_BUILD:=-j${DEFAULT_BUILD_CPUS}};
: ${DEFAULT_GIT_ARGS:=""};
: ${DEFAULT_WGET_ARGS:="--no-check-certificate"};
+: ${DEFAULT_ZIPDIST_DEFROOT:="/dev/fs/c/midipix"};
# Target-relative defaults
: ${DEFAULT_CROSS_AR:=${DEFAULT_TARGET}-ar};