Skip to contentSkip to conversation

Add support for user-defined multimedia in rootfs

PATCH Superseded Ulf Samuelsson 2 participants 2 messages Jan 31, 2011 – Feb 11, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support for user-defined multimedia in rootfs

---
 recipes/multimedia/multimedia_1.0.bb |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 recipes/multimedia/multimedia_1.0.bb
recipes/multimedia/multimedia_1.0.bb new file +23 -0
new file mode 100644
index 0000000..2abfefa
@@ -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 \
+	"
+
Signature · 1 line
1.6.3.3
#1 lore raw

recipes/multimedia/multimedia_1.0.bb line 2

Quoted 13 lines · Ulf Samuelsson
---
 recipes/multimedia/multimedia_1.0.bb |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 recipes/multimedia/multimedia_1.0.bb
recipes/multimedia/multimedia_1.0.bb new file +2 -0
new file mode 100644
index 0000000..2abfefa
@@ -0,0 +1,23 @@
+DESCRIPTION = "MultiMedia files"
+LICENSE = "GPL"

be specific which version of GPL

recipes/multimedia/multimedia_1.0.bb line 3

Quoted 1 line
recipes/multimedia/multimedia_1.0.bb new file +1 -0
+PR = "r5"

PR should be r0

recipes/multimedia/multimedia_1.0.bb line 11

Quoted 8 lines
recipes/multimedia/multimedia_1.0.bb new file +8 -0
+
+# 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

recipes/multimedia/multimedia_1.0.bb line 16

Quoted 5 lines
recipes/multimedia/multimedia_1.0.bb new file +5 -0
+	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

Quoted 15 lines
recipes/multimedia/multimedia_1.0.bb new file +7 -0
+}
+
+FILES_${PN} = "\
+	/usr/share/multimedia/* \
+	/usr/share/multimedia \
+	"
+
Signature · 7 lines
1.6.3.3


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel