mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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 rev: e87232828b761d56f1ce6a27e4009d350d68209c) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e525ef9619
commit
8331d0ad41
@@ -51,11 +51,10 @@ license_create_manifest() {
|
|||||||
printf "LICENSE:" >> ${LICENSE_MANIFEST}
|
printf "LICENSE:" >> ${LICENSE_MANIFEST}
|
||||||
for lic in ${pkged_lic}; do
|
for lic in ${pkged_lic}; do
|
||||||
# to reference a license file trim trailing + symbol
|
# to reference a license file trim trailing + symbol
|
||||||
if [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic%+}" ]; then
|
if ! [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic%+}" ]; then
|
||||||
printf " ${lic}" >> ${LICENSE_MANIFEST}
|
bbwarn "The license listed ${lic} was not in the licenses collected for ${pkged_pn}"
|
||||||
else
|
|
||||||
echo "WARNING: The license listed ${lic} was not in the licenses collected for ${pkged_pn}"
|
|
||||||
fi
|
fi
|
||||||
|
printf " ${lic}" >> ${LICENSE_MANIFEST}
|
||||||
done
|
done
|
||||||
printf "\n\n" >> ${LICENSE_MANIFEST}
|
printf "\n\n" >> ${LICENSE_MANIFEST}
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user