From e56af240b097287258a7f16d2c706c6e5cab37bb Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Mon, 8 Aug 2022 13:54:17 -0500 Subject: 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 (cherry picked from commit 4f9ab86277159c66498aeef23ec645de7f714211) --- classes/fsl-eula-unpack.bbclass | 2 ++ 1 file changed, 2 insertions(+) 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() { bb.note("Handling file '%s' as a Freescale EULA-licensed archive." % url.basename) cmd = "sh %s --auto-accept --force" % (url.localpath) bb.fetch2.runfetchcmd(cmd, d, quiet=True, workdir=rootdir) + if not found: + bb.fatal("The recipe inherits 'fsl-eula-unpack.bbclass' but does not mark any URL in SRC_URI with the option 'fsl-eula=true'") # Check for two EULAs, one from the layer and one from the package bb.note("Checking LIC_FILES_CHKSUM for Freescale EULA consistency...") -- cgit v1.2.3-54-g00ecf