Improvements:
- addition of supervisor (in devel mode)
- handling of mimetype
- integration of systemd watchdog
- refactor of code handling sessions
- hooking of sessions
- started: isolation of systemd event loop
- started: test of the code
Fixes:
- exclude directories starting with dot (.) from search
to avoid issues with debugging libraries
- memory leaks
- session leaks
- segmentation fault on disconnections
- robustness against time adjust
Bug-AGL: SPEC-1293
Bug-AGL: SPEC-1296
Bug-AGL: SPEC-1303
Change-Id: Idb7908b8a4148a052c72aa662e1d453356d8e40d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-EXTRA_OECMAKE_append_agl-devel = " -DAGL_DEVEL=ON -DINCLUDE_MONITORING=ON"
+EXTRA_OECMAKE_append_class-target = "\
+ -DUNITDIR_SYSTEM=${systemd_system_unitdir} \
+"
+
+EXTRA_OECMAKE_append_agl-devel = " \
+ -DAGL_DEVEL=ON \
+ -DINCLUDE_MONITORING=ON \
+ -DINCLUDE_SUPERVISOR=ON -DAFS_SURPERVISION_SOCKET=/run/platform/supervisor \
+"
pkg_postinst_${PN}() {
mkdir -p "$D${libdir}/afb"
}
pkg_postinst_${PN}() {
mkdir -p "$D${libdir}/afb"
}
+do_install_append_agl-devel_class-target() {
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
+ install -d -m 0755 ${D}${systemd_system_unitdir}/multi-user.target.wants
+ ln -s ../afs-supervisor.service ${D}${systemd_system_unitdir}/multi-user.target.wants/afs-supervisor.service
+ fi
+}
+
#############################################
# setup package
#############################################
#############################################
# setup package
#############################################
FILES_${PN} += "${datadir}"
FILES_${PN} += "${datadir}"
-FILES_${PN}_append_agl-devel = " ${libdir}/afb/monitoring"
+FILES_${PN}_append_agl-devel = " ${libdir}/afb/monitoring ${systemd_system_unitdir}"
ALLOW_EMPTY_${PN}-meta = "1"
ALLOW_EMPTY_${PN}-meta = "1"
SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/app-framework-binder;protocol=https;branch=${AGL_BRANCH}"
SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/app-framework-binder;protocol=https;branch=${AGL_BRANCH}"
-SRCREV = "9c1c9a1ba46eb9ddada4167ce9d20143ee3c9636"
+SRCREV = "bd10bc4405f3777fe495cb9f62818d67ab584854"
PV = "${AGL_BRANCH}+git${SRCPV}"
S = "${WORKDIR}/git"
PV = "${AGL_BRANCH}+git${SRCPV}"
S = "${WORKDIR}/git"