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 <[email protected]> --- 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?-...@z03bjce}digv+llz1pcaibrdvir<61U z(g&0hL?8j6G-*F=sE|@fLNkjR-2x^Ik_Ts_))s...@w5~jiu45mla9=&!C73{3N630 Y^gyx_&qup?$...@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 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
