Skip to contentSkip to conversation

weston: Add weston.ini config file

PATCH In review Sujith H 2 participants 6 messages Apr 16, 2014 – Apr 23, 2014

lore
Share & tools
lore

Sujith H

author
#0 lore raw

PATCH 1/1 weston: Add weston.ini config file

Adding weston.ini to $ROOT_HOME/.config. With this change user can login to $ROOT_HOME and launch weston with ivi-shell.

---
 recipes-graphics/wayland/weston_1.4.0.bbappend | 13 +++++++++++++
 1 file changed, 13 insertions(+)
recipes-graphics/wayland/weston_1.4.0.bbappend +13 -0
index 7a8ba6f..a2713d6 100644
@@ -12,3 +12,16 @@ PR = "r1"
 
 FILES_${PN} += "${libdir}/weston/*"
 FILES_${PN}-dbg += "${libdir}/weston/.debug/*"
+
+do_install_append() {
+   install -d ${D}${ROOT_HOME}/.config
+   install -m 0644 ${S}/ivi-shell/weston.ini.in ${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e  's/hmi-controller.so/hmi-controller.so, ivi-controller.so/' ${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e 's|\@libexecdir\@|${libexecdir}|' ${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e 's|\@abs_top_builddir\@\/data|${datadir}\/weston|' ${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e 's|\@abs_top_builddir\@\/clients|${bindir}|' ${D}${ROOT_HOME}/.config/weston.ini
+}
+
+PACKAGES += "${PN}-ini"
+
+FILES_${PN}-ini = "${ROOT_HOME}/.config"
Signature · 1 line
1.8.4
author
#1 lore raw

Hi,

Any comments about this patch?

Thanks,
Sujith H

Quoted 38 lines · Sujith H

Adding weston.ini to $ROOT_HOME/.config. With this change user can login to $ROOT_HOME and launch weston with ivi-shell.

---
 recipes-graphics/wayland/weston_1.4.0.bbappend | 13 +++++++++++++
 1 file changed, 13 insertions(+)
recipes-graphics/wayland/weston_1.4.0.bbappend +5 -0
index 7a8ba6f..a2713d6 100644
@@ -12,3 +12,16 @@ PR = "r1"
 
 FILES_${PN} += "${libdir}/weston/*"
 FILES_${PN}-dbg += "${libdir}/weston/.debug/*"
+
+do_install_append() {
+   install -d ${D}${ROOT_HOME}/.config
+   install -m 0644 ${S}/ivi-shell/weston.ini.in${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e  's/hmi-controller.so/hmi-controller.so, ivi-controller.so/'

${D}${ROOT_HOME}/.config/weston.ini
+ sed -i -e 's|\@libexecdir\@|${libexecdir}|'
${D}${ROOT_HOME}/.config/weston.ini
+ sed -i -e 's|\@abs_top_builddir\@\/data|${datadir}\/weston|'
${D}${ROOT_HOME}/.config/weston.ini
+ sed -i -e 's|\@abs_top_builddir\@\/clients|${bindir}|'
${D}${ROOT_HOME}/.config/weston.ini

recipes-graphics/wayland/weston_1.4.0.bbappend +5 -1
+}
+
+PACKAGES += "${PN}-ini"
+
+FILES_${PN}-ini = "${ROOT_HOME}/.config"
--

1.8.4

Signature · 5 lines
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
#2 lore raw
In reply to Sujith H
Quoted 2 lines · Sujith H

Adding weston.ini to $ROOT_HOME/.config. With this change user can login to $ROOT_HOME and launch weston with ivi-shell.

what if I am not root ? IOW is there more systemwide way of doing it ?

Quoted 35 lines
---
 recipes-graphics/wayland/weston_1.4.0.bbappend | 13 +++++++++++++
 1 file changed, 13 insertions(+)
recipes-graphics/wayland/weston_1.4.0.bbappend +13 -1
index 7a8ba6f..a2713d6 100644
@@ -12,3 +12,16 @@ PR = "r1"
 
 FILES_${PN} += "${libdir}/weston/*"
 FILES_${PN}-dbg += "${libdir}/weston/.debug/*"
+
+do_install_append() {
+   install -d ${D}${ROOT_HOME}/.config
+   install -m 0644 ${S}/ivi-shell/weston.ini.in ${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e  's/hmi-controller.so/hmi-controller.so, ivi-controller.so/' ${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e 's|\@libexecdir\@|${libexecdir}|' ${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e 's|\@abs_top_builddir\@\/data|${datadir}\/weston|' ${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e 's|\@abs_top_builddir\@\/clients|${bindir}|' ${D}${ROOT_HOME}/.config/weston.ini
+}
+
+PACKAGES += "${PN}-ini"
+
+FILES_${PN}-ini = "${ROOT_HOME}/.config"
--

1.8.4

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

author
#3 lore raw

Hi Khem Raj,

Quoted 6 lines · Khem Raj
Quoted 2 lines · Sujith H

Adding weston.ini to $ROOT_HOME/.config. With this change user can login to $ROOT_HOME and launch weston with ivi-shell.

what if I am not root ? IOW is there more systemwide way of doing it ?

I couldn't find any other login variable( like $ROOT_HOME) in bitbake.conf. I agree that if we can do it in a more systemwide
way then it would be a clean solution. Any pointers to look at?

Quoted 41 lines

Review

Quoted 7 lines
---
 recipes-graphics/wayland/weston_1.4.0.bbappend | 13 +++++++++++++
 1 file changed, 13 insertions(+)
(quoted diff) +0 -0

b/recipes-graphics/wayland/weston_1.4.0.bbappend

recipes-graphics/wayland/weston_1.4.0.bbappend PR = "r1" · line 19

Quoted 12 lines

index 7a8ba6f..a2713d6 100644

recipes-graphics/wayland/weston_1.4.0.bbappend +5 -0
@@ -12,3 +12,16 @@ PR = "r1"
 
 FILES_${PN} += "${libdir}/weston/*"
 FILES_${PN}-dbg += "${libdir}/weston/.debug/*"
+
+do_install_append() {
+   install -d ${D}${ROOT_HOME}/.config
+   install -m 0644 ${S}/ivi-shell/weston.ini.in${D}${ROOT_HOME}/.config/weston.ini
+   sed -i -e  's/hmi-controller.so/hmi-controller.so,

ivi-controller.so/' ${D}${ROOT_HOME}/.config/weston.ini

recipes-graphics/wayland/weston_1.4.0.bbappend PR = "r1" · line 20

Quoted 1 line
recipes-graphics/wayland/weston_1.4.0.bbappend +1 -0
+   sed -i -e 's|\@libexecdir\@|${libexecdir}|'

${D}${ROOT_HOME}/.config/weston.ini

recipes-graphics/wayland/weston_1.4.0.bbappend PR = "r1" · line 21

Quoted 1 line
recipes-graphics/wayland/weston_1.4.0.bbappend +1 -0
+   sed -i -e 's|\@abs_top_builddir\@\/data|${datadir}\/weston|'

${D}${ROOT_HOME}/.config/weston.ini

recipes-graphics/wayland/weston_1.4.0.bbappend PR = "r1" · line 22

Quoted 1 line
recipes-graphics/wayland/weston_1.4.0.bbappend +1 -0
+   sed -i -e 's|\@abs_top_builddir\@\/clients|${bindir}|'

${D}${ROOT_HOME}/.config/weston.ini

Quoted 13 lines
recipes-graphics/wayland/weston_1.4.0.bbappend +5 -1
+}
+
+PACKAGES += "${PN}-ini"
+
+FILES_${PN}-ini = "${ROOT_HOME}/.config"
--

1.8.4

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Signature · 5 lines
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
#4 lore raw
Quoted 6 lines · sujith h
Quoted 1 line

what if I am not root ? IOW is there more systemwide way of doing it ?

I couldn't find any other login variable( like $ROOT_HOME) in bitbake.conf. I agree that if we can do it in a more systemwide
way then it would be a clean solution. Any pointers to look at?

well, its not really OE issue. see if weston can read configuration files somewhere in /etc/

author
#5 lore raw
Quoted 4 lines · Khem Raj
Quoted 3 lines · sujith h
Quoted 1 line

what if I am not root ? IOW is there more systemwide way of doing it ?

Quoted 8 lines
Quoted 1 line

I couldn't find any other login variable( like $ROOT_HOME) in

bitbake.conf.

Quoted 2 lines

I agree that if we can do it in a more systemwide
way then it would be a clean solution. Any pointers to look at?

well, its not really OE issue. see if weston can read configuration files somewhere in /etc/

I had updated the new patch with weston.ini file in /etc/xdg/weston directory.

Signature · 5 lines
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info