All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x264: add textrel to INSANE_SKIP
@ 2016-09-21  9:42 Sujith H
  2016-09-26  6:09 ` sujith h
  0 siblings, 1 reply; 3+ messages in thread
From: Sujith H @ 2016-09-21  9:42 UTC (permalink / raw)
  To: openembedded-core; +Cc: Sujith Haridasan

From: Fahad Usman <fahad_usman@mentor.com>

Tried by adding CFLAGS_append = " -fpic " to
the recipe. But that couldn't help resolve the
warning message:

x264/r2491+gitAUTOINC+c8a773ebfc-r0/packages-split/x264/usr/lib/libx264.so.144' has relocations in .text [textrel]

It was found that this warning is emitted because of the
assembly files in the source code. And it is not easy to
get rid of TEXTREL's which are coming from the assembly
source files.

Adding textrel to INSANE_SKIP resolves this issue.
This issue was observed in cyclone5 and imx6qsabresd BSP's.
So generalizing the patch.

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
---
 meta/recipes-multimedia/x264/x264_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-multimedia/x264/x264_git.bb b/meta/recipes-multimedia/x264/x264_git.bb
index fa44f9c..393310f 100644
--- a/meta/recipes-multimedia/x264/x264_git.bb
+++ b/meta/recipes-multimedia/x264/x264_git.bb
@@ -48,6 +48,6 @@ do_install() {
     oe_runmake install DESTDIR=${D}
 }
 
-# PIC can't be enabled for 32-bit x86
-INSANE_SKIP_${PN}_append_x86 = " textrel"
+# PIC can't be enabled for few BSP's
+INSANE_SKIP_${PN}_append = " textrel"
 
-- 
1.9.1



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

* Re: [PATCH] x264: add textrel to INSANE_SKIP
  2016-09-21  9:42 [PATCH] x264: add textrel to INSANE_SKIP Sujith H
@ 2016-09-26  6:09 ` sujith h
  2016-09-26  9:31   ` sujith h
  0 siblings, 1 reply; 3+ messages in thread
From: sujith h @ 2016-09-26  6:09 UTC (permalink / raw)
  To: OE-core; +Cc: Sujith Haridasan

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

Hi,

Let me know if this patch is ok. Else I can help make this patch better.

Thanks,
Sujith H

On Wed, Sep 21, 2016 at 3:12 PM, Sujith H <sujith.h@gmail.com> wrote:

> From: Fahad Usman <fahad_usman@mentor.com>
>
> Tried by adding CFLAGS_append = " -fpic " to
> the recipe. But that couldn't help resolve the
> warning message:
>
> x264/r2491+gitAUTOINC+c8a773ebfc-r0/packages-split/x264/usr/lib/libx264.so.144'
> has relocations in .text [textrel]
>
> It was found that this warning is emitted because of the
> assembly files in the source code. And it is not easy to
> get rid of TEXTREL's which are coming from the assembly
> source files.
>
> Adding textrel to INSANE_SKIP resolves this issue.
> This issue was observed in cyclone5 and imx6qsabresd BSP's.
> So generalizing the patch.
>
> Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
> Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
> ---
>  meta/recipes-multimedia/x264/x264_git.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-multimedia/x264/x264_git.bb
> b/meta/recipes-multimedia/x264/x264_git.bb
> index fa44f9c..393310f 100644
> --- a/meta/recipes-multimedia/x264/x264_git.bb
> +++ b/meta/recipes-multimedia/x264/x264_git.bb
> @@ -48,6 +48,6 @@ do_install() {
>      oe_runmake install DESTDIR=${D}
>  }
>
> -# PIC can't be enabled for 32-bit x86
> -INSANE_SKIP_${PN}_append_x86 = " textrel"
> +# PIC can't be enabled for few BSP's
> +INSANE_SKIP_${PN}_append = " textrel"
>
> --
> 1.9.1
>
>


-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
<Project>Contributor to Yocto project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
C-x C-c

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

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

* Re: [PATCH] x264: add textrel to INSANE_SKIP
  2016-09-26  6:09 ` sujith h
@ 2016-09-26  9:31   ` sujith h
  0 siblings, 0 replies; 3+ messages in thread
From: sujith h @ 2016-09-26  9:31 UTC (permalink / raw)
  To: OE-core; +Cc: Sujith Haridasan

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

On Mon, Sep 26, 2016 at 11:39 AM, sujith h <sujith.h@gmail.com> wrote:

> Hi,
>
> Let me know if this patch is ok. Else I can help make this patch better.
>

oops, sorry for my earlier mail. This patch is merged :
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=aa7f7b63485b8c4d33491b9cd467fc4487a281c7

>
> Thanks,
> Sujith H
>
> On Wed, Sep 21, 2016 at 3:12 PM, Sujith H <sujith.h@gmail.com> wrote:
>
>> From: Fahad Usman <fahad_usman@mentor.com>
>>
>> Tried by adding CFLAGS_append = " -fpic " to
>> the recipe. But that couldn't help resolve the
>> warning message:
>>
>> x264/r2491+gitAUTOINC+c8a773ebfc-r0/packages-split/x264/usr/lib/libx264.so.144'
>> has relocations in .text [textrel]
>>
>> It was found that this warning is emitted because of the
>> assembly files in the source code. And it is not easy to
>> get rid of TEXTREL's which are coming from the assembly
>> source files.
>>
>> Adding textrel to INSANE_SKIP resolves this issue.
>> This issue was observed in cyclone5 and imx6qsabresd BSP's.
>> So generalizing the patch.
>>
>> Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
>> Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com>
>> ---
>>  meta/recipes-multimedia/x264/x264_git.bb | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-multimedia/x264/x264_git.bb
>> b/meta/recipes-multimedia/x264/x264_git.bb
>> index fa44f9c..393310f 100644
>> --- a/meta/recipes-multimedia/x264/x264_git.bb
>> +++ b/meta/recipes-multimedia/x264/x264_git.bb
>> @@ -48,6 +48,6 @@ do_install() {
>>      oe_runmake install DESTDIR=${D}
>>  }
>>
>> -# PIC can't be enabled for 32-bit x86
>> -INSANE_SKIP_${PN}_append_x86 = " textrel"
>> +# PIC can't be enabled for few BSP's
>> +INSANE_SKIP_${PN}_append = " textrel"
>>
>> --
>> 1.9.1
>>
>>
>
>
> --
> സുജിത് ഹരിദാസന്
> Bangalore
> <Project>Contributor to KDE project
> <Project>Contributor to Yocto project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info
> C-x C-c
>



-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
<Project>Contributor to Yocto project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
C-x C-c

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

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

end of thread, other threads:[~2016-09-26  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-21  9:42 [PATCH] x264: add textrel to INSANE_SKIP Sujith H
2016-09-26  6:09 ` sujith h
2016-09-26  9:31   ` sujith h

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.