On Fri, 28 May 2021, Quentin Schulz wrote:

... big snip ...

> ${B} = ${S} by default, so that might explain why it works without
> externalsrc being inherited.
>
> You can see in the makefile that this is assumed. Only the install tasks
> are installing somewhere else (DESTDIR), c.f.
> https://git.savannah.nongnu.org/cgit/dmidecode.git/tree/Makefile
>
> So yes, except if you patch the Makefile to support out-of-tree build,
> you would need both EXTERNALSRC and EXTERNALSRC_BUILD set to the same
> value.
>
> Maybe a Cmake example would suit better since B is set to "${WORKDIR}/build"
> by default?
>
> Otherwise, write a proper Makefile that allows out-of-tree builds for
> the example :)

  in the end, i suspect i was overthinking it, thinking somehow there
was some magic to "externalsrc", only to finally realize it was
totally inappropriate for source that had to be built in-tree. so i
just switched over to using SRC_URI and, for various recipes like
dmidecode, i created a recipe that started with some variation of:

  LICENSE = "CLOSED"
  LIC_FILES_CHKSUM = ""
  FILESEXTRAPATHS_prepend := "${THISDIR}:"
  SRC_URI := "file://src"
  S = "${WORKDIR}/src"

then just unpacked and copied the source to a directory named "src"
right next to the corresponding recipe. yes, it's goofy, but it's for
demonstration purposes only, and seems to do what i want.

  lots of noise for a very simple solution in the end. isn't that just
the way it goes?

rday
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152397): 
https://lists.openembedded.org/g/openembedded-core/message/152397
Mute This Topic: https://lists.openembedded.org/mt/83147632/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to