summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2022-08-08 13:54:17 -0500
committerTom Hochstein <tom.hochstein@nxp.com>2022-08-10 10:57:46 -0500
commit4f9ab86277159c66498aeef23ec645de7f714211 (patch)
tree281544ae043633880bccba6ec5b592a325d4b28f /classes
parenteffeb16a8f18d8bec59b4c0ce5fb9ce3d2a92f5e (diff)
downloadmeta-freescale-4f9ab86277159c66498aeef23ec645de7f714211.tar.gz
fsl-eula-unpack.bbclass: Fail if fsl-eula=true is missing
It doesn't make sense to inherit the class but not use it. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/fsl-eula-unpack.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/fsl-eula-unpack.bbclass b/classes/fsl-eula-unpack.bbclass
index 5fd18c2f..928c992a 100644
--- a/classes/fsl-eula-unpack.bbclass
+++ b/classes/fsl-eula-unpack.bbclass
@@ -128,6 +128,8 @@ python fsl_bin_do_unpack() {
128 bb.note("Handling file '%s' as a Freescale EULA-licensed archive." % url.basename) 128 bb.note("Handling file '%s' as a Freescale EULA-licensed archive." % url.basename)
129 cmd = "sh %s --auto-accept --force" % (url.localpath) 129 cmd = "sh %s --auto-accept --force" % (url.localpath)
130 bb.fetch2.runfetchcmd(cmd, d, quiet=True, workdir=rootdir) 130 bb.fetch2.runfetchcmd(cmd, d, quiet=True, workdir=rootdir)
131 if not found:
132 bb.fatal("The recipe inherits 'fsl-eula-unpack.bbclass' but does not mark any URL in SRC_URI with the option 'fsl-eula=true'")
131 133
132 # Check for two EULAs, one from the layer and one from the package 134 # Check for two EULAs, one from the layer and one from the package
133 bb.note("Checking LIC_FILES_CHKSUM for Freescale EULA consistency...") 135 bb.note("Checking LIC_FILES_CHKSUM for Freescale EULA consistency...")