summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core/af-main
AgeCommit message (Collapse)AuthorFilesLines
2020-07-24meta-app-framework: update app-framework-main SRCREVScott Murray1-1/+1
Pick up changes: af8db35 Fix native compilation 3a2efc3 Merge "Add wait for start jobs" 55e6be4 Add wait for start jobs 70d6c64 Fix labelling of files of widgets Bug-AGL: SPEC-3365, SPEC-3427, SPEC-3457, SPEC-3489 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I5be593e8e3e91f461dfa3db8063b21839ed6460d Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25051 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-06-24af-main: update SRCREVScott Murray1-1/+1
Update app-framework-main SRCREV in af-main recipe, picking up changes: ac6f7ed Add weston dependency for units with display permission Bug-AGL: SPEC-3411 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Iecb3cec7674e5c0a634925067cf66a27581536a3 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24788 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-05-30meta-app-framework: update af-main SRCREVScott Murray1-1/+1
Update app-framework-main SRCREV in af-main recipe to pick up: f8cee78 Fix uninstall of widgets without icons f8f2338 Improve use of systemd's states Bug-AGL: SPEC-3323, SPEC-3401 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I35f6fcb8677bd3d5d49e588d03f5868249532baa Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24584 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-05-13qtwayland_%.bbappend: Migrate the qt shell integration to the properMarius Vlad1-3/+0
place The proper place to choose the qtshell integration is with qtwayland so migrate it there. While at it, upgrade to xdg-shell stable instead of using the unstable v6. Bug-AGL: SPEC-3133 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I67b92cd744c4e34c9a603b9535823d9562d4bdf8
2020-05-07af-main & af-binder: Fix infinite loop and C++José Bollo1-1/+1
af-main: Fix an infinite loop when starting applications * e7ac328 afm-urun: Fix infinite loop on start status af-binder: Fix a missing header when compiling C++ * 33ddfb5 Fix includes of C++ header Bug-AGL: SPEC-3323 Bug-AGL: SPEC-3358 Change-Id: I06a05427b33791a242038d278e452fd73806d2f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-04-14meta-app-framework: update af-main SRCREVScott Murray1-1/+1
Update app-framework-main SRCREV in af-main recipe to pick up: 6c44e65 Merge "Update weston dependency in afm-system-setup.service" f86501b Update weston dependency in afm-system-setup.service Bug-AGL: SPEC-3309 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I62317a543ceba7bced2f40e512bfdaca01202b5f
2020-04-10af-main: Sign widgets when agl-develJosé Bollo3-3/+10
This change introduce signature of widgets with sample keys and certificates of app-framework-main when the feature agl-devel is selected. It also shows how to sign widgets in yocto build environment, using WGTPKG_AUTOSIGN_X environment variables. v2: Use an own agl feature for the signing and not agl-devel This allows us to switch it on selectively. Bug-AGL: SPEC-2840 Change-Id: I8f66c25a2ae62ad2365c7cdb995049c00b7c780a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-03-19af-main: remove widget versions and fixes for zeusJosé Bollo1-1/+1
This removes the distinction between versions of widgets. This change can fix issue in starting of applications due to systemd changes (SPEC-3178) Includes changes: * dee2725 Update .gitreview file * 7f53b81 Merge "system setup: Fix settings on /run/user" * a855d14 Remove distinction of widget's version * 4f88827 Fix homescreen start on yocto/Zeus Bug-AGL: SPEC-3178 Bug-AGL: SPEC-2538 Change-Id: Ibce8316dd9513ad2f5d6d4f1fbea3119d78d0417 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-02-14af-main: Fix setting of /run/userJosé Bollo1-1/+1
Includes: * ab26673 system setup: Fix settings on /run/user Bug-AGL: SPEC-3175 Change-Id: I41f7d3665ec161b7ae6bdbc19ad4ac3616b375c1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-01-28af-main: Improve Smack setupJosé Bollo1-1/+1
Improve setup for solving access issues While developping the binding afb-test, the export of the binding afm-test, using "provided-binding" feature revealed to be broken because of security setup. Bug-AGL: SPEC-2795 Change-Id: I0af4a46aaa191cad167a332ebb2d14ebbfe04c6a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-01-28af-main: Use xdg-shell-v6 for agl-compositorMarius Vlad1-1/+3
As we're using xdg-shell-v6 instead of ivi-shell for agl-compositor and applications, make the transition much easier (that is, having a fully bootable workable image) by making it default when the DISTRO_FEATURES specify it. Bug-AGL: SPEC-3128 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I1bf1546d3cfab14b1b4b76199ba60207c984d69f
2019-12-20af-main: Fix allocation of idsJose Bollo1-1/+1
The allocation of ids and ports was broken because ids was not well scanned since commit 6008a3e Bug-AGL: SPEC-3068 Change-Id: Ia92a9c05e99ba1b62856d1610d2a91c9693c35e2 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-12-19af-main: OAuth client credentials and localuser namesJosé Bollo3-36/+2
This includes: - the basic OAuth client credential server - the token logic for WAM apps - the use of localuser names WAM apps Bug-AGL: SPEC-2968 Bug-AGL: SPEC-3032 Bug-AGL: SPEC-3033 Bug-AGL: SPEC-3014 Change-Id: I37588d4a4f9b74bb0ab0da70c7fbae1f8979f25e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-12-16af-main: Ensure home and workdir to platform's appJose Bollo1-1/+1
The widget requesting the permission to run at platform scope: urn:AGL:permission::partner:scope-platform should be able to record data and state. This change provides a default place to achieve it. Bug-AGL: SPEC-2998 Change-Id: I1278375591716d18ce1346acc0f63fb073e4556a Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-12-06af-main & af-binder: Partial shift to token logicJose Bollo1-1/+1
This commit includes changes related to integration of token security logic and use of nss-localuser. Changes from af-main are: * 581f99c wgtpkg-install: Add default permissions * 50ab763 Remove tokens * 6008a3e Enforce numeric application IDs * 653562e Introduce localuser interface for applications Changes from af-binder are: * 5026e71 docs(func-service.md): typo * 2243df1 afb-api-dbus: Fix broken broadcast in dbus apis * ff5446e afb-proto-ws: Fix crash on event to disconnected * 1b240e6 afb-hreq: Handle HTTP header Authorization * 29ae81f Introduce object for tokens * 6f59158 coverage: Fix regression * 9a623c3 monitoring: Fix display on connection error * e6908a2 afb-hreq: Handle access_token query parameter * 0d3dc97 Remove refreshing token * 7c67e96 Remove returning token * e08d57c Don't return the uuid * b4da3b7 Move tokens from sessions to requests * e80c1a7 Use afb_token in contexts * d735ff8 afb-session: Expose a local id for sessions * 5ac7bb0 afb-session: remove initial token * 0fd887b u16id: Add maps for identifiers id of 16 bits * eaf5670 afb-evt: Use 16 bits for ids * b55f3cd afb-stub-ws: Enforce asynchronous describe * 7386e1c afb-proto-ws: Change the protocol WSAPI * 74a7ebb afb-error-text: Introduce standard error text * af003cd afb-auth: Increase and improve use of afb-auth * 98b214e afb-hswitch: Update websocket policy * b70caad afb-context: Move credentials to context * d8aff62 afb-context & afb-token: rework token validation * 36094f9 afb-supervision: Improve messages * 354dfe5 afb-perm: separate access to permission db * 93483c5 AFB.js: Enforce single code * c79b6ba Relax constraint on aliases * 7a28ebb afb-socket: Add ability to set a default scheme * 82a9d79 main-afb-daemon: manage listening interfaces Bug-AGL: SPEC-2968 Change-Id: If4751144595c38a69608a962c92b54ae1a976ac8 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-11af-main: Starting of HTML, API discovery, fixJosé Bollo1-1/+1
This upgrade includes the 2 fixes and one evolution below: * conf/system: fix shebang not absolute * Add WAIT_FOR_HOST_SERVICE envvar to unit files for webapps * Add discovery of API Bug-AGL: SPEC-2793 Bug-AGL: SPEC-2863 Bug-AGL: SPEC-2871 Change-Id: I0b9fb30b580be04d2f22c0daf3b21f4c4c0a2087 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-06-19af-main: Version bump for running as agl-driverJosé Bollo1-1/+1
Integrates the following changes: * 3284913 Introduce dbus config of services * 77bd420 Introduce platform services * 533d5a1 Fix synchronisation of user setup Bug-AGL: SPEC-1015 Bug-AGL: SPEC-1016 Change-Id: I3fd000a9fbdd73317b565d69ba2d8fbd49dc4e7f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-06-19af-main: Remove afm-user-daemon and bump versionJosé Bollo2-7/+1
The process afm-user-daemon is no more used within AGL. So it is better to remove its installation. Integrates the following changes: * d0d4dcd Allow setting of libexec location * 2db5d23 Fix outdated application path. * cc93752 Refactor of system and user setup * 316b19f Remove unused definitions * 401188a Use definition of afm_prefix * efabde7 afm-unit conf: Remove useless tests * 405ba31 afm-user-session: moves in libexec directory * 07a9590 afm-unit: Simplify the Makefile * 44b1bdc afm-unit.conf: cleanup of generation * 2f3486b gitignore: Add ignore of EXTERNALSRC's artifacts * 5b801a3 afm-unit.conf: Refactor its generation * ce5c20d afm-user-daemon: Remove it by default Bug-AGL: SPEC-2006 Bug-AGL: SPEC-2360 Bug-AGL: SPEC-2367 Bug-AGL: SPEC-2436 Bug-AGL: SPEC-2437 Change-Id: Ib77ecc2e9aabb8a3c5cef7266c3f5b19205939b9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-06-19af-main: Add dependency to m4 and sedJosé Bollo1-1/+1
The file /etc/afm-unit.conf was genrated from temporary files manually generated. This was inefficient and error prone. This was reworked to enable a straight forward process that directly calls m4 and sed in the CMAKE files. Current commit adapt the recipe to that new process by adding the new build dependencies. Bug-AGL: SPEC-2436 Change-Id: I662f7620beccc53b6abe58c14c82ac94ae818491 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-06-19af-main: Drop capabilities of applicationsJosé Bollo2-1/+2
This removes all capabilities of applications installed and launched by the framework. Bug-AGL: SPEC-2006 Includes the following changes: * 20bf077 afm-unit.conf: Add widget specific environment * a44e304 afm-util: Remove legacy commands stop/resume * f7a3a6e API Overview: Changes to the file that introduces APIs. * 26dd0f8 API Reference Overview: Removed old "kristi" file, updated book * b4ca569 afm-unit: Restore removal of capabilities Change-Id: I8c42d0b312aead668da03a987d0366b4ced73c70 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-06-19af-main: Improve readabilityJosé Bollo1-2/+2
While tuning the recipe, it appears that having long options helps to understand the recipe. Bug-AGL: SPEC-2437 Bug-AGL: SPEC-2006 Change-Id: Ie3d1b288db0d2db3159f1b3453a02db46e863c4f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-04-04Upgrade to thudScott Murray1-2/+2
Changes include: - Add LAYERSERIES_COMPAT definitions to layer.conf files - Remove now unnecessary SECURITY_*FLAGS over-rides from distro configuration - Set intel-corei7-64 preferred kernel version to 4.19 to match latest linux-intel kernel available in meta-intel - Update qemuarm preferred kernel version to 4.18 to match latest linux-yocto - Update firmware package and devicetree file names for raspberrypi3 - Remove linux-firmware bbappend specific to raspberrypi, it seems no longer required and breaks the cross SDK build - Update linux-intel bbappend to 4.19, remove now unnecessary patch - Remove now unnecessary lttng-modules backport - Update linux-raspberrypi bbappend to 4.14 kernel - Added kernel configuration fragment for raspberrypi to disable Kprobes. This is required until linux-raspberrypi is updated to greater than 4.14.104 to avoid a build failure in lttng-modules related to a check for known breakage in the kernel CONFIG_OPTPROBES code. - Replace obsolete base_conditional usage with oe.utils.conditional - Add gstreamer1.0-plugins-bad bbappend for raspberrypi3 to disable faad PACKAGECONFIG to avoid commercial license issues - Remove unused and unbuildable Vayu gstreamer recipes - Update linux-ti-staging bbappend for new BSP kernel - Regen dcan2_pinmux_enable.patch for linux-ti-staging to remove fuzz warning, and remove upstreamed fix_dcan_addresses.patch - Remove ipumm-fw from meta-agl-bsp/meta-ti, as newer version is available in the upstream BSP - Update meta-agl-bsp/meta-ti weston patch to apply against 5.0.0 - Update meta-agl-bsp/meta-ti wayland-ivi-extension patch to apply against 2.2.0 - Add ti-sgx-ddk-km patch to add AGL toolchain configuration file - Remove now unnecessary fdtoverlay recipe - Update core.cfg and ivishell.cfg in weston-ini-conf recipe to handle move of ivi-controller.so configuration in Weston 5.0.0 - Update connman-ncurses patch to remove fuzz warning - Add installation of systemd over-ride file for run-postinsts.service in run-postinsts bbappend to workaround race condition between ldconfig.service and the /sbin/ldconfig invocations in the post-install scripts run by run-postinsts.service. The observed failure was cynara's post-install script failing and its database not being created. - Remove now unnecessary valgrind backport - Add patches to fix most driver compilation against newer kernels - Update libmicrohttpd bbappend - Remove libssp-dev from agl-image-graphical-qt5-crosssdk and agl-demo-platform-html5-crosssdk, upstream have removed it from non-mingw32 platform SDKs - Update wayland-ivi-extension recipe to build 2.2.0, and update local patches - Update weston patches for 5.0.0. Patches: 0016-ivi-shell_add_screen_remove_layer_api.patch 0017-ivi-shell-register-ivi_layout_interface.patch have been removed as they have been applied upstream and are no longer necessary. Patches: 0018-compositor-add-output-type-to-weston_output.patch 0019-compositor-drm-introduce-drm_get_dmafd_from_view.patch (both related to Waltham) have been disabled for now as they need significant rework. - Remove weston-conf RRECOMMENDS in weston bbappend to avoid conflict with weston-ini-conf - Add OECMAKE_GENERATOR = "Unix Makefiles" to aglwgt.bbclass to work around CMake+ninja issue in cmake-apps-module - Update dbus cynara patches for 1.12.10 - Add do_install_append in cynara recipe to remove /var/cynara from cynara package so the directory creation and labelling in the post-install scriptlet will function as intended - Remove now unnecessary e2fsprogs backport - Remove now unnecessary libcap-ng backport - Update pulseaudio patches to remove fuzz warnings - Update neardal patch to remove fuzz warning - Update freetype patch to remove fuzz warning - Rename opencv bbappend to 3.% to handle 3.x backports in upstream - Updated qtwayland patch to remove fuzz warning Changes from Stephane Desneux <stephane.desneux@iot.bzh>: - Remove wayland-ivi-extension PREFERRED_VERSION - Remove now unnecessary nativesdk-cmake patch - Remove now unnecessary ptest-runner patches - Remove now unnecessary harfbuzz patches - Disable waltham-transmitter as it does not build against weston 5.0.0 - Update af-main, cynara, and security-manager to use pkg_postinst_ontarget - Bump connman-ncurses revision to avoid deprecated ncurses functions - Update libva package usage with new intel-vaapi-driver name - Add patches to security-manager to fix compilation with gcc8 - Updated systemd bbappend Changes from Jan-Simon Möller <jsmoeller@linuxfoundation.org>: - Remove meta-agl-bsp/ROCKO.FIXMEs - Remove linux-yocto_4.12.bbappend and now unnecessary associated patch - Remove now unneeded kern-tools-native patch - Bump gstreamer PREFERRED_VERSIONs to 1.14.x - Remove latencytop from packagegroup-agl-core-devel, it has been dropped by upstream - Remove now unnecessary rpm patches - Update pulseaudio bbappend to 12.2 - Update opencv bbappend to 3.4 - Update freetype bbappend to 2.9.1 - Update dbus bbappend to 1.12.10 - Update weston bbappend to 5.0.0 - Update cynara patches to remove fuzz warnings - Add patch to cynara to fix compilation with gcc8 - Add xmlsec1 bbappend to clear EXTRA_OECONF to fix compilation on sumo or newer Changes from Ronan Le Martet <ronan.lemartet@iot.bzh>: - Update meta-rcar-gen3-adas layer gstreamer1.0-plugin-vspfilter bbappend to version 1.0.1 Known issues (marked with FIXME): - CMake+ninja issue in cmake-apps-module has been worked around with OECMAKE_GENERATOR - waltham-transmitter and the patches to weston related to it have been disabled - Currently unclear if patch to libcap-native is actually required or not Bug-AGL: SPEC-1837 Change-Id: I7b8b9ef667aec2d229952eace6663dfc761654d0 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2019-03-25af-main: Add ability to manage all widgetJosé Bollo1-1/+1
For system uses -like automatic testing-, it is needed to include tha ability to list ALL installed widgets and ALL running instance of installed widgets. This change adds the option -a or --all to the commands 'list' and 'runners' for the purpose of listing any installed widgets, even those requiring to be hidden. Example: afm-util ps -a Bug-AGL: SPEC-2272 Bug-AGL: SPEC-1850 Change-Id: I7a6896e79fa624dee7ee1f18d1e75c14f61bed0c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-18af-main: Update version and datesJosé Bollo1-1/+1
Includes: * bc39aec Set version to 8.0.0 * 2a319cf Update date in copyrights Change-Id: I1ff52c2eade4d1089098756b9311954444f64a81 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-06af-main: bump to latest revisionStephane Desneux1-1/+1
Includes changes: * 46e35ce Revert "afm-unit: Restore removal of capabilities" * 765d080 wgtpkg-unit: Fix Segmentation fault * d0cb2a7 wgtpkg-pack: Ensure packing relative files * 48e894b wgtpkg-zip: Ensure zip will not complain * 9f24684 afm-user-setup service: disable start rate limit * da0ec3a Revert "afm-unit: add autoapi in required-api feature" * adc590a Fixed book.yml file * 2b6e13b afm-unit: add autoapi in required-api feature * f2a2f13 afm-unit: Restore removal of capabilities Bug-AGL: SPEC-1988, SPEC-2006, SPEC-2144 Change-Id: I5d425f95d31b46991c952d8be976f8c843e7714d Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2019-01-02af-main: Upgrade app-framework-mainJose Bollo1-1/+1
This allows to install more than one target in a same widget. Includes: * 0eb4c25 book doc: add book yaml file * a8ffd52 wrap-json: Upgrade to latest version * f8b0495 afm-unit: Fix http port multi allocation Bug-AGL: SPEC-2068 Change-Id: If018c063ab11724721c4b06861ee515a9be7641b Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-12-10af-main: UpgradeJose Bollo1-1/+1
This upgrade includes 3 commits: * 1b1399e Improve port allocation * 61b0cc7 Landing page for all APIs * 7ecf0c1 Fix: retrieve the 'appid' correctly Change-Id: Ib59b46faf1ed69431e46b7ed5ef3b85cb38f2876 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-11-22app-framework: Update versionsJosé Bollo1-1/+1
af-binder changes: * 153a7c9 AFB.js: Tiny improvement and space fix * eca8f3d afb-socket: Fix address reuse * 42099d3 afb-export: Fix error in event handling * 83c9e99 main-afb-daemon: Export variables to connect to binder af-main changes: * bceaf2c afm-system-daemon: Improve error message report * 44c70fd Treat correctly running/not running status * 94176d9 afm-unit: Export new variables Change-Id: Ifdb631d8155032f72b4497400fdbd935547c7782 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-11-02af-main: Bump versionJosé Bollo1-1/+1
This includes the following changes: * b2329b7 CMakeLists: Use AGLVERSION if set * 2a0ac96 wgtpkg-install: Force uninstall * 91baca1 doc: Changed doc to new format * f031387 afm-unit.conf: force symbolic link on update * 43bc2e5 docs: Improve documentating 'required-binding' * 9e1d25b Merge "docs: Improve documentating 'required-binding'" * 0e0ae55 afm-unit.conf: Restrict service for APIs * 24f0c20 Add the ability to access binding through tcp * 375f481 afm-unit.conf: Enforce starting after network * 19e745e Merge "afm-unit.conf: Restrict service for APIs" * 73f3570 Merge "afm-unit.conf: Enforce starting after network" * d40fc40 afm-urun: Force scan of systemd units * dc0836f Install afm-user-daemon with correct rights * 5f7901d afm-util: Fix report of error It fixes: Bug-AGL: SPEC-1863 Bug-AGL: SPEC-1846 Bug-AGL: SPEC-1836 Bug-AGL: SPEC-1650 Bug-AGL: SPEC-1800 Bug-AGL: SPEC-1230 Change-Id: Ifd1775448db4ebffa4bb656b5bcefaf891c4efa5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-09-14af-main & af-binder: Set version from AGLVERSIONJose Bollo3-0/+3
Change-Id: Ie1ff83f007d9d8d819829540d51e576f088c97eb Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-09-09af-binder & af-main: Update to version 5.99.FFRC6José Bollo1-1/+1
This includes the following binder changes (from newer to older): * 29f544b afb-apiset: fixed the error message upon api open. * 8647a34 afb-session: Use ad-hoc pseudo-random uuid * d3edd5f VERSION 5.99.FFRC6 * 72385ab main-afb-daemon: Export API after initialization * 408acbd app-framework-binder doc: Changed doc to fit new format. * a02a162 Allow choice to trap or not program faults * 5dd7df3 main-afb-daemon: Set AFB_ROOTDIR and AFB_WORKDIR in environment * 8706522 afb-hook-flags: Fix a compilation warning Bug-AGL: SPEC-1655 Bug-AGL: SPEC-1724 Bug-AGL: SPEC-1694 Change-Id: I3d7b191322e6fbea94ea7345979f3b80da988d8c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-08-24af-binder & af-main: Bump to version FF-rc4José Bollo1-1/+1
It include for the binder 3 important fixes: SPEC-1668, SPEC-1669 and SPEC-1681. Changes of app-framework-binder: * jobs: Abort when systemd's event loop lost * afb-stub-ws: Add reconnection of ws-clients on need * afb-stub-ws: Safe handling of deconnections * afb-stub-ws: Process error on call to remote * Send error replies on disconnection * afb-wsj1: Split 'wsj1_on_text' in 2 * afb-stub-ws: Clean up * afb-api-ws: Use afb-socket features * afb-socket: Improvement * afb-stub-ws: Improve naming * hello3: Add mutebug * Set version to 5.99.FFRC4 * Provide functions afb_service_call[_sync]_legacy Changes of app-framework-main: * Set version to 5.99.FFRC4 Bug-AGL: SPEC-1668 Bug-AGL: SPEC-1669 Bug-AGL: SPEC-1681 Change-Id: I99b129a1722f1d3182205bc07de449b6ed034002 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-08-20af-binder & af-main: Add external binding featureJose Bollo1-1/+1
This feature is needed for testing. Change-Id: I5c9cd33c57bfd6c939bb56d4ddb0c153ffc69dc7 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-08-01Remove porter reference from meta-aglRonan Le Martret1-4/+0
* Remove, from recipes, reference to porter, gen2, krogoth. * cleanup mardown from reference to porter. * cleanup markdown (markdownlint score 0). Change-Id: I70b9880fc52ef3c848da588d3a256fa8eee48606 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-07-25af-main: set relax handling for apps signatures even when agl-devel is not setStephane Desneux1-1/+21
Allow widgets to be unsigned even in non-development mode. This is a temporary workaround to let some time to setup the apps signing workflow. This workaround can be disabled for smoother transition to the world where all apps must be signed. For this, define AGL_FORBID_UNSIGNED_APPS="1" in local.conf. **IMPORTANT: THIS PATCH MUST BE REVERTED IN THE FUTURE AND ALL APPS MUST BE SIGNED** This patch alters the correct behaviour that was introduced here: https://gerrit.automotivelinux.org/gerrit/#/c/15527/1/meta-app-framework/recipes-core/af-main/af-main_1.0.bb Bug-AGL: SPEC-1614 Change-Id: I6bf50b70905a00445598f42ef5f6d9326c6d4cfe Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-07-20af-main: Bug fixesJosé Bollo2-2/+2
- Fix issue in handling signature of widgets. - Fix access to system API afm-main. This change include the commits: * 8c7132a Creates systemd service for APIs * d8d819b wgtpkg-digsig: Add flag to accept/refuse a WGT without signature * f97f8d2 wgtpkg-digsig: Fix digital signature check Bug-AGL: SPEC-1592 Bug-AGL: SPEC-1590 Change-Id: I0ecc19466180799e23b7863eb85755d9e4c2894f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-07-10Application Framework: Fix bugsJosé Bollo1-1/+1
Bump to latest bug fixes: * Fix crash when no icon is set in the config.xml * Fix tiny memory leaks in the binder af-main: * 259d262 wgtpkg-install: Fix SEGV when no icon in config file af-binder: * c98c0d9 coverage: Improve testing * 42b655f hello2: Add a binding v2 example * 298f697 hello3: Fix a bug * 10ac210 afb-api-v3: Fix a bug introduced by 8ca7b69 * 7491c74 afb-cred: Fix memory leak * 44b2477 coverage: Add valgrind diagnostics Bug-AGL: SPEC-1573 Change-Id: I8843b406502b66ff78c4dabb3fca72d41323bb45 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-22af-binder: Upgrade to binding v3José Bollo1-1/+1
And also upgrade af-main to use new feature. This new version brings the the following features: * Dynamic api * Event handler * Automatic bounding to unknown api * Improvement of subcalls * Improvement of supervision Bindings v2 are still supported but are deprecated and will be removed in some future. CAUTION: Bindings v1 and vdyn are removed. Bug-AGL: SPEC-1511 Bug-AGL: SPEC-1020 Bug-AGL: SPEC-1485 Bug-AGL: SPEC-1400 Bug-AGL: SPEC-1126 Change-Id: I0ecc513601cfc7f571f2a3ff90095496b32491d3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-04-06af-main: Refactor of user session managementJosé Bollo2-3/+5
This changes how user session are started and handled within systemd. This evolution add a tiny program to start and handle user sessions: afm-user-session. This is the first step of a serie because, actually, due to platform restrictions, the common users if started this way will not be able to run correctly (issues with wayland/weston and with handling of CGROUP2 with Smack LSM) Also fixes memory leaks and improves build process. Bug-AGL: SPEC-545 Bug-AGL: SPEC-1016 Change-Id: Icaf7c575633fc663a3df0ffee683b22cc087bb16 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-13Remove smack recipeJosé Bollo1-3/+3
smack user space library is provided by meta-security Change-Id: Ifb5e88e5f5a1aab3e695ab91a56d8c55c33fd004 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-13Rename smack OVERRIDE to with-lsm-smackJosé Bollo1-4/+4
Using the OVERRIDE "smack" came with the use of the layer meta-intel-iot-security. When switching to meta-security, it conflicts with the package name 'smack' that provide the smack user library. Yocto was reporting the following error: ERROR: .../meta-security/recipes-security/smack/smack_1.3.0.bb: QA Issue: Recipe .../meta-security/recipes-security/smack/smack_1.3.0.bb has PN of "smack" which is in OVERRIDES, this can result in unexpected behaviour. [pn-overrides] Change-Id: Id71b283bf1ce5682bd94bf96595eb32506acb1d5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-13af-main: Fix a meaningless linkJosé Bollo1-1/+0
The removed line remained from some previous abandonned work. Change-Id: Ic4a56ed5aeae43a516f78711eb1aa684cbbe97e1 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12429 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-30af-main: Handle users from the system scopeJosé Bollo4-91/+30
To simplify the management of users while keeping systemd as launcher, this evolution anchors the framework in the system level. This also introduce a new version of afm-system-daemon that is 100% a binding of the binder and that consequently offers natively a websocket API. Change-Id: I1bbb48d0c01d0f6fd3c8dfca90febbe8147cf204 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12139 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-22afm-main: use AGL_BRANCH for naming packageJosé Bollo1-1/+1
Change-Id: I7ac64017cf21a0a29d6fa60ab12ab260589a1d50 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12089 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-05Allow SRCREV handling through poky-agl.confJan-Simon Möller1-1/+1
This change simplifies the SRCREV handling by using - AGL_APP_REVISION and AGL_DEFAULT_REVISION in recipes. Also the AGL_BRANCH can be used to switch to release branches. Bug-AGL: SPEC-864 Change-Id: I9384c85d4f7434416d87359f88c482887ac2ead8 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11685 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
2017-09-15App-FW: Update namings and bug fixesJosé Bollo1-1/+1
af-main: ======== - set the version to 4.1 - make names of binder revelant for ps and journal: afbd-APPID - reduce the default verbosity to WARNING - when AGL_DEVEL - set default token to HELLO - include --monitoring - set the verbosity to NOTICE - fix subpath of libraries to 'lib' always - fix --no-httpd option af-binder: ========== - set the version to 4.1 - verbosity distinguishes WARNING and NOTICE - enforce use of AFB_ prefixed verbose macros - report verbose message in monitoring - check that API of --ws-server exists - atomically dump the stack on signals - fix starve bug (MAJOR) - fix @t bug on random token (CRITICAL: SPEC-854) - fix subcall bugs (MAJOR) - fix possible SIGSEGV in dlopen (MAJOR: SPEC-662) - fix memory leak when upgrading protocol Bug-AGL: SPEC-854 Bug-AGL: SPEC-662 Change-Id: Ifb7aee5e72c5f9d738c11b9b24e7e07b128e80fc Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10763 Reviewed-by: José Bollo <jobol@nonadev.net> Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-09-15Fix post install script dependencyRonan Le Martret1-1/+3
* Since yocto pyro we need to declare PACKAGE_WRITE_DEPS, dependency for post install script http://www.yoctoproject.org/docs/2.3/mega-manual/mega-manual.html#var-PACKAGE_WRITE_DEPS * we alsa need to explicit exit 1 if post script failed Bug-AGL: SPEC-646 Bug-AGL: SPEC-825 Change-Id: Ic15f8af884895fecacceb9886de5bebe591a2be0 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10883 Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh> Reviewed-by: Thomas Rini <trini@konsulko.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-09-08Upgrade to pyroChanghyeok Bae1-1/+1
u-boot: v2017.01 dlt-daemon: Remove gzipnative inheritance - gzipnative.bbclass is removed in pyro branch. - See ab0f46400c113c0d893be872727a67739d5e794d in poky. gpm: Remove bbappend file - upstream(meta-openembedded) is using git(v1.99.7) and this is not required anymore. gnutls: Remove bbappend file - The patch is already applied in upstream. agl-image-minimal: Remove ROOTFS_PKGMANAGE_BOOTSTRAP - ROOTFS_PKGMANAGE_BOOTSTRAP is removed in upstream. - Please see 529244ee212fe14019e35a5f163fab705ddbf141 in poky. freetype: Change hash value for v2.7.1 binary shadow: Remove shadow_%.bbappend - It's already applied upstream poky. Remove nativesdk-packagegroup-sdk-host.bbappend - It's already applied in upstream poky. faac: Remove bbappend file - It's already applied meta-openembedded upstream. pulseaudio: Change bbappend naming - Upstream yocto provides pulseaudio v10.0. weston: re-create patch to apply new version (v2.0.0) - Remove 0001-compositor-drm.c-Launch-without-input-devices.patch because it's already applied in new version. mesa: Remove 12.0.3 recipe and fix build error for qemux86-64 - Yocto upstream supports 17.0.2 and v12.0.3 is not required anymore in raspberrypi - Error: | configure: error: --enable-gallium-llvm selected but llvm-config is not found wayland-ivi-extension: Upgrade to latest master version - Due to weston upgrade, wayland-ivi-extension should be upgraded. packagegroup-ivi-common-core-multimedia: Remove alsa-lib - alsa-lib has empty package and it's not required anymore. Add agl-driver and agl-passenger in group and passwd - Parsing Error: agl-users: groupname agl-passenger does not have a static ID defined. poky-agl.conf: Change gstreamer default version to v1.10.x - Yocto upstream moves gstreamer to v1.10.4. af-main: Fix build error - Error: file /usr/local conflicts between attempted installs of af-main-1.0-r0.corei7_64 and base-files-3.0.14-r89.qemux86_64 intel-corei7-64: Change gstreamer-vaapi-1.0 name - gstreamer-vaapi-1.0 is moved to oe-core and its name is changed to gstreamer1.0-vaapi. linux-raspberrypi: Drop 4.4 bbappend - The upstream meta-raspberrypi doesn't support v4.4 anymore. - CVE patches are not required anymore. glibc: Remove bbappend - The bug-20116 is already applied in 2.25 cynara,security-manager: Fix build error - cynara: Replace bb.data to d - security-manager: Temporarily use 'no' in APPLY variable u-boot-ota: Add SRC_URI - In pyro, SRC_URI and S is moved from .inc to .bb linux-yocto: Remove 4.8 and 4.4 bbappend - Yocto 2.3 (Pyro) doesn't support v4.8 kernel anymore. - CVE patches in meta-agl-bsp are already applied in Yocto 2.3. tcf-agent: Remove bbappend file - This change is merged to upstream poky (pyro) bluez5: Remove recipe and add .bbappend - Yocto 2.3 (Pyro) already has same version. - bluetooth.conf file is added in .bbappend python-pycrypto: Remove recipe - meta-openembedded (Pyro) already has same version. meta-agl-bsp/classes/image.bbclass: Arrange for pyro - image.bbclass is taken from poky/meta/classes/image.bbclass and only changed IMAGE_TYPE_vm variable. libsoup: Fix native build error temporarily v2 (jsmoeller): meta-agl-bsp/meta-ti: - workaround patches in meta-ti/recipes-arago/gstreamer/gstreamer1.0-plugins-bad_%.bbappend - fix old python code in meta-ti/recipes-arago/ipumm-fw/ipumm-fw_3.00.13.00.bb - workaround patches in meta-ti/recipes-arago/weston/weston_%.bbappend - make specific to dra7xx-evm: -- meta-ti/recipes-bsp/alsa-state/alsa-state.bbappend -- meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_%.bbappend -- rename meta-ti/recipes-multimedia/pulseaudio/pulseaudio/dra7xx-evm-set-default-sink-source.patch -- rename meta-ti/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend TODO/FIXME's in: - meta-agl-bsp/meta-ti/recipes-arago/gstreamer/gstreamer1.0-plugins-bad_%.bbappend - meta-agl-bsp/meta-ti/recipes-arago/weston/weston_%.bbappend - meta-agl-bsp/meta-ti/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend - meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_%.bbappend Bug-AGL: SPEC-646 Change-Id: I4162ae887d3334e9102575e3724483aa25f4bd9c Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com> Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10457
2017-08-21af-main: Fix 2 bugsJosé Bollo1-1/+1
Allow packaging of companion programs ------------------------------------- Allow to set executable permission on files of the widget. Then the files can be run by using their relative path within the widget. Bug-AGL: SPEC-384 Bug-AGL: SPEC-785 Allows content in subdirectory "htdocs" --------------------------------------- Fix the bug SPEC-808. The content of pure or hybrid HTML widget had to be in the subdirectory "htdocs" but the attribute "src" of the tag <content> shouldn't include the prefix "htdocs/". It caused installation to fail because it was checking that the file existed but in the root directory. This commit fixes the paradox by also trying to search the content in the subdirectory "htdocs". This is a temporary fix. Bug-AGL: SPEC-808 Change-Id: I512e47d35c135329ef99e3617909ba6fe78eaca7 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10603 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-07-25af-main: Install debugging features when agl-develJosé Bollo2-1/+3
When agl-devel is required, installs the debugging feature needed by XDS. Also, improves AGL_DEVEL setting of af-binder. Bug-AGL: SPEC-659 Change-Id: I90a1ecbaf78b860ded4f3a70d81ab6312d40772e Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10333 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>