[oe] [meta-oe][PATCH] lmbench: if a machine config file exists, install it

Martin Jansa martin.jansa at gmail.com
Tue Aug 19 12:07:40 UTC 2014


On Tue, Aug 19, 2014 at 04:49:24PM +0500, Yasir-Khan wrote:
> Signed-off-by: Christopher Larson <chris_larson at mentor.com>
> Signed-off-by: Yasir-Khan <yasir_khan at mentor.com>
> ---
>  .../recipes-benchmark/lmbench/lmbench_3.0-a9.bb    |    7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> index 41db150..a3873a6 100644
> --- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> +++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> @@ -60,6 +60,13 @@ do_install () {
>             ${D}${bindir}/lmbench-run
>      install -m 0755 ${S}/scripts/lmbench ${D}${bindir}
>      install -m 0755 ${S}/scripts/* ${D}${datadir}/lmbench/scripts
> +
> +    # If the machine installs a config file, install it to the appropriate place
> +    if [ -f ${WORKDIR}/CONFIG.${MACHINE} ]; then
> +        install -D 0644 ${WORKDIR}/CONFIG.${MACHINE} \
> +                        ${D}/${datadir}/lmbench/bin/${TARGET_PREFIX}/CONFIG.${MACHINE}
> +    fi

that makes lmbench MACHINE_ARCH and PACKAGE_ARCH isn't set that way.

>  
>  pkg_postinst_${PN} () {
> -- 
> 1.7.9.5
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20140819/1fae9082/attachment-0002.sig>


More information about the Openembedded-devel mailing list