All of lore.kernel.org
 help / color / mirror / Atom feed
* how to add a "-dev" package to host SDK?
@ 2021-05-03 14:54 Robert P. J. Day
  2021-05-03 18:42 ` [OE-core] " Andre McCurdy
  0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2021-05-03 14:54 UTC (permalink / raw)
  To: OE Core mailing list


  colleague asks a simple question (and i'm not in front of my dev box
at the moment so i can't verify what i'm about to suggest): how to add
the header files in a given "-dev" package to the host component of
the SDK?

  i haven't spent a lot of time messing with SDKs (that is about to
change), but as i read it, if one wants to add the contents of any
given development package to the host SDK, it would look like:

  TOOLCHAIN_HOST_TASK_append = " nativesdk-fubar-dev"

  i have no idea what the rationale is here, i'm just trying to
address the question, which in addition asks, "if you add something
like that to the host side, is it automatically added to the target
side?"

  i'm pretty sure it isn't, but i can check that after i log in. i
have no idea what they're up to here, i just want to answer the
question.

rday

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

* Re: [OE-core] how to add a "-dev" package to host SDK?
  2021-05-03 14:54 how to add a "-dev" package to host SDK? Robert P. J. Day
@ 2021-05-03 18:42 ` Andre McCurdy
  2021-05-03 19:41   ` Robert P. J. Day
  0 siblings, 1 reply; 5+ messages in thread
From: Andre McCurdy @ 2021-05-03 18:42 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

On Mon, May 3, 2021 at 7:55 AM Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>
>   colleague asks a simple question (and i'm not in front of my dev box
> at the moment so i can't verify what i'm about to suggest): how to add
> the header files in a given "-dev" package to the host component of
> the SDK?

The implication of that is that you want to use a header file from a
host component of the SDK to be able to compile additional tools etc
to run on the host after the SDK has been created?

Normally the SDK tools etc which run on the host are all compiled as
part of creating the SDK, not afterwards.

>   i haven't spent a lot of time messing with SDKs (that is about to
> change), but as i read it, if one wants to add the contents of any
> given development package to the host SDK, it would look like:
>
>   TOOLCHAIN_HOST_TASK_append = " nativesdk-fubar-dev"
>
>   i have no idea what the rationale is here, i'm just trying to
> address the question, which in addition asks, "if you add something
> like that to the host side, is it automatically added to the target
> side?"

It's not.

>   i'm pretty sure it isn't, but i can check that after i log in. i
> have no idea what they're up to here, i just want to answer the
> question.
>
> rday
>
> 
>

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

* Re: [OE-core] how to add a "-dev" package to host SDK?
  2021-05-03 18:42 ` [OE-core] " Andre McCurdy
@ 2021-05-03 19:41   ` Robert P. J. Day
  2021-05-04  0:57     ` Denys Dmytriyenko
  0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2021-05-03 19:41 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE Core mailing list

On Mon, 3 May 2021, Andre McCurdy wrote:

> On Mon, May 3, 2021 at 7:55 AM Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> >
> >   colleague asks a simple question (and i'm not in front of my dev
> > box at the moment so i can't verify what i'm about to suggest):
> > how to add the header files in a given "-dev" package to the host
> > component of the SDK?
>
> The implication of that is that you want to use a header file from a
> host component of the SDK to be able to compile additional tools etc
> to run on the host after the SDK has been created?

  i am *assuming* that's the plan, but i was provided with no actual
rationale, only asked how to do it. i'm going to harangue people
tomorrow regarding what they're after.

> Normally the SDK tools etc which run on the host are all compiled as
> part of creating the SDK, not afterwards.

  that's my understanding but, again, i'm just responding to a very
specific request; i guess we'll soon see if that's the right approach
to what they're looking for.

> >   i haven't spent a lot of time messing with SDKs (that is about to
> > change), but as i read it, if one wants to add the contents of any
> > given development package to the host SDK, it would look like:
> >
> >   TOOLCHAIN_HOST_TASK_append = " nativesdk-fubar-dev"
> >
> >   i have no idea what the rationale is here, i'm just trying to
> > address the question, which in addition asks, "if you add something
> > like that to the host side, is it automatically added to the target
> > side?"
>
> It's not.

  i was pretty sure it wasn't but i tried a number of examples just to
be absolutely sure. however, i did notice something i didn't
understand. (this is my first foray into messing with SDKs so these
will be simple questions.)

  as a test, i built a core-image-minimal for qemuarm64, then started
playing with:

  TOOLCHAIN_HOST_TASK_append = " ..."

to see what was added to the host manifest file.

  when i added:

  TOOLCHAIN_HOST_TASK_append = " nativesdk-expect"

