networkmanager-conf: Setup DHCP for nrhw20

Custom config for HW20 with DHCP on the 4 lans of the switch instead
of 4 different static subnets.

BugzID: 60765
This commit is contained in:
Alexandre Bard 2019-12-26 16:45:41 +01:00
parent 24a56a9212
commit a61b878ee0
4 changed files with 7 additions and 2 deletions

View File

@ -20,7 +20,8 @@ SRC_URI = " \
"
SRC_URI_append_am335x-nrhw20 = " \
file://system-connections.tar.gz \
file://system-connections-static.tar.gz \
file://system-connections-dhcp.tar.gz \
"
do_install () {
@ -44,7 +45,11 @@ do_install () {
do_install_append_am335x-nrhw20() {
rm -rf ${D}${sysconfdir}/NetworkManager/system-connections/*
install -m 0600 ${WORKDIR}/system-connections/* ${D}${sysconfdir}/NetworkManager/system-connections/
if ${@bb.utils.contains('PACKAGECONFIG','ethernet-dhcp','true','false',d)}; then
install -m 0600 ${WORKDIR}/system-connections-dhcp/* ${D}${sysconfdir}/NetworkManager/system-connections/
else
install -m 0600 ${WORKDIR}/system-connections-static/* ${D}${sysconfdir}/NetworkManager/system-connections/
fi
}
do_install_append_armada-385-nrhw18() {