diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2020-03-03 14:30:45 -0600 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2020-04-13 19:18:30 -0300 |
commit | 8cb1f2416be1cd48e5ed11eabc66152da65113ee (patch) | |
tree | 4789f62d1b59c1aa42824afdb5c229b5952435a4 | |
parent | 63ecb36e269acda526b6989d49cf1f2e18c84fab (diff) | |
download | meta-freescale-8cb1f2416be1cd48e5ed11eabc66152da65113ee.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>
(cherry picked from commit b8b557ff8b667f74064f8badd490b6ece4945ff9)
-rw-r--r-- | classes/fsl-eula-unpack.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/fsl-eula-unpack.bbclass b/classes/fsl-eula-unpack.bbclass index 9b8f2af6..0e7ef9d6 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=ab61cab9599935bfe9f70040 | |||
10 | 10 | ||
11 | LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE" | 11 | LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE" |
12 | 12 | ||
13 | do_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 | |||
13 | python fsl_bin_do_unpack() { | 18 | python 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: |