All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] binutils: add libopcodes package for perf
@ 2020-12-16  7:37 Alan Perry
  2020-12-16 18:27 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Perry @ 2020-12-16  7:37 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alan Perry

Add a package for libopcodes, since, like libbfd, it is needed by
perf. Without separate packages for these libraries, all of the
binutil tools get added as well.

Signed-off-by: Alan Perry <alanp@snowmoose.com>
---
 meta/recipes-devtools/binutils/binutils_2.35.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/binutils/binutils_2.35.bb b/meta/recipes-devtools/binutils/binutils_2.35.bb
index 2e645e1ed8..976e49765a 100644
--- a/meta/recipes-devtools/binutils/binutils_2.35.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.35.bb
@@ -52,9 +52,11 @@ do_install_class-native () {
 	rmdir ${D}/${libdir}64 || :
 }
 
-# Split out libbfd-*.so so including perf doesn't include extra stuff
-PACKAGE_BEFORE_PN += "libbfd"
+# Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include
+# extra stuff
+PACKAGE_BEFORE_PN += "libbfd libopcodes"
 FILES_libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so"
+FILES_libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so"
 
 SRC_URI_append_class-nativesdk =  " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch "
 
-- 
2.17.1


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

* Re: [OE-core] [PATCH] binutils: add libopcodes package for perf
  2020-12-16  7:37 [PATCH] binutils: add libopcodes package for perf Alan Perry
@ 2020-12-16 18:27 ` Khem Raj
  2020-12-16 18:57   ` Alan Perry
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-12-16 18:27 UTC (permalink / raw)
  To: Alan Perry; +Cc: Patches and discussions about the oe-core layer

On Tue, Dec 15, 2020 at 11:38 PM Alan Perry <alanp@snowmoose.com> wrote:
>
> Add a package for libopcodes, since, like libbfd, it is needed by
> perf. Without separate packages for these libraries, all of the
> binutil tools get added as well.
>

libopcodes is not an API that binutils publish for wider consumption,
its meant for internal components and
external components can use it from binutils itself knowing very well
that it will change with binutils and therefore
I would prefer to not separate it out into separate package like this
which can appear as if its an external API
that binutils will respect.

> Signed-off-by: Alan Perry <alanp@snowmoose.com>
> ---
>  meta/recipes-devtools/binutils/binutils_2.35.bb | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-devtools/binutils/binutils_2.35.bb b/meta/recipes-devtools/binutils/binutils_2.35.bb
> index 2e645e1ed8..976e49765a 100644
> --- a/meta/recipes-devtools/binutils/binutils_2.35.bb
> +++ b/meta/recipes-devtools/binutils/binutils_2.35.bb
> @@ -52,9 +52,11 @@ do_install_class-native () {
>         rmdir ${D}/${libdir}64 || :
>  }
>
> -# Split out libbfd-*.so so including perf doesn't include extra stuff
> -PACKAGE_BEFORE_PN += "libbfd"
> +# Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include
> +# extra stuff
> +PACKAGE_BEFORE_PN += "libbfd libopcodes"
>  FILES_libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so"
> +FILES_libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so"
>
>  SRC_URI_append_class-nativesdk =  " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch "
>
> --
> 2.17.1
>
>
> 
>

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

* Re: [OE-core] [PATCH] binutils: add libopcodes package for perf
  2020-12-16 18:27 ` [OE-core] " Khem Raj
@ 2020-12-16 18:57   ` Alan Perry
  2020-12-16 19:00     ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Perry @ 2020-12-16 18:57 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer



On 12/16/20 10:27 AM, Khem Raj wrote:
> On Tue, Dec 15, 2020 at 11:38 PM Alan Perry <alanp@snowmoose.com> wrote:
>> Add a package for libopcodes, since, like libbfd, it is needed by
>> perf. Without separate packages for these libraries, all of the
>> binutil tools get added as well.
>>
> libopcodes is not an API that binutils publish for wider consumption,
> its meant for internal components and
> external components can use it from binutils itself knowing very well
> that it will change with binutils and therefore
> I would prefer to not separate it out into separate package like this
> which can appear as if its an external API
> that binutils will respect.

