Skip to contentSkip to conversation

formfactor: add machine-specific /etc/rotation for psplash

PATCH Applied Andrea Adami 2 participants 2 messages Jul 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 formfactor: add machine-specific /etc/rotation for psplash

---
 recipes-bsp/formfactor/formfactor_0.0.bbappend |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
recipes-bsp/formfactor/formfactor_0.0.bbappend +14 -1
index e406684..aaa24f5 100644
@@ -1,4 +1,17 @@
-PRINC := "${@int(PRINC) + 1}"
+PRINC := "${@int(PRINC) + 2}"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
+do_install_prepend () {
+	# provide machine-specific /etc/rotation for psplash
+	sed -n 's/^[ \t]DISPLAY_ORIENTATION[ \t]*//p' ${S}/machconfig | tr -dc '[0-9]' > ${S}/rotation
+	printf "\n" >> ${S}/rotation
+}
+
+do_install_append () {
+	# Only install file if it has a content
+	if [ -s "${S}/rotation" ]; then
+	install -d ${D}${sysconfdir}
+	install -m 0644 ${S}/rotation ${D}${sysconfdir}/rotation
+	fi
+}
Signature · 1 line
1.7.8.6
#1 lore raw
Quoted 20 lines · On Wednesday 11 July 2012 19:33:22 Andrea Adami wrote:
---
 recipes-bsp/formfactor/formfactor_0.0.bbappend |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/recipes-bsp/formfactor/formfactor_0.0.bbappend index e406684..aaa24f5 100644

recipes-bsp/formfactor/formfactor_0.0.bbappend +4 -1
@@ -1,4 +1,17 @@
-PRINC := "${@int(PRINC) + 1}"
+PRINC := "${@int(PRINC) + 2}"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
+do_install_prepend () {
+	# provide machine-specific /etc/rotation for psplash
+	sed -n 's/^[ \t]DISPLAY_ORIENTATION[ \t]*//p' ${S}/machconfig | tr -dc

'[0-9]' > ${S}/rotation + printf "\n" >> ${S}/rotation

recipes-bsp/formfactor/formfactor_0.0.bbappend line 17

Quoted 9 lines
recipes-bsp/formfactor/formfactor_0.0.bbappend +9 -0
+}
+
+do_install_append () {
+	# Only install file if it has a content
+	if [ -s "${S}/rotation" ]; then
+	install -d ${D}${sysconfdir}
+	install -m 0644 ${S}/rotation ${D}${sysconfdir}/rotation
+	fi
+}

Merged to meta-handheld master, thanks.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre