[OE-core] [PATCH 1/1] imageconfigurator: a new recipe for boottime image configuration

Mark Hatle mark.hatle at windriver.com
Thu Aug 28 18:53:19 UTC 2014


On 8/28/14, 1:47 PM, nitin.a.kamble at intel.com wrote:
> From: Nitin A Kamble <nitin.a.kamble at 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 at 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"
>




More information about the Openembedded-core mailing list