aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZoltán Böszörményi <zboszor@pr.hu>2018-01-19 10:48:59 +0100
committerAlex J Lennon <ajlennon@dynamicdevices.co.uk>2018-01-24 09:45:25 +0000
commit1183375f4ada9a3f9ee409fd7b9617fc069aa967 (patch)
treebb3aaa915e694cdf1aba1ed4f1744945b25984d2
parent4576ea13344f3a9f74062f0f902371ca0d5ea6b4 (diff)
downloadmeta-mono-1183375f4ada9a3f9ee409fd7b9617fc069aa967.tar.gz
meta-mono-1183375f4ada9a3f9ee409fd7b9617fc069aa967.tar.bz2
meta-mono-1183375f4ada9a3f9ee409fd7b9617fc069aa967.zip
mono.bbclass: Contain extra packages downloaded by NuGet
Packages using NuGet to download further pre-built dependencies pollute the user's $HOME. Some build environments use designated partitions outside /home and /home or / has limited amount of disk space. NuGet may cause disk full errors. It is also generally discouraged for cross-compiled packages to reach outside the package $WORKDIR in Yocto. Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
-rw-r--r--classes/mono.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/mono.bbclass b/classes/mono.bbclass
index 1cb4b17..00cd37b 100644
--- a/classes/mono.bbclass
+++ b/classes/mono.bbclass
@@ -32,3 +32,11 @@ FILES_${PN}-doc += "\
"
export MONO_CFG_DIR="${STAGING_ETCDIR_NATIVE}"
+
+# NuGet uses $HOME but we should not use anything
+# outside the build root of the packages.
+export HOME="${WORKDIR}/mono-home-dir"
+
+do_configure_prepend() {
+ mkdir -p ${HOME}
+}