[oe-commits] Ulf Samuelsson : multimedia: Add media contents to rootfs

git version control git at git.openembedded.org
Thu Mar 25 16:48:27 UTC 2010


Module: openembedded.git
Branch: ulf/linux-2.6.30-20100317
Commit: c076aa67759ed59b9bb1740605e808771bb010de
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c076aa67759ed59b9bb1740605e808771bb010de

Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date:   Thu Mar 25 16:25:40 2010 +0100

multimedia: Add media contents to rootfs

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 at atmel.com>

---

 recipes/multimedia/multimedia_1.0.bb |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/recipes/multimedia/multimedia_1.0.bb b/recipes/multimedia/multimedia_1.0.bb
new file mode 100644
index 0000000..1d76da9
--- /dev/null
+++ b/recipes/multimedia/multimedia_1.0.bb
@@ -0,0 +1,20 @@
+DESCRIPTION = "MultiMedia files"
+PR = "r0"
+
+# This package allows you to add multimedia contents to the file system
+# To add this, you define 
+# MULTIMEDIA_FILES=<filename>.tar.bz2 in local.conf
+# and include "multimedia" in your image
+
+do_install() {
+	if [ "x${MULTIMEDIA_FILES}" != "x" ] ; then
+		install -d ${D}/usr/share/multimedia
+		tar jxvf ${MULTIMEDIA_FILES}	-C ${D}/usr/share/multimedia
+	fi
+}
+
+FILES_${PN} = "\
+	/usr/share/multimedia/* \
+	"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"





More information about the Openembedded-commits mailing list