nm-image: Include mac address service only when requested

Each distro can choose to have custom mac-address by setting the flag
custom-mac-addresses in DISTRO_FEATURES.

BugzID: 65928
This commit is contained in:
Alexandre Bard 2020-12-14 15:33:34 +01:00
parent 2d28aaeb1e
commit 79c0e2afd5
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ require netmodule-linux-image.bb
IMAGE_INSTALL_remove_am335x-nmhw21 = " \
battery-test \
socket-uart \
mac-address-set \
"
COMPATIBLE_MACHINE = "am335x-nmhw21"

View File

@ -59,6 +59,7 @@ IMAGE_INSTALL_append = " \
nmhw-fwupdate \
${@bb.utils.contains("MACHINE_FEATURES", "imx-boot", "", "bootloader-config", d)} \
mmc-utils \
${@bb.utils.contains("DISTRO_FEATURES", "custom-mac-addresses", "mac-address-set", "", d)} \
"
IMAGE_INSTALL_append_am335x-nrhw16 = " \
@ -77,7 +78,6 @@ IMAGE_INSTALL_append_am335x-nmhw21 = " \
battery-test \
cryptodev-module \
socket-uart \
mac-address-set \
imu-setup \
gnss-mgr \
chrony \