From 8cb1f2416be1cd48e5ed11eabc66152da65113ee Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Tue, 3 Mar 2020 14:30:45 -0600 Subject: 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 (cherry picked from commit b8b557ff8b667f74064f8badd490b6ece4945ff9) --- classes/fsl-eula-unpack.bbclass | 5 +++++ 1 file changed, 5 insertions(+) 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: -- cgit v1.2.3-54-g00ecf