]> code.ossystems Code Review - openembedded-core.git/commit
license.bbclass: fix copying license directories failed
authorHongxu Jia <hongxu.jia@windriver.com>
Wed, 20 Nov 2013 10:35:39 +0000 (18:35 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Sun, 26 Jan 2014 06:08:15 +0000 (14:08 +0800)
commit49a8573e8645830c7fce5fba9dd0b1c97b09e181
tree397b62b4925a0ef5ee2c4033bf3dd4a3b46d5bea
parent95e983f84add8a618258c73844e360631d0511a2
license.bbclass: fix copying license directories failed

For each recipe, it populated license files to ${LICENSE_DIRECTORY}/${PN},
such as kernel's license dir was ${LICENSE_DIRECTORY}/kernel-3.10.17-yocto-standard;

In do_rootfs task, it copied license directories from ${LICENSE_DIRECTORY}/
${pkg}, and ${pkg} was listed in ${INSTALLED_PKGS};

We got ${INSTALLED_PKGS} by rpm query, such as the kernel were 'kernel-*',
but the kernel's PN was linux-yocto, so searching ${LICENSE_DIRECTORY}/
kernel-* failed.

Copied license directories from ${LICENSE_DIRECTORY}/${PN} fixed this issue.

[YOCTO #5572]

(From OE-Core master rev: 8968f9a3461912c8de217135f3691c86e2a58e86)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/license.bbclass