base-image: Split and organize tools

BugzID: 73593
This commit is contained in:
Alexandre Bard 2021-07-21 12:28:38 +02:00
parent 2c9fbbf4b0
commit 22c9a78486
1 changed files with 39 additions and 22 deletions

View File

@ -12,61 +12,78 @@ IMAGE_FEATURES_append = " \
ssh-server-openssh \
"
BASE_TOOLS = " \
bash \
less \
curl \
parted \
mmc-utils \
"
NET_TOOLS = " \
iproute2 \
ethtool \
iptables \
networkmanager \
bridge-utils \
"
WWAN_TOOLS = " \
modemmanager \
wwan-config \
"
BT_TOOLS = " \
bluez5 \
bluez5-obex \
bluez5-noinst-tools \
${@bb.utils.contains("MACHINE_FEATURES", "tibluetooth", "tibluetooth", "", d)} \
"
WIFI_TOOLS = " \
hostapd \
iw \
wpa-supplicant \
wireless-regdb-static \
"
TIME_TOOLS = " \
chrony \
chronyc \
"
NM_TOOLS = " \
nmhw-auto-part \
udev-rules-nmhw \
nmhw-fwupdate \
packagegroup-system-state-framework \
"
IMAGE_INSTALL_append = " \
hostapd \
iw \
wpa-supplicant \
${BASE_TOOLS} \
${NET_TOOLS} \
${NM_TOOLS} \
${TIME_TOOLS} \
${FIRMWARE} \
openssh-sftp-server \
haveged \
bash \
iproute2 \
ethtool \
openvpn \
iptables \
pciutils \
kernel-modules \
networkmanager \
packagegroup-netmodule-linux \
parted \
rng-tools \
bridge-utils \
gpsd \
gps-utils \
curl \
less \
socat \
cryptodev-module \
nmhw-auto-part \
${TIME_TOOLS} \
packagegroup-ublox-modules \
\
${@bb.utils.contains("DISTRO_FEATURES", "custom-mac-addresses", "mac-address-set", "", d)} \
\
${@bb.utils.contains("MACHINE_FEATURES", "can", "can-utils", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "wwan", "${WWAN_TOOLS}", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "gnss", "gnss-mgr", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "bluetooth", "${BT_TOOLS}", "", d)} \
${FIRMWARE} \
wireless-regdb-static \
udev-rules-nmhw \
nmhw-fwupdate \
packagegroup-system-state-framework \
packagegroup-ublox-modules \
${@bb.utils.contains("MACHINE_FEATURES", "imx-boot", "", "bootloader-config", d)} \
mmc-utils \
${@bb.utils.contains("DISTRO_FEATURES", "custom-mac-addresses", "mac-address-set", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "usb-hub-reset", "usb-hub-reset", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "v2x", "v2x-ieee802.11p", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "fpga", "fpga-image", "", d)} \