summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2013-06-10 16:15:50 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-11 14:10:48 +0000
commit8a70e3d87cdde27c0b3b98f980799d4825f611a4 (patch)
treefef965d37602ad4f4889a6b6733364f85554fe14 /meta
parent2e5772020f56447dfbc10b6105b71bce6f5a5352 (diff)
downloadpoky-8a70e3d87cdde27c0b3b98f980799d4825f611a4.tar.gz
license.bbclass: include all licenses in the manifest
When we don't have a generic license file for the license in question, we can warn, but we should still include it in the manifest, otherwise the manifest doesn't reflect reality. Failing to include a license listed in the recipe in the manifest can't be allowed. (From OE-Core master rev: e87232828b761d56f1ce6a27e4009d350d68209c) (From OE-Core rev: 32c064e567aaba18dfb07b171dde9cc43d0e6de8) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/license.bbclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 7c4feb15ca..e5663bb689 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -51,11 +51,10 @@ license_create_manifest() {
51 printf "LICENSE:" >> ${LICENSE_MANIFEST} 51 printf "LICENSE:" >> ${LICENSE_MANIFEST}
52 for lic in ${pkged_lic}; do 52 for lic in ${pkged_lic}; do
53 # to reference a license file trim trailing + symbol 53 # to reference a license file trim trailing + symbol
54 if [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic%+}" ]; then 54 if ! [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic%+}" ]; then
55 printf " ${lic}" >> ${LICENSE_MANIFEST} 55 bbwarn "The license listed ${lic} was not in the licenses collected for ${pkged_pn}"
56 else
57 echo "WARNING: The license listed ${lic} was not in the licenses collected for ${pkged_pn}"
58 fi 56 fi
57 printf " ${lic}" >> ${LICENSE_MANIFEST}
59 done 58 done
60 printf "\n\n" >> ${LICENSE_MANIFEST} 59 printf "\n\n" >> ${LICENSE_MANIFEST}
61 done 60 done