diff options
Diffstat (limited to 'meta-google/recipes-google/ncsi')
3 files changed, 26 insertions, 0 deletions
diff --git a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in new file mode 100644 index 000000000..99f0400bf --- /dev/null +++ b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in @@ -0,0 +1,17 @@ +[Unit] +Description=Set NICEnabled property to true +Wants=xyz.openbmc_project.Network.service +After=xyz.openbmc_project.Network.service +Wants=mapper-wait@-xyz-openbmc_project-network-@NCSI_IF@.service +After=mapper-wait@-xyz-openbmc_project-network-@NCSI_IF@.service +StartLimitIntervalSec=10 +StartLimitBurst=3 + +[Service] +Type=oneshot +ExecStart=busctl set-property xyz.openbmc_project.Network /xyz/openbmc_project/network/@NCSI_IF@ xyz.openbmc_project.Network.EthernetInterface NICEnabled b true +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target diff --git a/meta-google/recipes-google/ncsi/gbmc-ncsi-config.bb b/meta-google/recipes-google/ncsi/gbmc-ncsi-config.bb index 098819988..89890266b 100644 --- a/meta-google/recipes-google/ncsi/gbmc-ncsi-config.bb +++ b/meta-google/recipes-google/ncsi/gbmc-ncsi-config.bb @@ -11,6 +11,7 @@ SRC_URI += " \ file://gbmc-ncsi-sslh.service \ file://gbmc-ncsi-nft.sh.in \ file://gbmc-ncsi-br-pub-addr.sh.in \ + file://gbmc-ncsi-set-nicenabled.service.in \ " S = "${WORKDIR}" @@ -30,6 +31,7 @@ FILES_${PN} += " \ SYSTEMD_SERVICE_${PN} += " \ gbmc-ncsi-sslh.service \ gbmc-ncsi-sslh.socket \ + gbmc-ncsi-set-nicenabled.service \ " do_install_append() { @@ -75,4 +77,7 @@ do_install_append() { sed "s,@NCSI_IF@,$if_name,g" ${WORKDIR}/gbmc-ncsi-br-pub-addr.sh.in \ >${WORKDIR}/gbmc-ncsi-br-pub-addr.sh install -m644 ${WORKDIR}/gbmc-ncsi-br-pub-addr.sh $mondir + + sed "s,@NCSI_IF@,$if_name,g" ${WORKDIR}/gbmc-ncsi-set-nicenabled.service.in \ + >${D}${systemd_system_unitdir}/gbmc-ncsi-set-nicenabled.service } diff --git a/meta-google/recipes-google/ncsi/ncsid_git.bb b/meta-google/recipes-google/ncsi/ncsid_git.bb index 4d74c992a..1acb45116 100644 --- a/meta-google/recipes-google/ncsi/ncsid_git.bb +++ b/meta-google/recipes-google/ncsi/ncsid_git.bb @@ -6,6 +6,10 @@ require ../google-misc/google-misc.inc inherit systemd +EXTRA_OEMESON = " \ + -Dtests=disabled \ + " + SYSTEMD_SERVICE_${PN} += " \ dhcp4@.service \ dhcp6@.service \ |