summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-30 20:15:40 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-30 20:46:23 +0100
commite3d7890cace71b0a57d2530bf615a58dcb46d96f (patch)
treea7fd52a7c88a8919a72579cd05e86d5079a39567
parentc0281fa49b734c49f8c5b5f0d33f7b611bbc282f (diff)
downloadpoky-e3d7890cace71b0a57d2530bf615a58dcb46d96f.tar.gz
Make invalid LICENSE fields fatal
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-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 () {
438 import exceptions 438 import exceptions
439 439
440 pn = bb.data.getVar('PN', d, 1) 440 pn = bb.data.getVar('PN', d, 1)
441 license = bb.data.getVar('LICENSE', d, True)
442 if license == "INVALID":
443 bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn)
444
441 # If we're building a target package we need to use fakeroot (pseudo) 445 # If we're building a target package we need to use fakeroot (pseudo)
442 # in order to capture permissions, owners, groups and special files 446 # in order to capture permissions, owners, groups and special files
443 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): 447 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}}"
170DESCRIPTION_${PN}-dbg ?= "${SUMMARY_${PN}-dbg}" 170DESCRIPTION_${PN}-dbg ?= "${SUMMARY_${PN}-dbg}"
171DESCRIPTION_${PN}-dev ?= "${SUMMARY_${PN}-dev}" 171DESCRIPTION_${PN}-dev ?= "${SUMMARY_${PN}-dev}"
172DESCRIPTION_${PN}-doc ?= "${SUMMARY_${PN}-doc}" 172DESCRIPTION_${PN}-doc ?= "${SUMMARY_${PN}-doc}"
173LICENSE = "unknown" 173LICENSE = "INVALID"
174MAINTAINER = "Poky Team <poky@openedhand.com>" 174MAINTAINER = "Poky Team <poky@openedhand.com>"
175HOMEPAGE = "unknown" 175HOMEPAGE = "unknown"
176 176