aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2019-09-25 17:35:37 +0800
committerKhem Raj <raj.khem@gmail.com>2019-09-25 09:48:19 -0700
commite1395afee340fe7f850ea92e4a88c50ac3a262b5 (patch)
tree73d6d1d0aefddee0bf806783e20b65a726341ed7
parent69f234b65ea3cf80967360ec65c96881326bdc67 (diff)
downloadmeta-openembedded-contrib-e1395afee340fe7f850ea92e4a88c50ac3a262b5.tar.gz
meta-openembedded-contrib-e1395afee340fe7f850ea92e4a88c50ac3a262b5.tar.bz2
meta-openembedded-contrib-e1395afee340fe7f850ea92e4a88c50ac3a262b5.zip
keyutils: Fix installed-vs-shipped for nativesdk
Fixed: $ bitbake nativesdk-keyutils ERROR: nativesdk-keyutils-1.6-r0 do_package: QA Issue: nativesdk-keyutils: Files/directories were installed but not shipped in any package: /usr /etc /usr/share /usr/share/man /usr/share/keyutils [snip] /etc/request-key.conf /etc/request-key.d Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-security/keyutils/keyutils_1.6.bb12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-oe/recipes-security/keyutils/keyutils_1.6.bb b/meta-oe/recipes-security/keyutils/keyutils_1.6.bb
index dca86f3c62..572143a5ae 100644
--- a/meta-oe/recipes-security/keyutils/keyutils_1.6.bb
+++ b/meta-oe/recipes-security/keyutils/keyutils_1.6.bb
@@ -40,6 +40,18 @@ do_install () {
oe_runmake DESTDIR=${D} install
}
+do_install_append_class-nativesdk() {
+ install -d ${D}${datadir}
+ src_dir="${D}${target_datadir}"
+ mv $src_dir/* ${D}${datadir}
+ par_dir=`dirname $src_dir`
+ rmdir $src_dir $par_dir
+
+ install -d ${D}${sysconfdir}
+ mv ${D}/etc/* ${D}${sysconfdir}/
+ rmdir ${D}/etc
+}
+
do_install_ptest () {
cp -r ${S}/tests ${D}${PTEST_PATH}/
sed -i -e 's/OSDIST=Unknown/OSDIST=${DISTRO}/' ${D}${PTEST_PATH}/tests/prepare.inc.sh