* [meta-handheld][PATCH] formfactor: add machine-specific /etc/rotation for psplash
@ 2012-07-11 17:33 Andrea Adami
2012-07-11 21:23 ` Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Andrea Adami @ 2012-07-11 17:33 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
recipes-bsp/formfactor/formfactor_0.0.bbappend | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/recipes-bsp/formfactor/formfactor_0.0.bbappend b/recipes-bsp/formfactor/formfactor_0.0.bbappend
index e406684..aaa24f5 100644
--- a/recipes-bsp/formfactor/formfactor_0.0.bbappend
+++ b/recipes-bsp/formfactor/formfactor_0.0.bbappend
@@ -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
+}
--
1.7.8.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-handheld][PATCH] formfactor: add machine-specific /etc/rotation for psplash
2012-07-11 17:33 [meta-handheld][PATCH] formfactor: add machine-specific /etc/rotation for psplash Andrea Adami
@ 2012-07-11 21:23 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2012-07-11 21:23 UTC (permalink / raw)
To: openembedded-devel
On Wednesday 11 July 2012 19:33:22 Andrea Adami wrote:
> Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> ---
> recipes-bsp/formfactor/formfactor_0.0.bbappend | 15 ++++++++++++++-
> 1 files changed, 14 insertions(+), 1 deletions(-)
>
> diff --git a/recipes-bsp/formfactor/formfactor_0.0.bbappend
> b/recipes-bsp/formfactor/formfactor_0.0.bbappend index e406684..aaa24f5
> 100644
> --- a/recipes-bsp/formfactor/formfactor_0.0.bbappend
> +++ b/recipes-bsp/formfactor/formfactor_0.0.bbappend
> @@ -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
> +}
Merged to meta-handheld master, thanks.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-11 21:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-11 17:33 [meta-handheld][PATCH] formfactor: add machine-specific /etc/rotation for psplash Andrea Adami
2012-07-11 21:23 ` Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.