This doesn't sound nor look right. Why can't you reuse weston.ini?
Also, packages are not allowed to mangle user home directories.

--
Denys

On Mar 26, 2015 06:15, "R, Karthik" <[email protected]> wrote:
There are different set of requirements on the bootup behavior
across different platforms. To name a few:
 * J6, the required behavior is console/command prompt
 * AM57xx, it will be the matrix-gui (QT5 on Wayland)

weston-init recipe addresses the needs of AM57xx.
This patch is needed for J6/J6-Eco etc.

Note that if there are customers on AM57xx who need the default behavior
to be console/command prompt, this patch will address those needs.
It does not conflict with weston-init.

Signed-off-by: Karthik Ramanan <[email protected]>
---
 .../recipes-graphics/wayland/weston/profile        |    8 ++++++++
 .../recipes-graphics/wayland/weston_1.6.0.bbappend |    7 +++++--
 2 files changed, 13 insertions(+), 2 deletions(-)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston/profile

diff --git a/meta-arago-distro/recipes-graphics/wayland/weston/profile 
b/meta-arago-distro/recipes-graphics/wayland/weston/profile
new file mode 100644
index 0000000..0848c18
--- /dev/null
+++ b/meta-arago-distro/recipes-graphics/wayland/weston/profile
@@ -0,0 +1,8 @@
+if test -z "${XDG_RUNTIME_DIR}"; then
+       export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
+fi
+
+if ! test -d "${XDG_RUNTIME_DIR}"; then
+       mkdir -p "${XDG_RUNTIME_DIR}"
+       chmod 0700 "${XDG_RUNTIME_DIR}"
+fi
diff --git a/meta-arago-distro/recipes-graphics/wayland/weston_1.6.0.bbappend 
b/meta-arago-distro/recipes-graphics/wayland/weston_1.6.0.bbappend
index 4e9901d..7826c65 100644
--- a/meta-arago-distro/recipes-graphics/wayland/weston_1.6.0.bbappend
+++ b/meta-arago-distro/recipes-graphics/wayland/weston_1.6.0.bbappend
@@ -5,23 +5,26 @@ PACKAGECONFIG[wayland] = "--enable-wayland-compositor 
WESTON_NATIVE_BACKEND="drm
 # When configured for fbdev compositor, make it the default
 PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor 
WESTON_NATIVE_BACKEND="fbdev-backend.so",--disable-fbdev-compositor,udev mtdev"

-PR_append = "-arago2"
+PR_append = "-arago3"

 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

 SRC_URI += "file://wayland_env.sh \
             file://weston.ini \
             
file://0001-weston-Enabling-DRM-backend-with-multiple-displays.patch \
+            file://profile \
 "

 # Add custom Arago Wayland Environment script file
 do_install_append () {
     install -d ${D}${sysconfdir}/profile.d
+    install -d ${D}/home/root
     install -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}
     install -m 0644 ${WORKDIR}/wayland_env.sh ${D}${sysconfdir}/profile.d/
+    install -m 0644 ${WORKDIR}/profile ${D}/home/root/.profile
 }

 PACKAGES += "${PN}-conf"

-FILES_${PN}-conf += "${sysconfdir}/profile.d/* ${sysconfdir}/weston.ini"
+FILES_${PN}-conf += "${sysconfdir}/profile.d/* ${sysconfdir}/weston.ini  
/home/root/.profile"
 RDEPENDS_${PN} += "${PN}-conf"
--
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to