summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2020-03-03 14:30:45 -0600
committerOtavio Salvador <otavio@ossystems.com.br>2020-03-03 18:24:53 -0300
commitb8b557ff8b667f74064f8badd490b6ece4945ff9 (patch)
treec12b117a82bdd2ab7647f10ed5e993d0651d1544 /classes
parent2d5adaea3165ed728f0cef52528c99708ac34c0a (diff)
downloadmeta-freescale-b8b557ff8b667f74064f8badd490b6ece4945ff9.tar.gz
fsl-eula-unpack.bbclass: Verify LICENSE contains Proprietary
All EULA packages are proprietary, so verify that the recipe LICENSE contains Proprietary before fetching the package. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/fsl-eula-unpack.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/fsl-eula-unpack.bbclass b/classes/fsl-eula-unpack.bbclass
index 7b62f089..85099542 100644
--- a/classes/fsl-eula-unpack.bbclass
+++ b/classes/fsl-eula-unpack.bbclass
@@ -10,6 +10,11 @@ LIC_FILES_CHKSUM_append = " file://${FSL_EULA_FILE};md5=6c12031a11b81db21cdfe0be
10 10
11LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE" 11LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE"
12 12
13do_fetch_prepend() {
14 if "Proprietary" not in d.getVar("LICENSE"):
15 bb.fatal("The recipe LICENSE should include Proprietary but is " + d.getVar("LICENSE") + ".")
16}
17
13python fsl_bin_do_unpack() { 18python fsl_bin_do_unpack() {
14 src_uri = (d.getVar('SRC_URI') or "").split() 19 src_uri = (d.getVar('SRC_URI') or "").split()
15 if len(src_uri) == 0: 20 if len(src_uri) == 0: