diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2022-08-08 13:54:17 -0500 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-08-10 16:54:38 +0000 |
commit | e56af240b097287258a7f16d2c706c6e5cab37bb (patch) | |
tree | d69cd8d567680ebfb974b8137bcf240741047faa /classes | |
parent | 06e1cf4099caa53da33c10e1884064f73dc184dd (diff) | |
download | meta-freescale-e56af240b097287258a7f16d2c706c6e5cab37bb.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>
(cherry picked from commit 4f9ab86277159c66498aeef23ec645de7f714211)
Diffstat (limited to 'classes')
-rw-r--r-- | classes/fsl-eula-unpack.bbclass | 2 |
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...") |