diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-11-18 15:20:44 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-12 17:00:21 +0000 |
commit | 3656f81f3d46690ff365e228c247a803a9340860 (patch) | |
tree | e2ef6fa2f98942847d0b3591f8828816b87f990e | |
parent | 139920d199842014b1c89708c7bdd81117bed83e (diff) | |
download | poky-3656f81f3d46690ff365e228c247a803a9340860.tar.gz |
license.bbclass: fix missing of license files on ubuntu build host
The license_create_manifest function contains bashism, this will lead
to unexpected results on ubuntu build host, as sh is linked to dash on
ubuntu. Even if COPY_LIC_MANIFEST and COPY_LIC_DIRS are enabled, the
license files will still be missing on target.
This patch fixes the above problem.
[YOCTO #5549]
(From OE-Core master rev: 4df9daee5c732c0a20dabe8515577238a1508512)
(From OE-Core rev: 159e53f9402f1d1ceed8c6511c5874e199dea6e1)
Signed-off-by: Chen Qi <Qi.Chen@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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/license.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 6abdae4e84..b00ebb12e2 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -72,9 +72,9 @@ license_create_manifest() { | |||
72 | # Really don't need to copy the generics as they're | 72 | # Really don't need to copy the generics as they're |
73 | # represented in the manifest and in the actual pkg licenses | 73 | # represented in the manifest and in the actual pkg licenses |
74 | # Doing so would make your image quite a bit larger | 74 | # Doing so would make your image quite a bit larger |
75 | if [[ "${lic}" != "generic_"* ]]; then | 75 | if [ "${lic#generic_}" = "${lic}" ]; then |
76 | cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic} | 76 | cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic} |
77 | elif [[ "${lic}" == "generic_"* ]]; then | 77 | else |
78 | if [ ! -f ${IMAGE_ROOTFS}/usr/share/common-licenses/${lic} ]; then | 78 | if [ ! -f ${IMAGE_ROOTFS}/usr/share/common-licenses/${lic} ]; then |
79 | cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/ | 79 | cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/ |
80 | fi | 80 | fi |