omxplayer: Update to HEAD and tweak SUMMARY and DESCRIPTION
PATCH 1/4 omxplayer: Update to HEAD and tweak SUMMARY and DESCRIPTION
* Update to current git HEAD commit which includes fix for boost 1.55.
* Replace tabs by spaces
* Tweak SUMMARY and DESCRIPTION
* Add bash to PN RDEPENDS as omxplayer is actually a bash script.
* omxplayer is a bash script - add RDEPENDS and fix mktemp inside
--- .../omxplayer/mktemp-compatible-with-busybox.patch | 23 ++++++++++++++++ recipes-multimedia/omxplayer/omxplayer_git.bb | 31 ++++++++++++---------- 2 files changed, 40 insertions(+), 14 deletions(-) create mode 100644 recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch
recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch new file +23 -0
@@ -0,0 +1,23 @@ +Busybox has a restriction in temp file name. From documentation: +Create a temporary file with name based on TEMPLATE and print its name. +TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX). + +Use 6 x 'X' to be busybox compatible too. + +Signed-off-by: Andrei Gherzan <[email protected]> + +Index: git/omxplayer +=================================================================== +--- git.orig/omxplayer ++++ git/omxplayer +@@ -43,8 +43,8 @@ if [ -z $NOREFRESH ] || [ "$NOREFRESH" = + fi + fi + +-OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXX` +-OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXX` ++OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXXX` ++OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXXX` + + exec 5> $OMXPLAYER_DBUS_ADDR + exec 6> $OMXPLAYER_DBUS_PID
recipes-multimedia/omxplayer/omxplayer_git.bb +17 -14
@@ -1,20 +1,21 @@ -DESCRIPTION = "OMXPlayer is a commandline OMX player for the Raspberry Pi" +SUMMARY = "A commandline OMX player for the Raspberry Pi" +DESCRIPTION = "This player was developed as a testbed for the XBMC \ +Raspberry PI implementation and is quite handy to use standalone" HOMEPAGE = "https://github.com/popcornmix/omxplayer" SECTION = "console/utils" -LICENSE = "GPLv2" +LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" DEPENDS = "libpcre libav virtual/egl boost freetype dbus" +PR = "r2" -PR = "r1" - -SRCREV = "c0dd9502ed2c43c487674939195c69680f3d98b0" - +SRCREV = "74f4be222be05d3ea50be9f5a70846f7c0e9df6e" SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ - file://0003-Remove-strip-step-in-Makefile.patch" + file://0003-Remove-strip-step-in-Makefile.patch \ + file://mktemp-compatible-with-busybox.patch" S = "${WORKDIR}/git" COMPATIBLE_MACHINE = "raspberrypi"
@@ -46,17 +47,17 @@ export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \ export DIST = "${D}" do_compile() { - # Needed for compiler test in ffmpeg's configure - mkdir -p tmp + # Needed for compiler test in ffmpeg's configure + mkdir -p tmp - oe_runmake ffmpeg - oe_runmake + oe_runmake ffmpeg + oe_runmake } do_install() { - oe_runmake dist - mkdir -p ${D}/usr/share/fonts/truetype/freefont/ - install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ + oe_runmake dist + mkdir -p ${D}/usr/share/fonts/truetype/freefont/ + install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ } FILES_${PN} = "${bindir}/omxplayer* \
@@ -64,3 +65,5 @@ FILES_${PN} = "${bindir}/omxplayer* \ /usr/share/fonts" FILES_${PN}-dev += "${libdir}/omxplayer/*.so" + +RDEPENDS_${PN} += "bash"
Signature · 1 line
1.8.1.4
PATCH 2/4 packagegroup-rpi-test: Add test packagegroup
--- recipes-core/packagegroups/packagegroup-rpi-test.bb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 recipes-core/packagegroups/packagegroup-rpi-test.bb
recipes-core/packagegroups/packagegroup-rpi-test.bb new file +17 -0
@@ -0,0 +1,17 @@ +DESCRIPTION = "RaspberryPi Test Packagegroup" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" + +inherit packagegroup + +RDEPENDS_${PN} = "\ + omxplayer \ + bcm2835 \ + wiringpi \ +" + +RRECOMMENDS_${PN} = "\ + bigbuckbunny-1080p \ + bigbuckbunny-480p \ + bigbuckbunny-720p \ +"
Signature · 1 line
1.8.1.4
PATCH 3/4 rpi-test-image: Add test image
In reply to Andrei Gherzan--- recipes-core/images/rpi-test-image.bb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 recipes-core/images/rpi-test-image.bb
recipes-core/images/rpi-test-image.bb new file +4 -0
@@ -0,0 +1,4 @@ +# Base this image on rpi-basic-image +include rpi-basic-image.bb + +IMAGE_INSTALL_append = " packagegroup-rpi-test"
Signature · 1 line
1.8.1.4
PATCH 4/4 README: Cleanup and add info about images
In reply to Andrei Gherzan--- README | 58 +++++++++++++++++++++------------------------------------- 1 file changed, 21 insertions(+), 37 deletions(-)
README +21 -37
@@ -27,13 +27,15 @@ Contents: ========= -1. OpenEmbedded BSP Layer - RaspberryPi +1. Description 2. Yocto BSP Layer - RaspberryPi 2.A. Compressed deployed files 2.B. GPU memory 2.C. Add purchased license codecs 2.D. Disable overscan 2.E. Set overclocking options + 2.F. Optional - Video camera support with V4L2 drivers + 2.G. Images 3. Extra apps 3.A. omxplayer 4. Source code and mirrors
@@ -44,54 +46,20 @@ Contents: 6. Maintainers - -1. OpenEmbedded BSP Layer - RaspberryPi -======================================= +1. Description +============== This is the general hardware specific BSP overlay for the RaspberryPi device. -It should be used with openembedded-core (not old-style org.openembedded.dev). More information can be found at: - http://www.raspberrypi.org/ (Official Site) - http://www.distant-earth.com/ (My Site) - -Build scripts patched to support making a firmware image for the RaspberryPi -with Angstrom can be found at: - - http://github.com/Angstrom-distribution/setup-scripts - -When not depending on meta-openembedded and not using systemd, you may need to -mask few recipes requiring systemd or other recipes not included in your -distribution of choice. - -You can achieve this by adding something like the following to local.conf: - -BBMASK = "meta-raspberrypi/recipes-multimedia/libav|\ -meta-raspberrypi/recipes-core/systemd" - -You can adjust the BBMASK for any .bbappends that your distribution does not -contain recipes for. The core BSP part of meta-raspberrypi should work with different OpenEmbedded/Yocto distributions and layer stacks, such as: - * Distro-less (only with OE-Core). * Angstrom (main focus of testing). * Yocto/Poky. -This layer in its entirety depends on: - -URI: git://git.openembedded.org/openembedded-core -branch: master -revision: HEAD - -URI: git://git.openembedded.org/meta-openembedded -branch: master -revision: HEAD - - - 2. Yocto BSP Layer - RaspberryPi ================================
@@ -101,6 +69,11 @@ URI: git://git.yoctoproject.org/poky branch: master revision: HEAD +URI: git://github.com/openembedded/meta-oe.git +layers: meta-multimedia +branch: master +revision: HEAD + How to use it: 1. source poky/oe-init-build-env rpi-build
@@ -159,9 +132,20 @@ SDRAM_FREQ = "500" OVER_VOLTAGE = "6" 2.F. Optional - Video camera support with V4L2 drivers +====================================================== Set this variable to enable support for the video camera (Linux 3.12.4+ required) VIDEO_CAMERA = "1" +2.G. Images +=========== +* rpi-hwup-image + Hardware up image +* rpi-basic-image + Based on rpi-hwup-image with some added features (ex: splash) +* rpi-test-image + Image based on rpi-basic-image which includes most of the packages in this + layer and some media samples. + 3. Extra apps =============
Signature · 1 line
1.8.1.4
Quoted 108 lines · Andrei Gherzan
* Update to current git HEAD commit which includes fix for boost 1.55.
* Replace tabs by spaces
* Tweak SUMMARY and DESCRIPTION
* Add bash to PN RDEPENDS as omxplayer is actually a bash script.
* omxplayer is a bash script - add RDEPENDS and fix mktemp insideChange-Id I5c8a4cf1005ba49f9b01821e3f832d1da49869bcSigned-off-by Andrei Gherzan <[email protected]>--- .../omxplayer/mktemp-compatible-with-busybox.patch | 23 ++++++++++++++++ recipes-multimedia/omxplayer/omxplayer_git.bb | 31 ++++++++++++---------- 2 files changed, 40 insertions(+), 14 deletions(-) create mode 100644 recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patchrecipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch new file +23
-0@@ -0,0 +1,23 @@ +Busybox has a restriction in temp file name. From documentation: +Create a temporary file with name based on TEMPLATE and print its name. +TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX). + +Use 6 x 'X' to be busybox compatible too. + +Signed-off-by: Andrei Gherzan <[email protected]> + +Index: git/omxplayer +=================================================================== +--- git.orig/omxplayer ++++ git/omxplayer +@@ -43,8 +43,8 @@ if [ -z $NOREFRESH ] || [ "$NOREFRESH" = + fi + fi + +-OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXX` +-OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXX` ++OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXXX` ++OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXXX` + + exec 5> $OMXPLAYER_DBUS_ADDR + exec 6> $OMXPLAYER_DBUS_PIDrecipes-multimedia/omxplayer/omxplayer_git.bb +17
-15@@ -1,20 +1,21 @@ -DESCRIPTION = "OMXPlayer is a commandline OMX player for the Raspberry Pi" +SUMMARY = "A commandline OMX player for the Raspberry Pi" +DESCRIPTION = "This player was developed as a testbed for the XBMC \ +Raspberry PI implementation and is quite handy to use standalone" HOMEPAGE = "https://github.com/popcornmix/omxplayer" SECTION = "console/utils" -LICENSE = "GPLv2" +LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" DEPENDS = "libpcre libav virtual/egl boost freetype dbus" +PR = "r2" -PR = "r1" - -SRCREV = "c0dd9502ed2c43c487674939195c69680f3d98b0" - +SRCREV = "74f4be222be05d3ea50be9f5a70846f7c0e9df6e" SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ - file://0003-Remove-strip-step-in-Makefile.patch" + file://0003-Remove-strip-step-in-Makefile.patch \ + file://mktemp-compatible-with-busybox.patch" S = "${WORKDIR}/git" COMPATIBLE_MACHINE = "raspberrypi"@@ -46,17 +47,17 @@ export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \ export DIST = "${D}" do_compile() { - # Needed for compiler test in ffmpeg's configure - mkdir -p tmp + # Needed for compiler test in ffmpeg's configure + mkdir -p tmp - oe_runmake ffmpeg - oe_runmake + oe_runmake ffmpeg + oe_runmake } do_install() { - oe_runmake dist - mkdir -p ${D}/usr/share/fonts/truetype/freefont/ - install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ + oe_runmake dist + mkdir -p ${D}/usr/share/fonts/truetype/freefont/ + install ${S}/fonts/* ${D}/usr/share/fonts/truetype/freefont/ } FILES_${PN} = "${bindir}/omxplayer* \@@ -64,3 +65,5 @@ FILES_${PN} = "${bindir}/omxplayer* \ /usr/share/fonts" FILES_${PN}-dev += "${libdir}/omxplayer/*.so" + +RDEPENDS_${PN} += "bash" --
Quoted 2 lines
1.8.1.4
Merged the series.
--
Andrei Gherzan
m: +40.744.478.414 | f: +40.31.816.28.12