diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2019-07-20 02:12:37 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-22 17:31:04 +0100 |
commit | dda8f1bab2b6dca9ba5f82479194176f7b8e066d (patch) | |
tree | cc7e2f84703f2b7ecf54942d00bc9507d849c5a5 | |
parent | fc497907ce066774f78212a65c212c837d884f65 (diff) | |
download | poky-dda8f1bab2b6dca9ba5f82479194176f7b8e066d.tar.gz |
psplash: create psplash tmpfs mount directory in psplash-init
The psplash binary uses TMPDIR as directory to store the FIFO to
communicate with the psplash tools. This directory can be in any
location an init system determines to be suitable, psplash-init
uses /mnt/ for it. Rather than creating the mount directory in
the recipe, just create it in the init script itself. This allows
other init scripts to use a different location without having
an unnecessary .psplash directory in /mnt.
(From OE-Core rev: dd8c7f2466d94fd8326b962e9bcfc4f42a35da38)
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | meta/recipes-core/psplash/files/psplash-init | 1 | ||||
-rw-r--r-- | meta/recipes-core/psplash/psplash_git.bb | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init index 0bce1de536..fee23e681c 100755 --- a/meta/recipes-core/psplash/files/psplash-init +++ b/meta/recipes-core/psplash/files/psplash-init | |||
@@ -24,6 +24,7 @@ for x in $CMDLINE; do | |||
24 | done | 24 | done |
25 | 25 | ||
26 | export TMPDIR=/mnt/.psplash | 26 | export TMPDIR=/mnt/.psplash |
27 | [ -d $TMPDIR ] || mkdir -p $TMPDIR | ||
27 | mount tmpfs -t tmpfs $TMPDIR -o,size=40k | 28 | mount tmpfs -t tmpfs $TMPDIR -o,size=40k |
28 | 29 | ||
29 | rotation=0 | 30 | rotation=0 |
diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb index 3161a5e3f1..56734c1582 100644 --- a/meta/recipes-core/psplash/psplash_git.bb +++ b/meta/recipes-core/psplash/psplash_git.bb | |||
@@ -97,7 +97,6 @@ python do_compile () { | |||
97 | } | 97 | } |
98 | 98 | ||
99 | do_install_append() { | 99 | do_install_append() { |
100 | install -d ${D}/mnt/.psplash/ | ||
101 | install -d ${D}${sysconfdir}/init.d/ | 100 | install -d ${D}${sysconfdir}/init.d/ |
102 | install -m 0755 ${WORKDIR}/psplash-init ${D}${sysconfdir}/init.d/psplash.sh | 101 | install -m 0755 ${WORKDIR}/psplash-init ${D}${sysconfdir}/init.d/psplash.sh |
103 | install -d ${D}${bindir} | 102 | install -d ${D}${bindir} |
@@ -107,8 +106,6 @@ do_install_append() { | |||
107 | rm -f ${D}${bindir}/psplash | 106 | rm -f ${D}${bindir}/psplash |
108 | } | 107 | } |
109 | 108 | ||
110 | FILES_${PN} += "/mnt/.psplash" | ||
111 | |||
112 | INITSCRIPT_NAME = "psplash.sh" | 109 | INITSCRIPT_NAME = "psplash.sh" |
113 | INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ." | 110 | INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ." |
114 | 111 | ||