From 5d713a27fca5c9cdbb98edc5936badc3f867a07a Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 3 Nov 2015 01:54:34 +0100 Subject: 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. --- buildconf/local.conf | 3 +++ classes/toradex-mirrors.bbclass | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 classes/toradex-mirrors.bbclass 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/ +} -- cgit v1.2.3