Add support for user-defined multimedia in rootfs
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Tue, 1 Feb 2011 04:58:38 +0000 (04:58 +0000)
committerTom Rini <tom_rini@mentor.com>
Sat, 12 Feb 2011 16:24:14 +0000 (09:24 -0700)
Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/multimedia/multimedia_1.0.bb [new file with mode: 0644]

diff --git a/recipes/multimedia/multimedia_1.0.bb b/recipes/multimedia/multimedia_1.0.bb
new file mode 100644 (file)
index 0000000..2abfefa
--- /dev/null
@@ -0,0 +1,23 @@
+DESCRIPTION = "MultiMedia files"
+LICENSE = "GPL"
+PR = "r5"
+
+# 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
+       if [ "x${MULTIMEDIA_FILES}" != "x" ] ; then
+               if [ -f ${MULTIMEDIA_FILES} ] ; then
+                       tar jxvf ${MULTIMEDIA_FILES}    -C ${D}/usr/share/multimedia
+               fi
+       fi
+}
+
+FILES_${PN} = "\
+       /usr/share/multimedia/* \
+       /usr/share/multimedia \
+       "
+