summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/classes/base.bbclass4
-rw-r--r--meta/conf/bitbake.conf2
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index d2d5da04cf..dd346ee8f3 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -438,6 +438,10 @@ python () {
import exceptions
pn = bb.data.getVar('PN', d, 1)
+ license = bb.data.getVar('LICENSE', d, True)
+ if license == "INVALID":
+ bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn)
+
# If we're building a target package we need to use fakeroot (pseudo)
# in order to capture permissions, owners, groups and special files
if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index c2a2119678..33a6fad30f 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -170,7 +170,7 @@ DESCRIPTION_${PN} ?= "${SUMMARY_${PN}}"
DESCRIPTION_${PN}-dbg ?= "${SUMMARY_${PN}-dbg}"
DESCRIPTION_${PN}-dev ?= "${SUMMARY_${PN}-dev}"
DESCRIPTION_${PN}-doc ?= "${SUMMARY_${PN}-doc}"
-LICENSE = "unknown"
+LICENSE = "INVALID"
MAINTAINER = "Poky Team <poky@openedhand.com>"
HOMEPAGE = "unknown"