then, sure enough, that package was added to the host manifest file.
however, when i added the -dev package:

  TOOLCHAIN_HOST_TASK_append = " nativesdk-expect-dev"

then *both* packages were added, as in, the regular package was
dragged along with the -dev package, which *seems* reasonable, but
where in the code (class file?) is this processing done? put another
way, under what circumstances will adding a -dev package to the host
portion of the SDK necessarily add the primary package?

rday


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

* Re: [OE-core] how to add a "-dev" package to host SDK?
  2021-05-03 19:41   ` Robert P. J. Day
@ 2021-05-04  0:57     ` Denys Dmytriyenko
  2021-05-04  8:49       ` Robert P. J. Day
  0 siblings, 1 reply; 5+ messages in thread
From: Denys Dmytriyenko @ 2021-05-04  0:57 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Andre McCurdy, OE Core mailing list

On Mon, May 03, 2021 at 03:41:50PM -0400, Robert P. J. Day wrote:
> On Mon, 3 May 2021, Andre McCurdy wrote:
> 
> > On Mon, May 3, 2021 at 7:55 AM Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> > >
> > >   colleague asks a simple question (and i'm not in front of my dev
> > > box at the moment so i can't verify what i'm about to suggest):
> > > how to add the header files in a given "-dev" package to the host
> > > component of the SDK?
> >
> > The implication of that is that you want to use a header file from a
> > host component of the SDK to be able to compile additional tools etc
> > to run on the host after the SDK has been created?
> 
>   i am *assuming* that's the plan, but i was provided with no actual
> rationale, only asked how to do it. i'm going to harangue people
> tomorrow regarding what they're after.
> 
> > Normally the SDK tools etc which run on the host are all compiled as
> > part of creating the SDK, not afterwards.
> 
>   that's my understanding but, again, i'm just responding to a very
> specific request; i guess we'll soon see if that's the right approach
> to what they're looking for.
> 
> > >   i haven't spent a lot of time messing with SDKs (that is about to
> > > change), but as i read it, if one wants to add the contents of any
> > > given development package to the host SDK, it would look like:
> > >
> > >   TOOLCHAIN_HOST_TASK_append = " nativesdk-fubar-dev"
> > >
> > >   i have no idea what the rationale is here, i'm just trying to
> > > address the question, which in addition asks, "if you add something
> > > like that to the host side, is it automatically added to the target
> > > side?"
> >
> > It's not.
> 
>   i was pretty sure it wasn't but i tried a number of examples just to
> be absolutely sure. however, i did notice something i didn't
> understand. (this is my first foray into messing with SDKs so these
> will be simple questions.)
> 
>   as a test, i built a core-image-minimal for qemuarm64, then started
> playing with:
> 
>   TOOLCHAIN_HOST_TASK_append = " ..."
> 
> to see what was added to the host manifest file.
> 
>   when i added:
> 
>   TOOLCHAIN_HOST_TASK_append = " nativesdk-expect"
> 
> then, sure enough, that package was added to the host manifest file.
> however, when i added the -dev package:
> 
>   TOOLCHAIN_HOST_TASK_append = " nativesdk-expect-dev"
> 
> then *both* packages were added, as in, the regular package was
> dragged along with the -dev package, which *seems* reasonable, but
> where in the code (class file?) is this processing done? put another
> way, under what circumstances will adding a -dev package to the host
> portion of the SDK necessarily add the primary package?

By default, ${PN}-dev RDEPENDS on ${PN} automatically, if not changed:

https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n321

-- 
Regards,
Denys Dmytriyenko <denis@denix.org>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964

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

* Re: [OE-core] how to add a "-dev" package to host SDK?
  2021-05-04  0:57     ` Denys Dmytriyenko
@ 2021-05-04  8:49       ` Robert P. J. Day
  0 siblings, 0 replies; 5+ messages in thread
From: Robert P. J. Day @ 2021-05-04  8:49 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Andre McCurdy, OE Core mailing list

On Mon, 3 May 2021, Denys Dmytriyenko wrote:

... snip ...

> By default, ${PN}-dev RDEPENDS on ${PN} automatically, if not changed:
>
> https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n321

  yup, that's the line i was looking for, thanks.

rday

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

end of thread, other threads:[~2021-05-04  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-03 14:54 how to add a "-dev" package to host SDK? Robert P. J. Day
2021-05-03 18:42 ` [OE-core] " Andre McCurdy
2021-05-03 19:41   ` Robert P. J. Day
2021-05-04  0:57     ` Denys Dmytriyenko
2021-05-04  8:49       ` Robert P. J. Day

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.