Skip to contentSkip to conversation

multimedia:;Add media contents to rootfs

PATCH In review Ulf Samuelsson 3 participants 6 messages Mar 12, 2010 – Mar 14, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multimedia:;Add media contents to rootfs

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

---
 recipes/multimedia/files/multimedia.tar.bz2. |  Bin 0 -> 118 bytes
 recipes/multimedia/multimedia_0.1.bb         |   19 +++++++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 recipes/multimedia/files/multimedia.tar.bz2.
 create mode 100644 recipes/multimedia/multimedia_0.1.bb
recipes/multimedia/files/multimedia.tar.bz2. new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..09d719c63e6aa4afafce68e4bd6131e1a484537a
GIT binary patch
recipes/multimedia/multimedia_0.1.bb new file +19 -0
new file mode 100644
index 0000000..5776059
@@ -0,0 +1,19 @@
+DESCRIPTION = "MultiMedia files"
+PR = "r1"
+
+# Note '.' at end of the filename to avoid decompress by bitbake
+SRC_URI = "\
+	file://multimedia.tar.bz2. \
+	"
+
+do_install() {
+	install -d ${D}/home/root/multimedia
+	tar jxvf ${WORKDIR}/multimedia.tar.bz2.	-C ${D}/home/root/multimedia
+	rm -f ${D}/home/root/multimedia/.empty
+}
+
+FILES_${PN} = "\
+	/home/root/multimedia/* \
+	"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.6.0.2
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 6 lines · Ulf Samuelsson

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

NAK. Package never never touch $HOME, if you want things installed into $HOME, look into /etc/skel.

Quoted 34 lines
---
 recipes/multimedia/files/multimedia.tar.bz2. |  Bin 0 -> 118 bytes
 recipes/multimedia/multimedia_0.1.bb         |   19 +++++++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 recipes/multimedia/files/multimedia.tar.bz2.
 create mode 100644 recipes/multimedia/multimedia_0.1.bb
recipes/multimedia/files/multimedia.tar.bz2. new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..09d719c63e6aa4afafce68e4bd6131e1a484537a
GIT binary patch
recipes/multimedia/multimedia_0.1.bb new file +9 -0
new file mode 100644
index 0000000..5776059
@@ -0,0 +1,19 @@
+DESCRIPTION = "MultiMedia files"
+PR = "r1"
+
+# Note '.' at end of the filename to avoid decompress by bitbake
+SRC_URI = "\
+	file://multimedia.tar.bz2. \
+	"
+
+do_install() {

recipes/multimedia/multimedia_0.1.bb line 19

Quoted 10 lines
recipes/multimedia/multimedia_0.1.bb new file +10 -0
+	install -d ${D}/home/root/multimedia
+	tar jxvf ${WORKDIR}/multimedia.tar.bz2.	-C ${D}/home/root/multimedia
+	rm -f ${D}/home/root/multimedia/.empty
+}
+
+FILES_${PN} = "\
+	/home/root/multimedia/* \
+	"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLm2j5MkyGM64RGpERAoBWAKCcH+Dt6rUTXt5hrTj1pcGcQ1XO+ACfY2PX rBbMEgk5o0l8ILfLcIfvDMA=
=UTCx
-----END PGP SIGNATURE-----

#2 lore raw

Koen Kooi skrev:

Quoted 6 lines · Ulf Samuelsson
Quoted 4 lines

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

Quoted 6 lines
Quoted 1 line

NAK. Package never never touch $HOME, if you want things installed into $HOME, look into /etc/skel.

The purpose is not to have a "multimedia" directory in each home so I dont think "/etc/skel" is applicable.

The purpose of this package is to be able to easily load some jpeg pictures, movies, mp3 files into the root file system when you build a demo.

It is not likely to be used for a real products

At the moment, the package should not install *anything*, until a developer replaces the file with own content.

To use it, you create a directory structure with your media file, create a b2zip'd tarball, and replace the "multimedia.tar.bz2."

Dont have any specific preference for /home,
just seems to be practical for a demo.

Come to think about it, it probably makes more sense to put it in '${D}/'.

This will allow you to update any part of the file system with whatever you want.

If that is not OK, then what about "${D}//usr" ?

Signature · 2 lines
Best Regards
Ulf Samuelsson
#3 lore raw

Dnia sobota, 13 marca 2010 o 13:16:07 Ulf Samuelsson napisał(a):

Quoted 5 lines
Quoted 2 lines

NAK. Package never never touch $HOME, if you want things installed into $HOME, look into /etc/skel.

The purpose is not to have a "multimedia" directory in each home so I dont think "/etc/skel" is applicable.

Store your multimedia in /usr/share/multimedia/ and make ~/multimedia symlink for each user. This way it will work for those who use /home/ on other partition (so do not write it during initial populating of rootfs) and you will have your data available and everybody will be happy.

Quoted 3 lines

The purpose of this package is to be able to easily load some jpeg pictures, movies, mp3 files into the root file system when you build a demo.

Idea is nice - I like it.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#4 lore raw
In reply to Ulf Samuelsson

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 14 lines · Ulf Samuelsson

Koen Kooi skrev:

Quoted 6 lines · Ulf Samuelsson
Quoted 4 lines

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

Quoted 6 lines
Quoted 1 line

NAK. Package never never touch $HOME, if you want things installed into $HOME, look into /etc/skel.

Quoted 6 lines

The purpose is not to have a "multimedia" directory in each home so I dont think "/etc/skel" is applicable.

The purpose of this package is to be able to easily load some jpeg pictures, movies, mp3 files into the root file system when you build a demo.

Like
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=6a6d6bab519aefb44e3d49d305134057adf7539e
does?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLnNmbMkyGM64RGpERAnAFAKC1w11jPy+2lXSHi5ZNHtymXpT/EACgq5cj PXoq4JfTLv3vvA1Il7NClsY=
=DVyt
-----END PGP SIGNATURE-----

#5 lore raw

Koen Kooi skrev:

Quoted 15 lines · Ulf Samuelsson
Quoted 13 lines

Koen Kooi skrev:

Quoted 10 lines · Ulf Samuelsson
Quoted 5 lines

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

NAK. Package never never touch $HOME, if you want things installed into $HOME, look into /etc/skel.

The purpose is not to have a "multimedia" directory in each home so I dont think "/etc/skel" is applicable.

Quoted 7 lines
Quoted 3 lines

The purpose of this package is to be able to easily load some jpeg pictures, movies, mp3 files into the root file system when you build a demo.

Like
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=6a6d6bab519aefb44e3d49d305134057adf7539e
does?

Yes, except that this is hardwired to a certain movie, and this patch will allow you to load your own content.

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

Signature · 2 lines
Best Regards
Ulf Samuelsson