Skip to content

Commit

Permalink
initramfs-test-full: support dynamic content based on enabled layers
Browse files Browse the repository at this point in the history
Implement similar mechanism found in:
4e5d23c (initramfs-test-image: provide dynamic expansion
capabilities)

So that we can build derived images.

Signed-off-by: Nicolas Dechesne <[email protected]>
  • Loading branch information
ndechesne committed Sep 7, 2021
1 parent a85b916 commit 51c2dc8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.

This file was deleted.

22 changes: 22 additions & 0 deletions recipes-test/images/initramfs-test-full-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,25 @@ PACKAGE_INSTALL += " \
util-linux-chrt \
wpa-supplicant \
"

# We'd like to include extra packages provided by layers which we do not depend
# on. This can be handled by .bbappends, but then image recipes including this
# one would not get all these tools. So simulate dynamic bbappend here.
PACKAGE_INSTALL_openembedded_layer += " \
crash \
cryptsetup \
devmem2 \
iozone3 \
libgpiod \
libgpiod-tools \
makedumpfile \
"

PACKAGE_INSTALL_networking_layer += " \
iperf2 \
iperf3 \
tcpdump \
"

PACKAGE_INSTALL += "${@bb.utils.contains("BBFILE_COLLECTIONS", "openembedded-layer", "${PACKAGE_INSTALL_openembedded_layer}", "", d)}"
PACKAGE_INSTALL += "${@bb.utils.contains("BBFILE_COLLECTIONS", "networking-layer", "${PACKAGE_INSTALL_networking_layer}", "", d)}"

0 comments on commit 51c2dc8

Please sign in to comment.