Currently in binutils, the libbfd package is there "so including perf 
doesn't include extra stuff".

Without this change, including perf includes that extra stuff anyway.

If that comment is to be believed, the libbfd is not currently being 
provided in binutils as an external API.


>
>> Signed-off-by: Alan Perry <alanp@snowmoose.com>
>> ---
>>   meta/recipes-devtools/binutils/binutils_2.35.bb | 6 ++++--
>>   1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-devtools/binutils/binutils_2.35.bb b/meta/recipes-devtools/binutils/binutils_2.35.bb
>> index 2e645e1ed8..976e49765a 100644
>> --- a/meta/recipes-devtools/binutils/binutils_2.35.bb
>> +++ b/meta/recipes-devtools/binutils/binutils_2.35.bb
>> @@ -52,9 +52,11 @@ do_install_class-native () {
>>          rmdir ${D}/${libdir}64 || :
>>   }
>>
>> -# Split out libbfd-*.so so including perf doesn't include extra stuff
>> -PACKAGE_BEFORE_PN += "libbfd"
>> +# Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include
>> +# extra stuff
>> +PACKAGE_BEFORE_PN += "libbfd libopcodes"
>>   FILES_libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so"
>> +FILES_libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so"
>>
>>   SRC_URI_append_class-nativesdk =  " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch "
>>
>> --
>> 2.17.1
>>
>>
>> 
>>


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

* Re: [OE-core] [PATCH] binutils: add libopcodes package for perf
  2020-12-16 18:57   ` Alan Perry
@ 2020-12-16 19:00     ` Khem Raj
  2020-12-16 20:06       ` Alan Perry
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-12-16 19:00 UTC (permalink / raw)
  To: Alan Perry; +Cc: Patches and discussions about the oe-core layer

On Wed, Dec 16, 2020 at 10:57 AM Alan Perry <alanp@snowmoose.com> wrote:
>
>
>
> On 12/16/20 10:27 AM, Khem Raj wrote:
> > On Tue, Dec 15, 2020 at 11:38 PM Alan Perry <alanp@snowmoose.com> wrote:
> >> Add a package for libopcodes, since, like libbfd, it is needed by
> >> perf. Without separate packages for these libraries, all of the
> >> binutil tools get added as well.
> >>
> > libopcodes is not an API that binutils publish for wider consumption,
> > its meant for internal components and
> > external components can use it from binutils itself knowing very well
> > that it will change with binutils and therefore
> > I would prefer to not separate it out into separate package like this
> > which can appear as if its an external API
> > that binutils will respect.
>
> Currently in binutils, the libbfd package is there "so including perf
> doesn't include extra stuff".
>
> Without this change, including perf includes that extra stuff anyway.
>
> If that comment is to be believed, the libbfd is not currently being
> provided in binutils as an external API.

yes libbfd should also have not been done this way as well but I guess
there are more than
one user for libbfd which tilted in its favor.

>
>
> >
> >> Signed-off-by: Alan Perry <alanp@snowmoose.com>
> >> ---
> >>   meta/recipes-devtools/binutils/binutils_2.35.bb | 6 ++++--
> >>   1 file changed, 4 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/meta/recipes-devtools/binutils/binutils_2.35.bb b/meta/recipes-devtools/binutils/binutils_2.35.bb
> >> index 2e645e1ed8..976e49765a 100644
> >> --- a/meta/recipes-devtools/binutils/binutils_2.35.bb
> >> +++ b/meta/recipes-devtools/binutils/binutils_2.35.bb
> >> @@ -52,9 +52,11 @@ do_install_class-native () {
> >>          rmdir ${D}/${libdir}64 || :
> >>   }
> >>
> >> -# Split out libbfd-*.so so including perf doesn't include extra stuff
> >> -PACKAGE_BEFORE_PN += "libbfd"
> >> +# Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include
> >> +# extra stuff
> >> +PACKAGE_BEFORE_PN += "libbfd libopcodes"
> >>   FILES_libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so"
> >> +FILES_libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so"
> >>
> >>   SRC_URI_append_class-nativesdk =  " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch "
> >>
> >> --
> >> 2.17.1
> >>
> >>
> >> 
> >>
>

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

* Re: [OE-core] [PATCH] binutils: add libopcodes package for perf
  2020-12-16 19:00     ` Khem Raj
