From 8655b9d299af00bf771c59b9f22ff48119897377 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 11 Jun 2019 22:58:40 +0200 Subject: af-platform-setup: Add recipe for setting platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Application Framework has implications on platform setup. This commit introduces a recipe that at the end would group all these required setup at on place. Bug-AGL: SPEC-1015 Change-Id: I45904ba269883329295bcbc3c70427edbfdd674f Signed-off-by: José Bollo --- .../af-platform-setup/af-platform-setup_1.0.bb | 16 ++++++++++++++++ .../af-platform-setup/files/udev-shared.conf | 4 ++++ .../packagegroups/packagegroup-agl-app-framework.bb | 1 + 3 files changed, 21 insertions(+) create mode 100644 meta-app-framework/recipes-core/af-platform-setup/af-platform-setup_1.0.bb create mode 100644 meta-app-framework/recipes-core/af-platform-setup/files/udev-shared.conf (limited to 'meta-app-framework') diff --git a/meta-app-framework/recipes-core/af-platform-setup/af-platform-setup_1.0.bb b/meta-app-framework/recipes-core/af-platform-setup/af-platform-setup_1.0.bb new file mode 100644 index 000000000..0963875d1 --- /dev/null +++ b/meta-app-framework/recipes-core/af-platform-setup/af-platform-setup_1.0.bb @@ -0,0 +1,16 @@ +HOMEPAGE = "here" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +SRC_URI = "file://udev-shared.conf" + +S = "${WORKDIR}" + +do_install() { + d=${D}${systemd_system_unitdir}/systemd-udevd.service.d + install -d $d + install ${S}/udev-shared.conf $d +} + +FILES_${PN} = "${systemd_system_unitdir}" diff --git a/meta-app-framework/recipes-core/af-platform-setup/files/udev-shared.conf b/meta-app-framework/recipes-core/af-platform-setup/files/udev-shared.conf new file mode 100644 index 000000000..cce02bc58 --- /dev/null +++ b/meta-app-framework/recipes-core/af-platform-setup/files/udev-shared.conf @@ -0,0 +1,4 @@ +[Service] +ExecStartPre=/bin/mkdir -p /run/udev +ExecStartPre=/usr/bin/chsmack -r -a System::Shared -t /run/udev + diff --git a/meta-app-framework/recipes-core/packagegroups/packagegroup-agl-app-framework.bb b/meta-app-framework/recipes-core/packagegroups/packagegroup-agl-app-framework.bb index 3944c1915..854835d4c 100644 --- a/meta-app-framework/recipes-core/packagegroups/packagegroup-agl-app-framework.bb +++ b/meta-app-framework/recipes-core/packagegroups/packagegroup-agl-app-framework.bb @@ -16,4 +16,5 @@ RDEPENDS_${PN} += "\ af-main \ nss-localuser \ systemd-agl-sync \ + af-platform-setup \ " -- cgit 1.2.3-korg