Hi João,
On 5/21/26 2:58 PM, Joao Marcos Costa via lists.openembedded.org wrote:
Add a helper function to be executed after do_unpack, if PRUNE_KEEP_PATHS
is defined.
This variable is a list (space-separated) of paths that should be kept,
while the others will be pruned. They can be directory names and
filenames, but globbing is not supported as of now.
prune_source_tree() is not a task on its own, of course. It belongs in
do_unpack's 'postfuncs' list, and also in do_unpack_and_patch
(archiver.bbclass): this ensures the archived sources (patched or
configured) will also be pruned.
As a concrete example, add PRUNE_KEEP_PATHS to vim-xxd so that vim's
sources are deleted and only xxd sources are kept.
Have you tried the ;subpath=src/xxd argument in SRC_URI for the git fetcher?
I don't think we care about xxd being removed from vim recipe, but we do
not want non-xxd in vim-xxd, so only checking out src/xxd should be
enough hopefully?
Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237513):
https://lists.openembedded.org/g/openembedded-core/message/237513
Mute This Topic: https://lists.openembedded.org/mt/119424112/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-