trustfence-cst-native: add premirror for CST package

This will allow to get the package from a premirror in case it is not
already downloaded in the DL_DIR.

https://jira.digi.com/browse/DEL-3051

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-03-22 12:35:37 +01:00
parent 165f58e9df
commit 116d532813
1 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,17 @@ SRC_URI = " \
file://Makefile \
"
# Usually local files (with file:// protocol) are not checked for
# premirrors. But in this case we want to be able to download the 'cst'
# package from a premirror in case it's not already in the DL_DIR, so prepend
# a premirror for the 'file://' protocol.
python() {
source_mirror_url = d.getVar('SOURCE_MIRROR_URL', True)
if source_mirror_url:
premirrors = d.getVar('PREMIRRORS', True)
d.setVar('PREMIRRORS', "file://cst.* %s \\n %s" % (source_mirror_url, premirrors))
}
S = "${WORKDIR}/cst-${PV}"
inherit native