meta-app-framework: fix unpackaged files in nativesdk-af-main
authorStephane Desneux <stephane.desneux@iot.bzh>
Thu, 10 Nov 2016 11:46:59 +0000 (12:46 +0100)
committerStephane Desneux <stephane.desneux@iot.bzh>
Mon, 27 Mar 2017 13:33:39 +0000 (15:33 +0200)
Recent changes in af-main now generate .pc (pkgconfig) files. These files
shouldn't be packaged for nativesdk-af-main: they are just removed at the
end of the install task to avoid the 'unpackaged files' error.

Change-Id: I61364c430c0272e8e8a398e1e5640c856c668c1b
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-app-framework/recipes-core/af-main/nativesdk-af-main_1.0.bb

index 426e999..0169e6b 100644 (file)
@@ -19,6 +19,11 @@ EXTRA_OECMAKE = "\
        -Dafm_datadir=${afm_datadir} \
 "
 
+do_install_append() {
+    # remove unused .pc file we don't want to package
+       rm -rf ${D}/${libdir}
+}
+
 PACKAGES = "${PN}-tools ${PN}-tools-dbg"
 FILES_${PN}-tools = "${bindir}/wgtpkg-* ${afm_confdir}/*"
 FILES_${PN}-tools-dbg = "${bindir}/.debug/wgtpkg-*"