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