Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] imageconfigurator: a new recipe for boottime image configuration
Date: Thu, 28 Aug 2014 13:53:19 -0500	[thread overview]
Message-ID: <53FF7A9F.8040108@windriver.com> (raw)
In-Reply-To: <e742f96dea187a45c9f9f3ca9383565f1d460566.1409251282.git.nitin.a.kamble@intel.com>

On 8/28/14, 1:47 PM, nitin.a.kamble@intel.com wrote:
> From: Nitin A Kamble <nitin.a.kamble@intel.com>
>
> This recipe adds ability to configure a BSP image for a specific
> machine or platform at the boot time. The machine configurations
> are not provided here, and are to be provided in the BSP layers.
>
> Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
> ---
>   .../imageconfigurator/imageconfigurator_git.bb     | 50 ++++++++++++++++++++++
>   1 file changed, 50 insertions(+)
>   create mode 100644 meta/recipes-bsp/imageconfigurator/imageconfigurator_git.bb
>
> diff --git a/meta/recipes-bsp/imageconfigurator/imageconfigurator_git.bb b/meta/recipes-bsp/imageconfigurator/imageconfigurator_git.bb
> new file mode 100644
> index 0000000..7208ad0
> --- /dev/null
> +++ b/meta/recipes-bsp/imageconfigurator/imageconfigurator_git.bb
> @@ -0,0 +1,50 @@
> +SUMMARY = "Daemon to configure an image for a specific machine at boot time."
> +SECTION = "base"
> +LICENSE = "GPLv3"

Any specific reason for GPLv3 vs GPLv2+?  I have a number of customers who are 
still locked on GPLv2 images for the time being, and they are interested in this 
kind of tool.

--Mark

> +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> +RDEPENDS_${PN} = "sysvinit sed"
> +
> +PE = "1"
> +PV = "0.1+git${SRCPV}"
> +
> +SRCREV = "90603bed54f7c033a7b2f92214c21d011459844b"
> +
> +SRC_URI = "git://git.yoctoproject.org/imageconfigurator.git"
> +
> +S = "${WORKDIR}/git"
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
> +inherit autotools pkgconfig update-rc.d
> +
> +INITSCRIPT_NAME = "imageconfigurator"
> +INITSCRIPT_PARAMS = "start 00 S . stop 20 0 1 6 ."
> +
> +RRECOMMENDS_${PN} += "kernel-module-uinput"
> +
> +python __anonymous () {
> +    src_uri = d.getVar('SRC_URI', True)
> +    machine_config_files = (d.getVar('MACHINE_CONFIG_FILES', True) or "")
> +    for file in machine_config_files.split():
> +         src_uri += " file://" + file
> +    d.setVar('SRC_URI', src_uri)
> +}
> +
> +do_install_append() {
> +	{
> +	echo SUPPORTED_MACHINES=${SUPPORTED_MACHINES}
> +	echo DEFAULT_MACHINE_SELECTION=${DEFAULT_MACHINE_SELECTION}
> +	} > ${D}/${sysconfdir}/${BPN}/defaults
> +
> +	for file in ${MACHINE_CONFIG_FILES}
> +	do
> +		install -m 0644 ${S}/../${file} ${D}/${sysconfdir}/${BPN}/config/
> +	done
> +}
> +
> +# following variables are initialized to empty values now.
> +# These need to be populated with the desired machine configurations
> +# for each BSP in it's own layer.
> +MACHINE_CONFIG_FILES = ""
> +SUPPORTED_MACHINES = ""
> +DEFAULT_MACHINE_SELECTION = "none"
>



  reply	other threads:[~2014-08-28 18:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-28 18:47 [PATCH 0/1] A tool for boottime image configuration nitin.a.kamble
2014-08-28 18:47 ` [PATCH 1/1] imageconfigurator: a new recipe " nitin.a.kamble
2014-08-28 18:53   ` Mark Hatle [this message]
2014-08-28 20:09   ` Burton, Ross
2014-08-28 20:14     ` Kamble, Nitin A
2014-08-28 20:33       ` Burton, Ross
2014-08-28 21:05         ` Kamble, Nitin A
2014-08-28 21:49           ` Burton, Ross
2014-08-28 22:13             ` Kamble, Nitin A
2014-08-28 23:03               ` Otavio Salvador
2014-08-29  1:06                 ` Kamble, Nitin A
2014-09-05  1:20 ` [PATCH 0/1] A tool " Kamble, Nitin A

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=53FF7A9F.8040108@windriver.com \
    --to=mark.hatle@windriver.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