All of lore.kernel.org
 help / color / mirror / Atom feed
* want to clarify proper usage of EXTERNALSRC on per-recipe basis
@ 2021-04-09 10:17 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2021-04-09 10:17 UTC (permalink / raw)
  To: OE Core mailing list


  i've run across a rather odd scenario wherein part of the build of a
valid OE/YP layer is reaching across the filesystem and explicitly,
for a number of related recipes, running "make -C <dir1>" and "make -C
<dir2"> -- that is, do_compile() for that recipe is appended with
these calls to the "make" command to compile in an out-of-tree
directory -- after which explicit "cp" commands are run to copy the
generated artifacts from the compile results in that remote directory
into that recipe's WORKDIR, where they are manually installed in
do_install_append().

  the rationale here is that the remote content is being migrated, bit
by bit, into the existing layer, but it would be too much work to move
it all in in one shot, so this odd intermediate step is being used for
now until the migration can be done properly.

  last point which might be relevant -- the remote content is actually
partitioned into sub-builds of the same component, so let's assume
that the calls being made from do_compile_append() are to build
various parts of the "fubar" component/package:

    make -C ${REMOTEDIR}/fubar/client
    make -C ${REMOTEDIR}/fubar/server

  assuming i'm reading the current build structure correctly, i'm
going to recommend that proper recipes for "fubar" be added, which
would use "EXTERNALSRC" settings to pick up the source, and all the
rest of the building would work in a sane manner.

  more to the point, it seems that a single "fubar" recipe should
define packages "fubar-server" and "fubar-client", each of which can
set its own EXTERNALSRC values appropriately.

  does this seem reasonable? i'm not after exact recipe code, just
want to verify that this would be a reasonable approach that actually
fits within the framework of a proper OE build.

rday

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-09 10:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 10:17 want to clarify proper usage of EXTERNALSRC on per-recipe basis 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.