6 Commits

Author SHA1 Message Date
Jose Quaresma 420222862f networkmanager: re-implement the vala detection
The introduction of DISTRO_FEATURES_OPTED_OUT allows rewriting the
DISTRO_FEATURES by removing whatever is in DISTRO_FEATURES_OPTED_OUT
from DISTRO_FEATURES.

Thus, the logic of vala can be negated, and it can changed be to
see if gobject-introspection-data is available in DISTRO_FEATURES.

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-24 18:39:52 -07:00
Jose Quaresma ef548c3982 networkmanager: DISTRO_FEATURES_BACKFILL_CONSIDERED -> DISTRO_FEATURES_OPTED_OUT
Variable DISTRO_FEATURES_BACKFILL_CONSIDERED has been renamed
to DISTRO_FEATURES_OPTED_OUT.

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-21 23:12:37 -07:00
Zhixiong Chi c90f012855 networkmanager: Do not ship initrd specific services into rootfs
Those systemd services were added in 1.54 upstream
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2089

According the comments we can see they are meant for the inird
other than using for rootfs. They will conflict with the main
services and can lead to potentially confusing error messages.
So remove them for now to avoid the following issue.

>$systemd-analyze --man=false verify \
> /lib/systemd/system/NetworkManager-wait-online-initrd.service
  Failed to put bus name to hashmap: File exists
  NetworkManager-initrd.service: Two services allocated for the \
  same bus name org.freedesktop.NetworkManager, refusing operation.

Test:
PASS: bitbake core-image-minimal
PASS: runqemu qemux86-64
PASS: systemd-analyze --man=false verify \
      /lib/systemd/system/NetworkManager.service

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-10 07:59:51 -07:00
Gyorgy Sarvari e43a6cf3c3 networkmanager: remove (another) obsolete CLAGS extension
The incompatible pointer warning/error has been fixed upstream[1],
no need for custom CFLAGS for this anymore.

[1]: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/43bcfbcdf5e255544adee3d02d0e98efa088c5d3

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-01 13:16:43 -07:00
Gyorgy Sarvari 50c5b6a117 networkmanager: remove obsolete CLAGS extension
Compilation with musl has been fixed by upstream[1], no need for custom
CFLAGS for this anymore.

[1]: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/d38b5d92ee66b0243fd5ea6d8fdf58a456e3a5f4

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-01 13:16:43 -07:00
Andrej Kozemcak fc1549090f networkmanager: upgrade 1.52.2 -> 1.56.0
Create path to fix `meson` build errors

Add missing dependencies.

Disables man page generation. The build was using xsltproc to try
downloading http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
from the network, which fails in embedded build environments.

Changelog:

v1.56.0
  https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.56.0/NEWS?ref_type=tags

  Changed:
  - Unify the versioning to use everywhere the scheme with the -rcX or -dev
    suffixes when appropriate. This affects, for example, the URL and filename
    of the release tarball and the version reported by nmcli and the daemon.
    As an exception, the C API will continue to use the 90+ scheme for RC versions.
  - nmcli now supports viewing and managing WireGuard peers.
  - Support reapplying the "sriov.vfs" property as long as
    "sriov.total-vfs" is not changed.
  - Support reapplying "bond-port.vlans".
  - Accept hostnames longer than 64 characters from DNS lookup.
  - Make that global-dns configuration overwrites DNS searches and
    options from connections, instead of merging all together.
  - Add support for a new rd.net.dhcp.client-id option in
    nm-initrd-generator.
  - Add gsm device-uid setting to restrict the devices the connection applies to.
  - Support configuring the HSR protocol version via the
    "hsr.protocol-version" property.
  - Fix a bug that makes broadband connections auto-connect getting
    blocked if the connection tries to reconnect when modem status is
    "disconnecting" / "disconnected".
  - Treat modem connection not having an operator code available
    as a recoverable error.
  - Add support for configuring systemd-resolved's DNSSEC option
    per-connection via the "connection.dnssec" connection property.
  - Support configuring the HSR interlink port via the
    "hsr.interlink" property.
  - Fix some connection properties not being applied to vpn connections
    (connection.mdns, connection.llmnr, connection.dns-over-tls,
    connection.mptcp-flags, ipv6.ip6-privacy)
  - Update n-acd to always compile with eBPF enabled, as support
    for eBPF is now detected at run time.
  - Add new MPTCP 'laminar' endpoint type, and set it by default alongside
    the 'subflow' one.
  - For private connections (the ones that specify a user in the
    "connection.permissions" property), verify that the user can access
    the 802.1X certificates and keys set in the connection.
  - Introduce a libnm function that can be used by VPN plugins to check
    user permissions on certificate and keys.

v1.54.0
  https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.54.0/NEWS?ref_type=tags

  Changed:
  - Add support for configuring per-device IPv4 forwarding via the
    "ipv4.forwarding" connection property.
  - Add a new "prefix-delegation" setting containing a "subnet-id"
    property that specifies the subnet to choose on the downstream
    interface when using IPv6 prefix delegation.
  - Support OCI baremetal in nm-cloud-setup
  - When activating a WireGuard connection to an IPv6 endpoint, now
    NetworkManager creates firewall rules to ensure that the incoming
    packets are not dropped by kernel reverse path filtering.
  - Add support for configuring the loopback interface in nmtui.
  - Most of the properties of ovs-bridge and ovs-port connections can
    now be reapplied at runtime without bringing the connection down.
  - Add a new "sriov.preserve-on-down" property that controls whether
    NetworkManager preserves the SR-IOV parameters set on the device
    when the connection is deactivated, or whether it resets them to
    their default value.
  - Introduce a new "ovs-dpdk.lsc-interrupt" property to configure the
    Link State Change (LSC) detection mode for OVS DPDK interfaces.
  - The initrd-generator now can parse the NVMe Boot Firmware Table
    (NBFT) to configure networking during early boot.
  - Add systemd services to provide networking in the initrd.

Signed-off-by: Andrej Kozemcak <andrej.kozemcak@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-17 22:02:52 -07:00