summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-11-03 01:54:34 +0100
committerStefan Agner <stefan.agner@toradex.com>2015-11-03 01:54:34 +0100
commit5d713a27fca5c9cdbb98edc5936badc3f867a07a (patch)
tree55a2e9684d84b9a2ede77545c3166d877115d8b2
parent81b13b31a011aa10400c4064ab341f4e015ec89b (diff)
local.conf: add Toradex source mirror as pre-mirror
To download the sources mirrored on sources.toradex.com add the Toradex mirror as pre-mirror.
-rw-r--r--buildconf/local.conf3
-rw-r--r--classes/toradex-mirrors.bbclass13
2 files changed, 16 insertions, 0 deletions
diff --git a/buildconf/local.conf b/buildconf/local.conf
index 31fc23c..1535ee1 100644
--- a/buildconf/local.conf
+++ b/buildconf/local.conf
@@ -241,6 +241,9 @@ CONF_VERSION = "1"
# Delete the the source/object/binary files once a package is built to preserve disk space
INHERIT += "rm_work"
+# Add Toradex source mirror
+INHERIT += "toradex-mirrors"
+
# Use this distro
DISTRO = "angstrom-v2015.06"
diff --git a/classes/toradex-mirrors.bbclass b/classes/toradex-mirrors.bbclass
new file mode 100644
index 0000000..07acfc2
--- /dev/null
+++ b/classes/toradex-mirrors.bbclass
@@ -0,0 +1,13 @@
+PREMIRRORS_append () {
+cvs://.*/.* http://sources.toradex.com/V2.5/
+svn://.*/.* http://sources.toradex.com/V2.5/
+git://.*/.* http://sources.toradex.com/V2.5/
+gitsm://.*/.* http://sources.toradex.com/V2.5/
+hg://.*/.* http://sources.toradex.com/V2.5/
+bzr://.*/.* http://sources.toradex.com/V2.5/
+svk://.*/.* http://sources.toradex.com/V2.5/
+p4://.*/.* http://sources.toradex.com/V2.5/
+osc://.*/.* http://sources.toradex.com/V2.5/
+https?$://.*/.* http://sources.toradex.com/V2.5/
+ftp://.*/.* http://sources.toradex.com/V2.5/
+}