From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Ulf Samuelsson <ulf.samuelsson@atmel.com>
Subject: Re: [PATCH] Add support for user-defined multimedia in rootfs
Date: Fri, 11 Feb 2011 15:56:04 -0800 [thread overview]
Message-ID: <20110211235604.GC1010@gmail.com> (raw)
In-Reply-To: <1296505958-4465-1-git-send-email-ulf.samuelsson@atmel.com>
On (31/01/11 21:32), Ulf Samuelsson wrote:
> ---
> recipes/multimedia/multimedia_1.0.bb | 23 +++++++++++++++++++++++
> 1 files changed, 23 insertions(+), 0 deletions(-)
> create mode 100644 recipes/multimedia/multimedia_1.0.bb
>
> diff --git a/recipes/multimedia/multimedia_1.0.bb b/recipes/multimedia/multimedia_1.0.bb
> new file mode 100644
> index 0000000..2abfefa
> --- /dev/null
> +++ b/recipes/multimedia/multimedia_1.0.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION = "MultiMedia files"
> +LICENSE = "GPL"
be specific which version of GPL
> +PR = "r5"
PR should be r0
> +
> +# This package allows you to add multimedia contents to the file system
> +# To add this, you define
> +# MULTIMEDIA_FILES=<path><filename>.tar.bz2 in local.conf
> +# and include "multimedia" in your image
> +
> +do_install() {
> + install -d ${D}/usr/share/multimedia
you could use meta variables e.g. target_datadir for denoting usr/share etc.
there are some distros which use flattened out root file system
this will not work for them
> + if [ "x${MULTIMEDIA_FILES}" != "x" ] ; then
> + if [ -f ${MULTIMEDIA_FILES} ] ; then
> + tar jxvf ${MULTIMEDIA_FILES} -C ${D}/usr/share/multimedia
> + fi
> + fi
I would suggest to untar this in say do_compile and use install program to copy it into installation area
> +}
> +
> +FILES_${PN} = "\
> + /usr/share/multimedia/* \
> + /usr/share/multimedia \
> + "
> +
> --
> 1.6.3.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
prev parent reply other threads:[~2011-02-11 23:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-31 20:32 [PATCH] Add support for user-defined multimedia in rootfs Ulf Samuelsson
2011-02-11 23:56 ` Khem Raj [this message]
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=20110211235604.GC1010@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=ulf.samuelsson@atmel.com \
/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