All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH 1/2] omxplayer: Add patch to fix lflags and cflags
@ 2015-01-25 18:31 Andrei Gherzan
  2015-01-25 18:31 ` [meta-raspberrypi][PATCH 2/2] omxplayer: Minor tweaks Andrei Gherzan
  2015-01-25 18:36 ` [meta-raspberrypi][PATCH 1/2] omxplayer: Add patch to fix lflags and cflags Andrei Gherzan
  0 siblings, 2 replies; 3+ messages in thread
From: Andrei Gherzan @ 2015-01-25 18:31 UTC (permalink / raw)
  To: yocto

This patch fixes the following package build break:
| arm-poky-linux-gnueabi-gcc is unable to create an executable file.
| C compiler test failed.

Change-Id: I9f0bf47e4bf969a793718e915fc6c5f4eab012bb
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 ...PEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch | 31 ++++++++++++++++++++++
 recipes-multimedia/omxplayer/omxplayer_git.bb      |  3 +++
 2 files changed, 34 insertions(+)
 create mode 100644 recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch

diff --git a/recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch b/recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch
new file mode 100644
index 0000000..edb388e
--- /dev/null
+++ b/recipes-multimedia/omxplayer/omxplayer/0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch
@@ -0,0 +1,31 @@
+From 100982ee1fc1cb571c7453d14f9acd60e67d4765 Mon Sep 17 00:00:00 2001
+From: Andrei Gherzan <andrei.gherzan@windriver.com>
+Date: Sun, 25 Jan 2015 11:13:51 +0200
+Subject: [PATCH] Add FFMPEG_EXTRA_CFLAGS and FFMPEG_EXTRA_LDFLAGS
+
+In this way we can inject flags to LD and CC using
+--extra-cflags and --extra-ldflags.
+
+Upstream-Status: Inappropriate [embedded specific]
+Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
+---
+ Makefile.ffmpeg | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.ffmpeg b/Makefile.ffmpeg
+index abe4b26..c9d42d7 100644
+--- a/Makefile.ffmpeg
++++ b/Makefile.ffmpeg
+@@ -22,7 +22,8 @@ configure:
+ 	CFLAGS="$(CFLAGS) ${INCLUDES}" \
+ 	LDFLAGS="" \
+   ./configure \
+-			--extra-cflags="-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog" \
++			--extra-cflags="-mfpu=vfp -mfloat-abi=$(FLOAT) -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog $(FFMPEG_EXTRA_CFLAGS)" \
++			--extra-ldflags="$(FFMPEG_EXTRA_LDFLAGS)" \
+ 			--enable-cross-compile \
+ 			--enable-shared \
+ 			--disable-static \
+-- 
+2.1.0
+
diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb
index 8f346f5..2c8e4b5 100644
--- a/recipes-multimedia/omxplayer/omxplayer_git.bb
+++ b/recipes-multimedia/omxplayer/omxplayer_git.bb
@@ -15,6 +15,7 @@ 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://0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch \
            file://fix-tar-command-with-DIST.patch \
            "
 S = "${WORKDIR}/git"
@@ -30,6 +31,8 @@ export TEMPDIR = "${S}/tmp"
 export HOST = "${HOST_SYS}"
 export WORK = "${S}"
 export FLOAT = "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "hard", "softfp", d)}"
+export FFMPEG_EXTRA_CFLAGS  = "--sysroot=${STAGING_DIR_TARGET}"
+export FFMPEG_EXTRA_LDFLAGS = "--sysroot=${STAGING_DIR_TARGET}"
 
 export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \
                   -L${STAGING_DIR_HOST}/lib \
-- 
2.1.0



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

* [meta-raspberrypi][PATCH 2/2] omxplayer: Minor tweaks
  2015-01-25 18:31 [meta-raspberrypi][PATCH 1/2] omxplayer: Add patch to fix lflags and cflags Andrei Gherzan
@ 2015-01-25 18:31 ` Andrei Gherzan
  2015-01-25 18:36 ` [meta-raspberrypi][PATCH 1/2] omxplayer: Add patch to fix lflags and cflags Andrei Gherzan
  1 sibling, 0 replies; 3+ messages in thread
From: Andrei Gherzan @ 2015-01-25 18:31 UTC (permalink / raw)
  To: yocto

Change-Id: Ic88656f2efba3d976918a4c556931b294bd00ed5
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 recipes-multimedia/omxplayer/omxplayer_git.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/recipes-multimedia/omxplayer/omxplayer_git.bb b/recipes-multimedia/omxplayer/omxplayer_git.bb
index 2c8e4b5..41ef339 100644
--- a/recipes-multimedia/omxplayer/omxplayer_git.bb
+++ b/recipes-multimedia/omxplayer/omxplayer_git.bb
@@ -34,11 +34,11 @@ export FLOAT = "${@bb.utils.contains("TUNE_FEATURES", "callconvention-hard", "ha
 export FFMPEG_EXTRA_CFLAGS  = "--sysroot=${STAGING_DIR_TARGET}"
 export FFMPEG_EXTRA_LDFLAGS = "--sysroot=${STAGING_DIR_TARGET}"
 
+# Needed in top Makefile
 export LDFLAGS = "-L${S}/ffmpeg_compiled/usr/lib \
                   -L${STAGING_DIR_HOST}/lib \
                   -L${STAGING_DIR_HOST}/usr/lib \
                  "
-
 export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \
                    -isystem${STAGING_DIR_HOST}/usr/include/interface/vcos/pthreads \
                    -isystem${STAGING_DIR_HOST}/usr/include/freetype2 \
@@ -46,8 +46,6 @@ export INCLUDES = "-isystem${STAGING_DIR_HOST}/usr/include \
                    -isystem${STAGING_DIR_HOST}/usr/include/dbus-1.0 \
                    -isystem${STAGING_DIR_HOST}/usr/lib/dbus-1.0/include \
                   "
-
-# Install in ${D}
 export DIST = "${D}"
 
 do_compile() {
-- 
2.1.0



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

* Re: [meta-raspberrypi][PATCH 1/2] omxplayer: Add patch to fix lflags and cflags
  2015-01-25 18:31 [meta-raspberrypi][PATCH 1/2] omxplayer: Add patch to fix lflags and cflags Andrei Gherzan
  2015-01-25 18:31 ` [meta-raspberrypi][PATCH 2/2] omxplayer: Minor tweaks Andrei Gherzan
@ 2015-01-25 18:36 ` Andrei Gherzan
  1 sibling, 0 replies; 3+ messages in thread
From: Andrei Gherzan @ 2015-01-25 18:36 UTC (permalink / raw)
  To: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

On Sun, Jan 25, 2015 at 8:31 PM, Andrei Gherzan <andrei@gherzan.ro> wrote:

> This patch fixes the following package build break:
> | arm-poky-linux-gnueabi-gcc is unable to create an executable file.
> | C compiler test failed.


Both patches merged.


-- 
*Andrei Gherzan*

[-- Attachment #2: Type: text/html, Size: 873 bytes --]

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

end of thread, other threads:[~2015-01-25 18:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-25 18:31 [meta-raspberrypi][PATCH 1/2] omxplayer: Add patch to fix lflags and cflags Andrei Gherzan
2015-01-25 18:31 ` [meta-raspberrypi][PATCH 2/2] omxplayer: Minor tweaks Andrei Gherzan
2015-01-25 18:36 ` [meta-raspberrypi][PATCH 1/2] omxplayer: Add patch to fix lflags and cflags Andrei Gherzan

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.