All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] multimedia: Add media contents to rootfs
@ 2010-03-13 18:59 Ulf Samuelsson
  2010-03-13 18:59 ` [PATCH v3 2/2] multimedia: Media contents (currently empty) Ulf Samuelsson
  2010-03-14  9:37 ` [PATCH v3 1/2] multimedia: Add media contents to rootfs Ulf Samuelsson
  0 siblings, 2 replies; 3+ messages in thread
From: Ulf Samuelsson @ 2010-03-13 18:59 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ulf Samuelsson

This package will copy the contents of "multimedia.tar.bz2."
(Note the dot at the end) to the "/usr/share/multimedia" directory
in the target. By replacing the empty default file, you
can add your own multimedia files for testing.

Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
---
 recipes/multimedia/multimedia_0.1.bb |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 recipes/multimedia/multimedia_0.1.bb

diff --git a/recipes/multimedia/multimedia_0.1.bb b/recipes/multimedia/multimedia_0.1.bb
new file mode 100644
index 0000000..986fd1c
--- /dev/null
+++ b/recipes/multimedia/multimedia_0.1.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "MultiMedia files"
+PR = "r1"
+
+# This package allows you to add multimedia contents to the file system
+# To add this, you create the file "multimedia.tar.bz2." and replace
+# the default file included in the openembedded repository. 
+# Note '.' at end of the filename to avoid decompress by bitbake
+
+SRC_URI = "\
+	file://multimedia.tar.bz2. \
+	"
+
+do_install() {
+	install -d ${D}/usr/share/multimedia
+	tar jxvf ${WORKDIR}/multimedia.tar.bz2.	-C ${D}/usr/share/multimedia
+	rm -f ${D}/usr/share/multimedia/.empty
+}
+
+FILES_${PN} = "\
+	/usr/share/multimedia/* \
+	"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
1.6.0.2




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v3 2/2] multimedia: Media contents (currently empty)
  2010-03-13 18:59 [PATCH v3 1/2] multimedia: Add media contents to rootfs Ulf Samuelsson
@ 2010-03-13 18:59 ` Ulf Samuelsson
  2010-03-14  9:37 ` [PATCH v3 1/2] multimedia: Add media contents to rootfs Ulf Samuelsson
  1 sibling, 0 replies; 3+ messages in thread
From: Ulf Samuelsson @ 2010-03-13 18:59 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ulf Samuelsson

This patch creates the file "multimedia.tar.bz2." containing the
default media to be copied to "/usr/share/multimedia"
(Note the dot at the end of the filename)
By replacing this file with your own, you can easily add
multimedia files to your file system for a demo.

Patch can be applied by
$ hg init
$ hg import --no-commit -f <patch>

"hg" is part of the "mercurial" package

Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
---
 recipes/multimedia/files/multimedia.tar.bz2. |  Bin 0 -> 118 bytes
 1 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 recipes/multimedia/files/multimedia.tar.bz2.

diff --git a/recipes/multimedia/files/multimedia.tar.bz2. b/recipes/multimedia/files/multimedia.tar.bz2.
new file mode 100644
index 0000000000000000000000000000000000000000..09d719c63e6aa4afafce68e4bd6131e1a484537a
GIT binary patch
literal 118
zcmV-+0Ez!XT4*^jL0KkKS(4QIK>z?-dw{@z03bjCe}DiGV+LLz1PCAibrDVIr<61U
z(g&0hL?8j6G-*F=sE|@fLNkjR-2x^Ik_Ts_))SHl@W5~jiU45mLa9=&!C73{3N630
Y^gyx_&QUp?$p_-@NT&)C5?Y^VAXlj?#Q*>R

literal 0
HcmV?d00001

-- 
1.6.0.2




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 1/2] multimedia: Add media contents to rootfs
  2010-03-13 18:59 [PATCH v3 1/2] multimedia: Add media contents to rootfs Ulf Samuelsson
  2010-03-13 18:59 ` [PATCH v3 2/2] multimedia: Media contents (currently empty) Ulf Samuelsson
@ 2010-03-14  9:37 ` Ulf Samuelsson
  1 sibling, 0 replies; 3+ messages in thread
From: Ulf Samuelsson @ 2010-03-14  9:37 UTC (permalink / raw)
  To: openembedded-devel

Ulf Samuelsson skrev:
> This package will copy the contents of "multimedia.tar.bz2."
> (Note the dot at the end) to the "/usr/share/multimedia" directory
> in the target. By replacing the empty default file, you
> can add your own multimedia files for testing.
> 
> Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>

Seems like this fails in do_populate_staging if a filename in
the tarball contains a space.


> ---
>  recipes/multimedia/multimedia_0.1.bb |   23 +++++++++++++++++++++++
>  1 files changed, 23 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/multimedia/multimedia_0.1.bb
> 
> diff --git a/recipes/multimedia/multimedia_0.1.bb b/recipes/multimedia/multimedia_0.1.bb
> new file mode 100644
> index 0000000..986fd1c
> --- /dev/null
> +++ b/recipes/multimedia/multimedia_0.1.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION = "MultiMedia files"
> +PR = "r1"
> +
> +# This package allows you to add multimedia contents to the file system
> +# To add this, you create the file "multimedia.tar.bz2." and replace
> +# the default file included in the openembedded repository. 
> +# Note '.' at end of the filename to avoid decompress by bitbake
> +
> +SRC_URI = "\
> +	file://multimedia.tar.bz2. \
> +	"
> +
> +do_install() {
> +	install -d ${D}/usr/share/multimedia
> +	tar jxvf ${WORKDIR}/multimedia.tar.bz2.	-C ${D}/usr/share/multimedia
> +	rm -f ${D}/usr/share/multimedia/.empty
> +}
> +
> +FILES_${PN} = "\
> +	/usr/share/multimedia/* \
> +	"
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"


-- 
Best Regards
Ulf Samuelsson




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-14  9:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-13 18:59 [PATCH v3 1/2] multimedia: Add media contents to rootfs Ulf Samuelsson
2010-03-13 18:59 ` [PATCH v3 2/2] multimedia: Media contents (currently empty) Ulf Samuelsson
2010-03-14  9:37 ` [PATCH v3 1/2] multimedia: Add media contents to rootfs Ulf Samuelsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.