From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 3/4] Add "builder" user for specific purpose.
Date: Wed, 21 Dec 2011 11:37:15 -0800 [thread overview]
Message-ID: <4EF2356B.3010105@linux.intel.com> (raw)
In-Reply-To: <f13de6bacfca9935698b1f30f2729b28d9e9a71f.1324454963.git.edwin.zhai@intel.com>
On 12/21/2011 12:18 AM, edwin.zhai@intel.com wrote:
> From: Zhai Edwin<edwin.zhai@intel.com>
>
> "builder" can start some auto stuff by mini X session.
>
> Signed-off-by: Zhai Edwin<edwin.zhai@intel.com>
> ---
> meta/recipes-graphics/builder/builder_0.1.bb | 27 +++++++++++++++++++++
> meta/recipes-graphics/builder/files/auto_start.sh | 11 ++++++++
auto_start is a pretty generic script name, might be better to call it
soemthing like builder_hob_start.sh or something more unique.
Sau!
> 2 files changed, 38 insertions(+), 0 deletions(-)
> create mode 100644 meta/recipes-graphics/builder/builder_0.1.bb
> create mode 100644 meta/recipes-graphics/builder/files/auto_start.sh
>
> diff --git a/meta/recipes-graphics/builder/builder_0.1.bb b/meta/recipes-graphics/builder/builder_0.1.bb
> new file mode 100644
> index 0000000..abe329f
> --- /dev/null
> +++ b/meta/recipes-graphics/builder/builder_0.1.bb
> @@ -0,0 +1,27 @@
> +SUMMARY = "New user to do specific job"
> +DESCRIPTION = "This recipe create a new user named ${PN}, who is used for specific jobs like building. The task can be auto started via mini X"
> +SECTION = "x11"
> +PR = "r0"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://auto_start.sh;endline=5;md5=66d6c43a8b2583e3bd70c6b020f679a4"
> +
> +SRC_URI = "file://auto_start.sh"
> +
> +S = "${WORKDIR}"
> +
> +RDEPENDS_${PN} = "minix-session"
> +
> +inherit useradd
> +
> +USERADD_PACKAGES = "${PN}"
> +USERADD_PARAM_${PN} = "--system --create-home \
> + --groups video,tty,audio \
> + --user-group ${PN}"
> +
> +do_install () {
> + install -d -m 755 ${D}/etc/minix/session.d
> + install -p -m 755 auto_start.sh ${D}/etc/minix/session.d/
> +
> + chown ${PN}.${PN} ${D}/etc/minix/session.d/auto_start.sh
> +}
> +
> diff --git a/meta/recipes-graphics/builder/files/auto_start.sh b/meta/recipes-graphics/builder/files/auto_start.sh
> new file mode 100644
> index 0000000..7247d1c
> --- /dev/null
> +++ b/meta/recipes-graphics/builder/files/auto_start.sh
> @@ -0,0 +1,11 @@
> +#!/bin/sh
> +#This script will be called via minix X session on behalf of file owner, after
> +#installed in /etc/minix/session.d/. Any auto start jobs including X apps can
> +#be put here
> +
> +# start hob here
> +#cd /intel/poky/poky
> +#. ./oe-init-build-env
> +#../scripts/hob
> +
> +matchbox-terminal&
next prev parent reply other threads:[~2011-12-21 19:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 8:18 [PATCH 0/4] [RFC] Add mini X for self-hosted edwin.zhai
2011-12-21 8:18 ` [PATCH 1/4] minix-session: Add this recipe as the session file for mini X edwin.zhai
2011-12-21 10:36 ` Paul Eggleton
2011-12-21 19:42 ` Otavio Salvador
2011-12-22 0:49 ` Zhai, Edwin
2011-12-21 19:38 ` Saul Wold
2011-12-22 0:52 ` Zhai, Edwin
2011-12-22 1:04 ` Saul Wold
2011-12-21 8:18 ` [PATCH 2/4] Add mini X core tasks edwin.zhai
2011-12-21 8:18 ` [PATCH 3/4] Add "builder" user for specific purpose edwin.zhai
2011-12-21 19:37 ` Saul Wold [this message]
2011-12-21 8:18 ` [PATCH 4/4] self-hosted-image: Add builder user and mini X edwin.zhai
-- strict thread matches above, loose matches on Subject: below --
2011-12-22 12:16 [PATCH 0/4] self-hosted-image: Add " edwin.zhai
2011-12-22 12:16 ` [PATCH 3/4] Add "builder" user for specific purpose edwin.zhai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EF2356B.3010105@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox