]> code.ossystems Code Review - openembedded-core.git/commit
license.bbclass: fix copying license directories failed
authorHongxu Jia <hongxu.jia@windriver.com>
Tue, 25 Mar 2014 10:20:36 +0000 (18:20 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Mar 2014 11:17:06 +0000 (11:17 +0000)
commit4e00554dfc68b1aad07e161921c27807511420b1
tree494e019ef56ed504e765174439774c2b630215b4
parent9981f760ac890d01a07db8faa24ceee2bea78b62
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]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/license.bbclass