]> code.ossystems Code Review - openembedded-core.git/commit
license_image.bbclass: use canonical name for license files
authorVyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
Tue, 17 Nov 2020 14:41:20 +0000 (15:41 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Wed, 25 Nov 2020 14:55:16 +0000 (22:55 +0800)
commit0fda54af52dfb57598ea9409113d33dacb786dc1
tree2f95da597418de6511a14529f7b0951f72ab534f
parent12bee66a42a7c2a38789ddb37cb098bcbf0b3841
license_image.bbclass: use canonical name for license files

When copying license files to the image rootfs, i.e to
/usr/share/common-licenses, a canonical name of a license should be
used, otherwise duplicated files end up in common-licenses directory.

For example, GPL-2.0 license according to conf/license.conf can be
referenced in recipes as GPL-2, GPLv2, and GPLv2.0. If a license name is
used directly, we end up with three files in the rootfs with the same
content. If a canonical name used instead, then each license gets copied
only once.

Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 670fe71dd18ea675f35581db4a61fda137f8bf00)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/license_image.bbclass