[OE-core] [PATCH v2 1/3] image.bbclass: No need to force image licence on MIT
Geoffrey Levillain
geoffrey.levillain at smile.fr
Wed Feb 15 17:33:21 UTC 2017
If there is a user-defined licence there is no need to enforce MIT
licence instead. Therefor we set MIT if there is no licence defined.
Note : It also permit to set the licence before inherit image
in overlayable images (where a licence is needed because of the files
associated to the image).
Signed-off-by: Geoffrey Levillain <geoffrey.levillain at smile.fr>
---
meta/classes/image.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index b5a4fb4a33..75c2860a75 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -9,7 +9,7 @@ TOOLCHAIN_TARGET_TASK += "${PACKAGE_INSTALL}"
TOOLCHAIN_TARGET_TASK_ATTEMPTONLY += "${PACKAGE_INSTALL_ATTEMPTONLY}"
POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_sysroot_relativelinks; "
-LICENSE = "MIT"
+LICENSE ?= "MIT"
PACKAGES = ""
DEPENDS += "${MLPREFIX}qemuwrapper-cross depmodwrapper-cross"
RDEPENDS += "${PACKAGE_INSTALL} ${LINGUAS_INSTALL}"
--
2.11.0
More information about the Openembedded-core
mailing list