Skip to contentSkip to conversation

"SRC_URI = file:///..." versus "externalsrc"?

DISCUSSION Robert P. J. Day 1 participant 1 message Sep 1, 2021

lore
Share & tools
lore
#0 lore raw

colleague asked me yesterday about the fundamental difference
between using SRC_URI to point at a local source tree to build, versus inheriting externalsrc, and when to use each.

from what i read, there's no serious difference as, by default, both
techniques copy the source tree under WORKDIR -- the major difference is that externalsrc can be configured to build in the source directory via EXTERNALSRC_BUILD, which is something i would discourage anyway.

apart from that, is there an argument for one over the other
depending on the circumstances?

rday