All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] multimedia:;Add media contents to rootfs
@ 2010-03-12 21:39 Ulf Samuelsson
  2010-03-13 10:29 ` Koen Kooi
  0 siblings, 1 reply; 7+ messages in thread
From: Ulf Samuelsson @ 2010-03-12 21:39 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 "/home/root/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/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

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

diff --git a/recipes/multimedia/multimedia_0.1.bb b/recipes/multimedia/multimedia_0.1.bb
new file mode 100644
index 0000000..5776059
--- /dev/null
+++ b/recipes/multimedia/multimedia_0.1.bb
@@ -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}"
-- 
1.6.0.2




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

* [PATCH] multimedia:;Add media contents to rootfs
@ 2010-03-12 22:26 Ulf Samuelsson
  0 siblings, 0 replies; 7+ messages in thread
From: Ulf Samuelsson @ 2010-03-12 22:26 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 "/home/root/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/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

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

diff --git a/recipes/multimedia/multimedia_0.1.bb b/recipes/multimedia/multimedia_0.1.bb
new file mode 100644
index 0000000..5776059
--- /dev/null
+++ b/recipes/multimedia/multimedia_0.1.bb
@@ -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}"
-- 
1.6.0.2




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

* Re: [PATCH] multimedia:;Add media contents to rootfs
  2010-03-12 21:39 [PATCH] multimedia:;Add media contents to rootfs Ulf Samuelsson
@ 2010-03-13 10:29 ` Koen Kooi
  2010-03-13 12:16   ` Ulf Samuelsson
  0 siblings, 1 reply; 7+ messages in thread
From: Koen Kooi @ 2010-03-13 10:29 UTC (permalink / raw)
  To: openembedded-devel

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

On 12-03-10 22:39, Ulf Samuelsson wrote:
> 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.
> 
> Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>


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



> ---
>  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
> 
> 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
> 
> diff --git a/recipes/multimedia/multimedia_0.1.bb b/recipes/multimedia/multimedia_0.1.bb
> new file mode 100644
> index 0000000..5776059
> --- /dev/null
> +++ b/recipes/multimedia/multimedia_0.1.bb
> @@ -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}"

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

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




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

* Re: [PATCH] multimedia:;Add media contents to rootfs
  2010-03-13 10:29 ` Koen Kooi
@ 2010-03-13 12:16   ` Ulf Samuelsson
  2010-03-13 15:55     ` Marcin Juszkiewicz
  2010-03-14 12:42     ` Koen Kooi
  0 siblings, 2 replies; 7+ messages in thread
From: Ulf Samuelsson @ 2010-03-13 12:16 UTC (permalink / raw)
  To: openembedded-devel

Koen Kooi skrev:
> On 12-03-10 22:39, Ulf Samuelsson wrote:
>> 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.
> 
>> Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
> 
> 
> 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" ?

-- 
Best Regards
Ulf Samuelsson




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

* Re: [PATCH] multimedia:;Add media contents to rootfs
  2010-03-13 12:16   ` Ulf Samuelsson
@ 2010-03-13 15:55     ` Marcin Juszkiewicz
  2010-03-14 12:42     ` Koen Kooi
  1 sibling, 0 replies; 7+ messages in thread
From: Marcin Juszkiewicz @ 2010-03-13 15:55 UTC (permalink / raw)
  To: openembedded-devel

Dnia sobota, 13 marca 2010 o 13:16:07 Ulf Samuelsson napisał(a):
> > 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.
 
> 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, 
-- 
JID:      hrw@jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz





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

* Re: [PATCH] multimedia:;Add media contents to rootfs
  2010-03-13 12:16   ` Ulf Samuelsson
  2010-03-13 15:55     ` Marcin Juszkiewicz
@ 2010-03-14 12:42     ` Koen Kooi
  2010-03-14 12:53       ` Ulf Samuelsson
  1 sibling, 1 reply; 7+ messages in thread
From: Koen Kooi @ 2010-03-14 12:42 UTC (permalink / raw)
  To: openembedded-devel

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

On 13-03-10 13:16, Ulf Samuelsson wrote:
> Koen Kooi skrev:
>> On 12-03-10 22:39, Ulf Samuelsson wrote:
>>> 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.
>>
>>> Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
>>
>>
>> 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.

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-----




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

* Re: [PATCH] multimedia:;Add media contents to rootfs
  2010-03-14 12:42     ` Koen Kooi
@ 2010-03-14 12:53       ` Ulf Samuelsson
  0 siblings, 0 replies; 7+ messages in thread
From: Ulf Samuelsson @ 2010-03-14 12:53 UTC (permalink / raw)
  To: openembedded-devel

Koen Kooi skrev:
> On 13-03-10 13:16, Ulf Samuelsson wrote:
>> Koen Kooi skrev:
>>> On 12-03-10 22:39, Ulf Samuelsson wrote:
>>>> 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.
>>>> Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
>>>
>>> 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.
> 
> 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
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


-- 
Best Regards
Ulf Samuelsson




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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-12 21:39 [PATCH] multimedia:;Add media contents to rootfs Ulf Samuelsson
2010-03-13 10:29 ` Koen Kooi
2010-03-13 12:16   ` Ulf Samuelsson
2010-03-13 15:55     ` Marcin Juszkiewicz
2010-03-14 12:42     ` Koen Kooi
2010-03-14 12:53       ` Ulf Samuelsson
  -- strict thread matches above, loose matches on Subject: below --
2010-03-12 22:26 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.