summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2014-08-24 03:04:52 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2014-08-24 03:04:54 +0200
commit6b63f6fcbdbde1694d55e314b86fadaa74dc858a (patch)
treeaec74e763142a4539859aa46ff2349956630c8da
parentec36d853d8f6e5c147058b4f710309f2edae45eb (diff)
downloadmeta-raspberrypi-6b63f6fcbdbde1694d55e314b86fadaa74dc858a.tar.gz
omxplayer: Update to remote's HEAD
Cleanup and rebase patches. Change-Id: I151fa6b067a66ac6de9eed920f7e16a08a157e17 Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--recipes-graphics/userland/userland_git.bb2
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch25
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch28
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch23
-rw-r--r--recipes-multimedia/omxplayer/omxplayer/remove-makefile-include.patch69
-rw-r--r--recipes-multimedia/omxplayer/omxplayer_git.bb2
6 files changed, 30 insertions, 119 deletions
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb
index 7fb7ebb..77c98d7 100644
--- a/recipes-graphics/userland/userland_git.bb
+++ b/recipes-graphics/userland/userland_git.bb
@@ -13,7 +13,7 @@ COMPATIBLE_MACHINE = "raspberrypi"
13 13
14SRCBRANCH = "master" 14SRCBRANCH = "master"
15SRCFORK = "raspberrypi" 15SRCFORK = "raspberrypi"
16SRCREV = "eccb81050afd177da1923404b366c6226f29bfe0" 16SRCREV = "85441185e653347e6b3c2bbc7494f5e29a6ca4a2"
17 17
18SRC_URI = "git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \ 18SRC_URI = "git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
19 " 19 "
diff --git a/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch b/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch
index 9bc137f..366772e 100644
--- a/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch
@@ -1,23 +1,22 @@
1From 13b525667a6ab7af2354ffd6208e490349669798 Mon Sep 17 00:00:00 2001 1From 1e92da659375eae1622984d4cc0ffd2a7b082fcf Mon Sep 17 00:00:00 2001
2From: Andrei Gherzan <andrei@gherzan.ro> 2From: Andrei Gherzan <andrei@gherzan.ro>
3Date: Tue, 20 Aug 2013 16:15:15 +0300 3Date: Sun, 24 Aug 2014 00:13:13 +0200
4Subject: [PATCH 2/3] Libraries and headers from ffmpeg are installed in /usr. 4Subject: [PATCH] Libraries and headers from ffmpeg are installed in /usr.
5 5
6Don't search for libraries and headers in /usr/local. 6Don't search for libraries and headers in /usr/local.
7 7
8Upstream-Status: Inappropriate [embedded specific] 8Upstream-Status: Inappropriate [embedded specific]
9Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> 9Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
10
11--- 10---
12 Makefile | 6 +++--- 11 Makefile | 6 +++---
13 Makefile.ffmpeg | 2 +- 12 Makefile.ffmpeg | 2 +-
14 2 files changed, 4 insertions(+), 4 deletions(-) 13 2 files changed, 4 insertions(+), 4 deletions(-)
15 14
16diff --git a/Makefile b/Makefile 15diff --git a/Makefile b/Makefile
17index 87cb775..abe9923 100644 16index 38e1400..1b15999 100644
18--- a/Makefile 17--- a/Makefile
19+++ b/Makefile 18+++ b/Makefile
20@@ -2,9 +2,9 @@ include Makefile.include 19@@ -1,9 +1,9 @@
21 20
22 CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST 21 CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST
23 22
@@ -25,28 +24,28 @@ index 87cb775..abe9923 100644
25+LDFLAGS+=-L./ -Lffmpeg_compiled/usr/lib/ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz 24+LDFLAGS+=-L./ -Lffmpeg_compiled/usr/lib/ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz
26 25
27-INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -I /usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include 26-INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -I /usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include
28+INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/include/ -I=/usr/include/dbus-1.0 -I=/usr/lib/arm-linux-gnueabihf/dbus-1.0/include 27+INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/include/ -I=/usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include
29 28
30 DIST ?= omxplayer-dist 29 DIST ?= omxplayer-dist
31 30
32@@ -71,5 +71,5 @@ dist: omxplayer.bin 31@@ -87,5 +87,5 @@ dist: omxplayer.bin omxplayer.1
33 cp omxplayer omxplayer.bin $(DIST)/usr/bin
34 cp COPYING $(DIST)/usr/share/doc/omxplayer 32 cp COPYING $(DIST)/usr/share/doc/omxplayer
35 cp README.md $(DIST)/usr/share/doc/omxplayer/README 33 cp README.md $(DIST)/usr/share/doc/omxplayer/README
34 cp omxplayer.1 $(DIST)/usr/share/man/man1
36- cp -a ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/ 35- cp -a ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/
37+ cp -a ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/ 36+ cp -a ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/
38 cd $(DIST); tar -czf ../$(DIST).tgz * 37 cd $(DIST); tar -czf ../$(DIST).tgz *
39diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg 38diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg
40index c21b2fa..5518680 100644 39index 4d2d720..9d66a85 100644
41--- a/Makefile.ffmpeg 40--- a/Makefile.ffmpeg
42+++ b/Makefile.ffmpeg 41+++ b/Makefile.ffmpeg
43@@ -249,5 +249,5 @@ checkout: 42@@ -256,5 +256,5 @@ checkout:
44 43 .PHONY : install
45 install: 44 install:
46 cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install 45 cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install
47- $(HOST)-strip ffmpeg_compiled/usr/local/lib/*.so 46- $(HOST)-strip ffmpeg_compiled/usr/local/lib/*.so
48+ $(HOST)-strip ffmpeg_compiled/usr/lib/*.so 47+ $(HOST)-strip ffmpeg_compiled/usr/lib/*.so
49 48
50-- 49--
511.8.5.3 501.9.3
52 51
diff --git a/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch b/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch
index d1d3d8f..7f31330 100644
--- a/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch
+++ b/recipes-multimedia/omxplayer/omxplayer/0003-Remove-strip-step-in-Makefile.patch
@@ -1,7 +1,7 @@
1From aa424d5bcbf40c69acb13de3cb6c67688f0c9046 Mon Sep 17 00:00:00 2001 1From b738724c6ca45ee5fecebed01c7ac91c92446123 Mon Sep 17 00:00:00 2001
2From: Andrei Gherzan <andrei@gherzan.ro> 2From: Andrei Gherzan <andrei@gherzan.ro>
3Date: Tue, 20 Aug 2013 16:17:06 +0300 3Date: Sun, 24 Aug 2014 00:18:05 +0200
4Subject: [PATCH 3/3] Remove strip step in Makefile 4Subject: [PATCH] Remove strip step in Makefile
5 5
6Build system will strip binaries so remove strip step in Makefile. 6Build system will strip binaries so remove strip step in Makefile.
7Avoid warnings/errors like: 7Avoid warnings/errors like:
@@ -10,26 +10,30 @@ omxplayer was already stripped, this will prevent future debugging!
10 10
11Upstream-Status: Inappropriate [embedded specific] 11Upstream-Status: Inappropriate [embedded specific]
12Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> 12Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
13 13---
14Updated patch to apply to 0dd9502ed2c43c487674939195c69680f3d98b0 revision 14 Makefile.ffmpeg | 5 ++---
15 1 file changed, 2 insertions(+), 3 deletions(-)
15 16
16diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg 17diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg
17index 5f30b51..e023927 100644 18index 9d66a85..00df197 100644
18--- a/Makefile.ffmpeg 19--- a/Makefile.ffmpeg
19+++ b/Makefile.ffmpeg 20+++ b/Makefile.ffmpeg
20@@ -237,7 +237,8 @@ configure: 21@@ -243,7 +243,8 @@ configure:
21 --disable-decoder=bintext \
22 --disable-decoder=xbin \ 22 --disable-decoder=xbin \
23 --disable-decoder=idf \ 23 --disable-decoder=idf \
24 --enable-decoder=opus \
24- --cross-prefix=$(HOST)- 25- --cross-prefix=$(HOST)-
25+ --cross-prefix=$(HOST)- \ 26+ --cross-prefix=$(HOST)- \
26+ --disable-stripping 27+ --disable-stripping
27 28
29 .PHONY : clean
28 clean: 30 clean:
29 @rm -rf ffmpeg 31@@ -256,5 +257,3 @@ checkout:
30@@ -248,5 +249,4 @@ checkout: 32 .PHONY : install
31
32 install: 33 install:
33 cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install 34 cd ffmpeg; make -j9 DESTDIR="$(WORK)/ffmpeg_compiled" install
34- $(HOST)-strip ffmpeg_compiled/usr/lib/*.so 35- $(HOST)-strip ffmpeg_compiled/usr/lib/*.so
35 36-
37--
381.9.3
39
diff --git a/recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch b/recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch
deleted file mode 100644
index 4e43c7d..0000000
--- a/recipes-multimedia/omxplayer/omxplayer/mktemp-compatible-with-busybox.patch
+++ /dev/null
@@ -1,23 +0,0 @@
1Busybox has a restriction in temp file name. From documentation:
2Create a temporary file with name based on TEMPLATE and print its name.
3TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).
4
5Use 6 x 'X' to be busybox compatible too.
6
7Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
8
9Index: git/omxplayer
10===================================================================
11--- git.orig/omxplayer
12+++ git/omxplayer
13@@ -43,8 +43,8 @@ if [ -z $NOREFRESH ] || [ "$NOREFRESH" =
14 fi
15 fi
16
17-OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXX`
18-OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXX`
19+OMXPLAYER_DBUS_ADDR=`mktemp -t omxplayer-XXXXXX`
20+OMXPLAYER_DBUS_PID=`mktemp -t omxplayer-XXXXXX`
21
22 exec 5> $OMXPLAYER_DBUS_ADDR
23 exec 6> $OMXPLAYER_DBUS_PID
diff --git a/recipes-multimedia/omxplayer/omxplayer/remove-makefile-include.patch b/recipes-multimedia/omxplayer/omxplayer/remove-makefile-include.patch
deleted file mode 100644
index b4f3cd6..0000000
--- a/recipes-multimedia/omxplayer/omxplayer/remove-makefile-include.patch
+++ /dev/null
@@ -1,69 +0,0 @@
1Remove Makefile.include which includes hardcoded paths and rely on
2variables provided by build system.
3
4Upstream-Status: Inappropriate [embedded specific]
5Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
6
7Index: git/Makefile.ffmpeg
8===================================================================
9--- git.orig/Makefile.ffmpeg 2012-08-26 01:04:27.208235775 +0300
10+++ git/Makefile.ffmpeg 2012-08-26 01:05:03.958245731 +0300
11@@ -1,5 +1,3 @@
12-include Makefile.include
13-
14 CFLAGS=-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_HAVE_SBRK -D_LARGEFILE64_SOURCE -DHAVE_CMAKE_CONFIG -DHAVE_VMCS_CONFIG -D_REENTRANT -DUSE_VCHIQ_ARM -DVCHI_BULK_ALIGN=1 -DVCHI_BULK_GRANULARITY=1 -DEGL_SERVER_DISPMANX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__VIDEOCORE4__ -DGRAPHICS_X_VG=1 -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DOMX -DOMX_SKIP64BIT
15
16 WORK=$(PWD)
17Index: git/Makefile
18===================================================================
19--- git.orig/Makefile 2012-08-25 21:46:44.771745783 +0300
20+++ git/Makefile 2012-08-25 21:48:59.220406089 +0300
21@@ -1,5 +1,3 @@
22-include Makefile.include
23-
24 CFLAGS+=-std=c++0x -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST
25
26 LDFLAGS+=-L./ -lc -lWFC -lGLESv2 -lEGL -lbcm_host -lopenmaxil -lfreetype -lz -Lffmpeg_compiled/usr/local/lib/
27Index: git/Makefile.include
28===================================================================
29--- git.orig/Makefile.include 2012-08-25 21:46:44.771745783 +0300
30+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
31@@ -1,38 +0,0 @@
32-USE_BUILDROOT=1
33-FLOAT=hard
34-
35-ifeq ($(USE_BUILDROOT), 1)
36-BUILDROOT :=/opt/xbmc-bcm/buildroot
37-SDKSTAGE :=$(BUILDROOT)/output/staging
38-TARGETFS :=$(BUILDROOT)/output/target
39-TOOLCHAIN :=$(BUILDROOT)/output/host/usr/
40-HOST :=arm-unknown-linux-gnueabi
41-SYSROOT :=$(BUILDROOT)/output/host/usr/arm-unknown-linux-gnueabi/sysroot
42-else
43-BUILDROOT :=/opt/bcm-rootfs
44-SDKSTAGE :=/opt/bcm-rootfs
45-TARGETFS :=/opt/bcm-rootfs
46-TOOLCHAIN :=/usr/local/bcm-gcc
47-HOST :=bcm2708
48-SYSROOT :=$(TOOLCHAIN)/arm-bcm2708-linux-gnueabi/sys-root
49-endif
50-
51-JOBS=7
52-
53-CFLAGS := -isystem$(PREFIX)/include
54-CXXFLAGS := $(CFLAGS)
55-CPPFLAGS := $(CFLAGS)
56-LDFLAGS := -L$(BUILDROOT)/lib
57-LD := $(TOOLCHAIN)/bin/$(HOST)-ld --sysroot=$(SYSROOT)
58-CC := $(TOOLCHAIN)/bin/$(HOST)-gcc --sysroot=$(SYSROOT)
59-CXX := $(TOOLCHAIN)/bin/$(HOST)-g++ --sysroot=$(SYSROOT)
60-OBJDUMP := $(TOOLCHAIN)/bin/$(HOST)-objdump
61-RANLIB := $(TOOLCHAIN)/bin/$(HOST)-ranlib
62-STRIP := $(TOOLCHAIN)/bin/$(HOST)-strip
63-AR := $(TOOLCHAIN)/bin/$(HOST)-ar
64-CXXCP := $(CXX) -E
65-PATH := $(PREFIX)/bin:$(BUILDROOT)/output/host/usr/bin:$(PATH)
66-
67-CFLAGS += -pipe -mfloat-abi=$(FLOAT) -mcpu=arm1176jzf-s -fomit-frame-pointer -mabi=aapcs-linux -mtune=arm1176jzf-s -mfpu=vfp -Wno-psabi -mno-apcs-stack-check -O3 -mstructure-size-boundary=32 -mno-sched-prolog
68-LDFLAGS += -L$(SDKSTAGE)/lib -L$(SDKSTAGE)/usr/lib -L$(SDKSTAGE)/opt/vc/lib/
69-INCLUDES += -isystem$(SDKSTAGE)/usr/include -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SYSROOT)/usr/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -isystem$(SDKSTAGE)/usr/include/freetype2
diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb
index eaadff6..8f346f5 100644
--- a/recipes-multimedia/omxplayer/omxplayer_git.bb
+++ b/recipes-multimedia/omxplayer/omxplayer_git.bb
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
10DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl" 10DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl"
11PR = "r3" 11PR = "r3"
12 12
13SRCREV = "f3221825a92f27c5f49a52200ff933e454977ed2" 13SRCREV = "1817503430b8f195bef12bd7a3542bdd251f8389"
14SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \ 14SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \
15 file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \ 15 file://0001-Remove-Makefile.include-which-includes-hardcoded.patch \
16 file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \ 16 file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \