All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: kernel: export native PKGCONFIG variables
@ 2022-12-07  7:45 Christian Eggers
  2022-12-07 13:32 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Eggers @ 2022-12-07  7:45 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: openembedded-core


[-- Attachment #1.1: Type: text/plain, Size: 1973 bytes --]

Hi Bruce,

on 2021-11-23, you added the following patch:

> 9172d61c57e23682c3d2c25701cbd53c84d01a27
>
> kernel: export native PKGCONFIG variables
>
> In a similar manner to cml1.bbclass, we export the pkg-config
> variables to allow a direct call to pkg-config access to the
> native sysroot versus the target sysroot.
>
> The kernel doesn't use pkg-config for target configuration,
I found some calls in the tools/ directory of the kernel.
Isn't this related to target configuration?

> and has many explicit calls to pkg-config, without the
> possibility of easy override to pkg-config-native.
I just noticed that this has recently changed:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5ea4fece4508bf8e72b659cd22fa4840d8d61e5

This change is in Linux 6.0, but not in 5.15. Probably it
could be backported easily.

>
> The calls to pkg-config could be made cross friendly via
> replacement with make variables, but until that effort is
> undertaken upstream, we need a bridge approach.
>
> In particular, this is required for dtschema validation,
> which is a requirement in kernel 5.16+

regards
Christian




_______________________________________________________
Christian
Eggers
Software Engineer
​
ARRI
Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Arriweg 17,
83071
Stephanskirchen
www.arri.com

+49 8036 3009-3118
CEggers@arri.de

​
Get all the latest information from www.arri.com, Facebook, Twitter, Instagram, LinkedIn and YouTube.

Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: HRA 57918
Persönlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: HRB 54477
Geschäftsführer: Dr. Matthias Erb (Chairman); Dr. Michael Neuhäuser; Stephan Schenk; Walter Trauninger

​

[-- Attachment #1.2: Type: text/html, Size: 11027 bytes --]

[-- Attachment #2: image336616.png --]
[-- Type: image/png, Size: 528 bytes --]

[-- Attachment #3: image460246.png --]
[-- Type: image/png, Size: 824 bytes --]

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

* Re: kernel: export native PKGCONFIG variables
  2022-12-07  7:45 kernel: export native PKGCONFIG variables Christian Eggers
@ 2022-12-07 13:32 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2022-12-07 13:32 UTC (permalink / raw)
  To: Christian Eggers; +Cc: openembedded-core


[-- Attachment #1.1: Type: text/plain, Size: 2978 bytes --]

On Wed, Dec 7, 2022 at 2:45 AM Christian Eggers <ceggers@arri.de> wrote:

> Hi Bruce,
>
> on 2021-11-23, you added the following patch:
>
> > 9172d61c57e23682c3d2c25701cbd53c84d01a27
> >
> > kernel: export native PKGCONFIG variables
> >
> > In a similar manner to cml1.bbclass, we export the pkg-config
> > variables to allow a direct call to pkg-config access to the
> > native sysroot versus the target sysroot.
> >
> > The kernel doesn't use pkg-config for target configuration,
> I found some calls in the tools/ directory of the kernel.
> Isn't this related to target configuration?
>

That meant "kernel target configuration", not userspace tools.


>
> > and has many explicit calls to pkg-config, without the
> > possibility of easy override to pkg-config-native.
> I just noticed that this has recently changed:
>
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5ea4fece4508bf8e72b659cd22fa4840d8d61e5
>
> This change is in Linux 6.0, but not in 5.15. Probably it
> could be backported easily.
>

I was aware of that change as well, but what we have works, so there's no
rush to remove that block of code. We support a wide range of kernels and
versions, so it needs to stay in place for some time yet.

Bruce


> >
> > The calls to pkg-config could be made cross friendly via
> > replacement with make variables, but until that effort is
> > undertaken upstream, we need a bridge approach.
> >
> > In particular, this is required for dtschema validation,
> > which is a requirement in kernel 5.16+
>
> regards
> Christian
>
>
>
> _______________________________________________________
> Christian
> Eggers
> Software Engineer
> ARRI
> Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
> Arriweg 17 ,
> 83071
> Stephanskirchen
>
>
> *www.arri.com * <http://www.arri.com/>
> *+49 8036 3009-3118* <+49%208036%203009-3118>
> *CEggers@arri.de* <CEggers@arri.de>
>
> [image: Season's Greetings] <https://www.arri.com/en>
> Get all the latest information from *www.arri.com* <https://www.arri.com/>
> , *Facebook* <https://www.facebook.com/TeamARRI>, *Twitter*
> <https://twitter.com/ARRIChannel>, *Instagram*
> <https://www.instagram.com/arri/>, *LinkedIn*
> <https://www.linkedin.com/company/arri> and *YouTube*
> <https://www.youtube.com/user/ARRIChannel>.
>
> Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
>
> Sitz: München ‑ Registergericht: Amtsgericht München ‑ Handelsregisternummer: HRA 57918
> Persönlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
>
> Sitz: München ‑ Registergericht: Amtsgericht München ‑ Handelsregisternummer: HRB 54477
>
> Geschäftsführer: Dr. Matthias Erb (Chairman); Dr. Michael Neuhäuser; Stephan Schenk; Walter Trauninger
>
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

[-- Attachment #1.2: Type: text/html, Size: 12702 bytes --]

[-- Attachment #2: image336616.png --]
[-- Type: image/png, Size: 528 bytes --]

[-- Attachment #3: image460246.png --]
[-- Type: image/png, Size: 824 bytes --]

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

end of thread, other threads:[~2022-12-07 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07  7:45 kernel: export native PKGCONFIG variables Christian Eggers
2022-12-07 13:32 ` Bruce Ashfield

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.