@ 2020-12-16 20:06       ` Alan Perry
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Perry @ 2020-12-16 20:06 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer



On 12/16/20 11:00 AM, Khem Raj wrote:
> On Wed, Dec 16, 2020 at 10:57 AM Alan Perry <alanp@snowmoose.com> wrote:
>>
>>
>> On 12/16/20 10:27 AM, Khem Raj wrote:
>>> On Tue, Dec 15, 2020 at 11:38 PM Alan Perry <alanp@snowmoose.com> wrote:
>>>> Add a package for libopcodes, since, like libbfd, it is needed by
>>>> perf. Without separate packages for these libraries, all of the
>>>> binutil tools get added as well.
>>>>
>>> libopcodes is not an API that binutils publish for wider consumption,
>>> its meant for internal components and
>>> external components can use it from binutils itself knowing very well
>>> that it will change with binutils and therefore
>>> I would prefer to not separate it out into separate package like this
>>> which can appear as if its an external API
>>> that binutils will respect.
>> Currently in binutils, the libbfd package is there "so including perf
>> doesn't include extra stuff".
>>
>> Without this change, including perf includes that extra stuff anyway.
>>
>> If that comment is to be believed, the libbfd is not currently being
>> provided in binutils as an external API.
> yes libbfd should also have not been done this way as well but I guess
> there are more than
> one user for libbfd which tilted in its favor.

As I mentioned, the reason that it is done that way is broken without 
doing something similar with libopcodes as well.

>>>> Signed-off-by: Alan Perry <alanp@snowmoose.com>
>>>> ---
>>>>    meta/recipes-devtools/binutils/binutils_2.35.bb | 6 ++++--
>>>>    1 file changed, 4 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/meta/recipes-devtools/binutils/binutils_2.35.bb b/meta/recipes-devtools/binutils/binutils_2.35.bb
>>>> index 2e645e1ed8..976e49765a 100644
>>>> --- a/meta/recipes-devtools/binutils/binutils_2.35.bb
>>>> +++ b/meta/recipes-devtools/binutils/binutils_2.35.bb
>>>> @@ -52,9 +52,11 @@ do_install_class-native () {
>>>>           rmdir ${D}/${libdir}64 || :
>>>>    }
>>>>
>>>> -# Split out libbfd-*.so so including perf doesn't include extra stuff
>>>> -PACKAGE_BEFORE_PN += "libbfd"
>>>> +# Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include
>>>> +# extra stuff
>>>> +PACKAGE_BEFORE_PN += "libbfd libopcodes"
>>>>    FILES_libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so"
>>>> +FILES_libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so"
>>>>
>>>>    SRC_URI_append_class-nativesdk =  " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch "
>>>>
>>>> --
>>>> 2.17.1
>>>>
>>>>
>>>> 
>>>>


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

end of thread, other threads:[~2020-12-16 20:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16  7:37 [PATCH] binutils: add libopcodes package for perf Alan Perry
2020-12-16 18:27 ` [OE-core] " Khem Raj
2020-12-16 18:57   ` Alan Perry
2020-12-16 19:00     ` Khem Raj
2020-12-16 20:06       ` Alan Perry

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.