aboutsummaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-04-12 18:33:08 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-04-30 20:51:29 +0000
commit4942821aa93f43f2cfb55615200a47b9d12aca28 (patch)
tree4beea6a93b1a4a44f876c29be95519dacadd9ab8 /meta-app-framework/recipes-core
parent2ca4db6cf14a709d25f79b2e6308743a115e5aa5 (diff)
af-binder: New packaging
Improve how the binder is packaged. Bug-AGL: SPEC-2165 The issue was that the debug symbols were not at the expected place. It came from the way bitbake packages debug meterials: the first package with -dbg extension receive all the debug items. Change-Id: I2f5470ded58bc782c9a9804373a5eb76b331f5ae Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'meta-app-framework/recipes-core')
-rw-r--r--meta-app-framework/recipes-core/af-binder/af-binder_git.bb81
1 files changed, 53 insertions, 28 deletions
diff --git a/meta-app-framework/recipes-core/af-binder/af-binder_git.bb b/meta-app-framework/recipes-core/af-binder/af-binder_git.bb
index 91f26b894..f5309f0c2 100644
--- a/meta-app-framework/recipes-core/af-binder/af-binder_git.bb
+++ b/meta-app-framework/recipes-core/af-binder/af-binder_git.bb
@@ -26,53 +26,45 @@ do_install_append_agl-devel_class-target() {
}
#############################################
-# setup package
+# main package
#############################################
-PACKAGES =+ "${PN}-tools ${PN}-devtools ${PN}-meta"
-
-FILES_${PN} += "${datadir}"
FILES_${PN}_append_agl-devel = " ${libdir}/afb/monitoring ${systemd_system_unitdir}"
-ALLOW_EMPTY_${PN}-meta = "1"
-
-FILES_${PN}-tools = "\
- ${bindir}/afb-client-demo \
-"
-
-FILES_${PN}-devtools = "\
- ${bindir}/afb-exprefs \
- ${bindir}/afb-json2c \
- ${bindir}/afb-genskel \
-"
-
RDEPENDS_${PN}-dev += "libafbwsc-dev"
#############################################
-# setup sample binding packages
+# intrinsic binding packages
#############################################
+PACKAGES =+ "${PN}-intrinsic-bindings"
+ALLOW_EMPTY_${PN}-intrinsic-bindings = "1"
+
PACKAGES_DYNAMIC = "${PN}-binding-*"
python populate_packages_prepend () {
afb_libdir = d.expand('${libdir}/afb')
postinst = d.getVar('binding_postinst', True)
pkgs = []
- pkgs_dbg = []
pkgs += do_split_packages(d, afb_libdir, '(.*)-api\.so$', d.expand('${PN}-binding-%s'), 'AFB binding for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
pkgs += do_split_packages(d, afb_libdir, '(.*(?!-api))\.so$', d.expand('${PN}-binding-%s'), 'AFB binding for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
- pkgs_dbg += do_split_packages(d, oe.path.join(afb_libdir, ".debug"), '(.*)-api\.so$', d.expand('${PN}-binding-%s-dbg'), 'AFB binding for %s, debug info', postinst=postinst, extra_depends=d.expand('${PN}'))
- pkgs_dbg += do_split_packages(d, oe.path.join(afb_libdir, ".debug"), '(.*(?!-api))\.so$', d.expand('${PN}-binding-%s-dbg'), 'AFB binding for %s, debug info', postinst=postinst, extra_depends=d.expand('${PN}'))
-
- metapkg = d.getVar('PN', True) + '-meta'
- d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
+ d.setVar('RDEPENDS_' + d.getVar('PN', True) + '-intrinsic-bindings', ' '.join(pkgs))
}
#############################################
+# tool package
+#############################################
+PACKAGES =+ "${PN}-tools"
+
+FILES_${PN}-tools = "\
+ ${bindir}/afb-client-demo \
+"
+
+#############################################
# setup libafbwsc package
#############################################
-PACKAGES =+ "libafbwsc libafbwsc-dev libafbwsc-dbg"
+PACKAGES =+ "libafbwsc libafbwsc-dev"
FILES_libafbwsc = "\
${libdir}/libafbwsc.so.* \
@@ -83,10 +75,43 @@ FILES_libafbwsc-dev = "\
${libdir}/libafbwsc.so \
${libdir}/pkgconfig/libafbwsc.pc \
"
-FILES_libafbwsc-dbg = "\
- ${libdir}/.debug/libafbwsc.so.* \
- ${bindir}/.debug/afb-client-demo \
+
+#############################################
+# devtool package
+#############################################
+PACKAGES =+ "${PN}-devtools"
+
+FILES_${PN}-devtools = "\
+ ${bindir}/afb-exprefs \
+ ${bindir}/afb-json2c \
+ ${bindir}/afb-genskel \
+"
+
+#############################################
+# supervisor package
+#############################################
+PACKAGES_append_agl-devel = " ${PN}-supervisor "
+
+FILES_${PN}-supervisor_agl-devel = "\
+ ${bindir}/afs-supervisor \
+ ${systemd_system_unitdir} \
"
-RDEPENDS_libafbwsc-dbg += "${PN}-dbg libafbwsc-dev"
+#############################################
+# setup sample packages
+#############################################
+PACKAGES =+ "${PN}-samples"
+
+FILES_${PN}-samples = "\
+ ${datadir}/af-binder \
+"
+
+#############################################
+# meta package
+#############################################
+PACKAGES =+ "${PN}-meta"
+ALLOW_EMPTY_${PN}-meta = "1"
+
+RDEPENDS_${PN}-meta += "${PN} ${PN}-tools libafbwsc ${PN}-intrinsic-bindings"
+RDEPENDS_${PN}-meta_append_agl-devel = " ${PN}-supervisor "