own-mirrors.bbclass: added class which can be used to set PREMIRRORS from config
authorMarcin Juszkiewicz <hrw@openembedded.org>
Sat, 10 Mar 2007 14:10:06 +0000 (14:10 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Sat, 10 Mar 2007 14:10:06 +0000 (14:10 +0000)
- SOURCE_MIRROR_URL is new variable which point to source mirror which will be
  used before fetching from original SRC_URI location.

classes/own-mirrors.bbclass [new file with mode: 0644]
conf/documentation.conf

diff --git a/classes/own-mirrors.bbclass b/classes/own-mirrors.bbclass
new file mode 100644 (file)
index 0000000..32763ed
--- /dev/null
@@ -0,0 +1,4 @@
+PREMIRRORS() {
+http://.*/.* ${SOURCE_MIRROR_URL}
+ftp://.*/.*  ${SOURCE_MIRROR_URL}
+}
index 84533e6..4782a05 100644 (file)
@@ -105,6 +105,7 @@ COMPATIBLE_HOST[doc] = "A regular expression which matches the HOST_SYS names su
 COMPATIBLE_MACHINE[doc] = "A regular expression which matches the MACHINES support by the package/file. Failure to match will cause the file to be skipped by the parser."
 
 SOURCE_MIRROR_FETCH[doc] = "Switch marking build as source fetcher. Used to skip COMPATIBLE_* checking."
+SOURCE_MIRROR_URL[doc] = "URL to source mirror which will be used before fetching from original SRC_URI."
 
 BBINCLUDELOGS[doc] = "Boolean switch to get log printed on failure."
 BBINCLUDELOGS_LINES[doc] = "Amount of log lines printed on failure."