From dd8aa67bfee8887e1943ad4ef49232ea04025330 Mon Sep 17 00:00:00 2001 From: Dennis Field Date: Wed, 9 Nov 2016 15:55:05 -0500 Subject: weston: Set XDG_RUNTIME_DIR for fsl-arm Without this environment variable, Weston fails to start on Wandboard Bug-AGL: SPEC-318 Change-Id: I42696f45d9a9b78dfeea905d3c5066845056894e Signed-off-by: Dennis Field --- .../meta-fsl-arm/recipes-graphics/weston/weston/weston.sh | 7 +++++++ .../meta-fsl-arm/recipes-graphics/weston/weston_%.bbappend | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 meta-agl-bsp/meta-fsl-arm/recipes-graphics/weston/weston/weston.sh create mode 100644 meta-agl-bsp/meta-fsl-arm/recipes-graphics/weston/weston_%.bbappend diff --git a/meta-agl-bsp/meta-fsl-arm/recipes-graphics/weston/weston/weston.sh b/meta-agl-bsp/meta-fsl-arm/recipes-graphics/weston/weston/weston.sh new file mode 100644 index 000000000..225a034bb --- /dev/null +++ b/meta-agl-bsp/meta-fsl-arm/recipes-graphics/weston/weston/weston.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if test -z "$XDG_RUNTIME_DIR"; then + export XDG_RUNTIME_DIR=/run/user/$UID + mkdir --parents $XDG_RUNTIME_DIR + chmod 0700 $XDG_RUNTIME_DIR +fi diff --git a/meta-agl-bsp/meta-fsl-arm/recipes-graphics/weston/weston_%.bbappend b/meta-agl-bsp/meta-fsl-arm/recipes-graphics/weston/weston_%.bbappend new file mode 100644 index 000000000..bdb6e44de --- /dev/null +++ b/meta-agl-bsp/meta-fsl-arm/recipes-graphics/weston/weston_%.bbappend @@ -0,0 +1,14 @@ +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" + +SRC_URI_append = "\ + file://weston.sh \ + " + +do_install_append() { + install -d ${D}/${sysconfdir}/profile.d + install -m 0755 ${WORKDIR}/weston.sh ${D}/${sysconfdir}/profile.d/weston.sh +} + +FILES_${PN} += " \ + ${sysconfdir}/profile.d/weston.sh \ + " -- cgit 1.2.3-korg