From: Tom Hochstein Date: Tue, 3 Mar 2020 20:30:45 +0000 (-0600) Subject: fsl-eula-unpack.bbclass: Verify LICENSE contains Proprietary X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=b8b557ff8b667f74064f8badd490b6ece4945ff9;p=meta-freescale.git 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 --- 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 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: