* [Buildroot] [PATCH] ffmpeg: fix build for xtensa
@ 2013-12-24 18:37 Baruch Siach
2013-12-25 9:07 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2013-12-24 18:37 UTC (permalink / raw)
To: buildroot
The ffmpeg package generates libraries that are too large for the xtensa
default placement of literals in a dedicated section. Use
-mtext-section-literal to place literals in the text section.
Fixes
http://autobuild.buildroot.net/results/606/60670d35f16c3b8fe19debf7f8e40a046a579520/
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
package/ffmpeg/ffmpeg.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index 6685110..11703e3 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -21,6 +21,10 @@ FFMPEG_CONF_OPT = \
--disable-avfilter \
$(if $(BR2_HAVE_DOCUMENTATION),,--disable-doc)
+ifeq ($(BR2_xtensa),y)
+FFMPEG_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mtext-section-literals"
+endif
+
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
FFMPEG_CONF_OPT += --enable-gpl
else
--
1.8.5.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] ffmpeg: fix build for xtensa
2013-12-24 18:37 [Buildroot] [PATCH] ffmpeg: fix build for xtensa Baruch Siach
@ 2013-12-25 9:07 ` Thomas Petazzoni
2013-12-25 9:12 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2013-12-25 9:07 UTC (permalink / raw)
To: buildroot
Dear Baruch Siach,
On Tue, 24 Dec 2013 20:37:46 +0200, Baruch Siach wrote:
> The ffmpeg package generates libraries that are too large for the xtensa
> default placement of literals in a dedicated section. Use
> -mtext-section-literal to place literals in the text section.
>
> Fixes
> http://autobuild.buildroot.net/results/606/60670d35f16c3b8fe19debf7f8e40a046a579520/
>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> package/ffmpeg/ffmpeg.mk | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
> index 6685110..11703e3 100644
> --- a/package/ffmpeg/ffmpeg.mk
> +++ b/package/ffmpeg/ffmpeg.mk
> @@ -21,6 +21,10 @@ FFMPEG_CONF_OPT = \
> --disable-avfilter \
> $(if $(BR2_HAVE_DOCUMENTATION),,--disable-doc)
>
> +ifeq ($(BR2_xtensa),y)
> +FFMPEG_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mtext-section-literals"
> +endif
Thanks, but to prevent future mistakes, could you provide a slightly
different version that does:
FFMPEG_CFLAGS = $(TARGET_CFLAGS)
ifeq ($(BR2_xtensa),y)
FFMPEG_CFLAGS += -mtext-section-literals
endif
FFMPEG_CONF_ENV = CFLAGS="$(FFMPEG_CFLAGS)"
This is a little bit better than your version in that we can add things
to CFLAGS in other places in ffmpeg.mk.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] ffmpeg: fix build for xtensa
2013-12-25 9:07 ` Thomas Petazzoni
@ 2013-12-25 9:12 ` Baruch Siach
0 siblings, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2013-12-25 9:12 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Wed, Dec 25, 2013 at 10:07:15AM +0100, Thomas Petazzoni wrote:
> On Tue, 24 Dec 2013 20:37:46 +0200, Baruch Siach wrote:
> > +ifeq ($(BR2_xtensa),y)
> > +FFMPEG_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mtext-section-literals"
> > +endif
>
> Thanks, but to prevent future mistakes, could you provide a slightly
> different version that does:
>
> FFMPEG_CFLAGS = $(TARGET_CFLAGS)
>
> ifeq ($(BR2_xtensa),y)
> FFMPEG_CFLAGS += -mtext-section-literals
> endif
>
> FFMPEG_CONF_ENV = CFLAGS="$(FFMPEG_CFLAGS)"
>
> This is a little bit better than your version in that we can add things
> to CFLAGS in other places in ffmpeg.mk.
Will do.
Thanks for reviewing.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-25 9:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-24 18:37 [Buildroot] [PATCH] ffmpeg: fix build for xtensa Baruch Siach
2013-12-25 9:07 ` Thomas Petazzoni
2013-12-25 9:12 ` Baruch Siach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox