aboutsummaryrefslogtreecommitdiffstats
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-04-13 19:18:30 -0300
commit8cb1f2416be1cd48e5ed11eabc66152da65113ee (patch)
tree4789f62d1b59c1aa42824afdb5c229b5952435a4
parent63ecb36e269acda526b6989d49cf1f2e18c84fab (diff)
downloadmeta-freescale-8cb1f2416be1cd48e5ed11eabc66152da65113ee.tar.gz
meta-freescale-8cb1f2416be1cd48e5ed11eabc66152da65113ee.tar.bz2
meta-freescale-8cb1f2416be1cd48e5ed11eabc66152da65113ee.zip
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.bbclass5
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
LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE"
+do_fetch_prepend() {
+ if "Proprietary" not in d.getVar("LICENSE"):
+ bb.fatal("The recipe LICENSE should include Proprietary but is " + d.getVar("LICENSE") + ".")
+}
+
python fsl_bin_do_unpack() {
src_uri = (d.getVar('SRC_URI') or "").split()
if len(src_uri) == 0: