[oe] [PATCH] shr: add shr-mirrors.bbclass and make use of it
Krzysztof Koroscik
soltys at szluug.org
Sat Aug 21 10:26:49 UTC 2010
Signed-off-by: Krzysztof Koroscik <soltys at szluug.org>
---
classes/shr-mirrors.bbclass | 13 +++++++++++++
conf/distro/shr.conf | 5 ++++-
2 files changed, 17 insertions(+), 1 deletions(-)
create mode 100644 classes/shr-mirrors.bbclass
diff --git a/classes/shr-mirrors.bbclass b/classes/shr-mirrors.bbclass
new file mode 100644
index 0000000..92a41ad
--- /dev/null
+++ b/classes/shr-mirrors.bbclass
@@ -0,0 +1,13 @@
+PREMIRRORS_append () {
+cvs://.*/.* http://build.shr-project.org/sources/
+svn://.*/.* http://build.shr-project.org/sources/
+git://.*/.* http://build.shr-project.org/sources/
+hg://.*/.* http://build.shr-project.org/sources/
+bzr://.*/.* http://build.shr-project.org/sources/
+}
+
+MIRRORS_append () {
+ftp://.*/.* http://build.shr-project.org/sources/
+https?$://.*/.* http://build.shr-project.org/sources/
+}
+
diff --git a/conf/distro/shr.conf b/conf/distro/shr.conf
index e2a8d23..f7f4cf4 100644
--- a/conf/distro/shr.conf
+++ b/conf/distro/shr.conf
@@ -82,7 +82,10 @@ ANGSTROM_BLACKLIST_pn-linux-davinci = "strange kernel, spank maintainer"
CVS_TARBALL_STASH += "http://build.shr-project.org/sources/"
-PREMIRRORS = "(ftp|https?)$://.*/.* http://build.shr-project.org/sources/"
+#The shr-mirrors.bbclass repleaces this
+#PREMIRRORS = "(ftp|https?)$://.*/.* http://build.shr-project.org/sources/"
+INHERIT += "shr-mirrors"
+
DISTRO_FEED_PREFIX ?= "shr-dev"
DISTRO_FEED_URI ?= "http://build.shr-project.org/shr-testing/ipk"
--
1.6.4
More information about the Openembedded-devel
mailing list