Skip to content

base: add 64-bit libnl development packages - #318

Merged
stephanosio merged 1 commit into
zephyrproject-rtos:mainfrom
jukkar:devel/add-libnl-amd64
Nov 5, 2026
Merged

stephanosio merged 1 commit into
zephyrproject-rtos:mainfrom
jukkar:devel/add-libnl-amd64

Conversation

@jukkar

@jukkar jukkar commented Nov 4, 2026

Copy link
Copy Markdown
Member

The native_sim Wi-Fi driver in Zephyr can now be built for the 64-bit native_sim/native/64 target as well (zephyrproject-rtos/zephyr#124554). The native_simulator runner is then a 64-bit binary that links against libnl-3 and libnl-genl-3, so the development packages for the host architecture are needed in addition to the i386 ones added in #312. SDL2 is already installed for both architectures in the same way.

The existing PKG_CONFIG_PATH setting does not need to change. pkg-config reports only the include directory and the -l flags for libnl, and the headers are shared between architectures, so the linker picks the libraries matching the target word size from the multiarch path.

Tested by installing libnl-3-dev, libnl-genl-3-dev and their :i386 variants together in an ubuntu:24.04 container and linking a libnl-genl program with -m32 and -m64. The full image was not built.

The native_sim Wi-Fi driver in Zephyr now also builds for the 64-bit
native_sim/native/64 target. Its native_simulator runner is then a
64-bit binary and links against the native libnl-3 and libnl-genl-3,
so the development packages for the host architecture are needed in
addition to the i386 ones added earlier, in the same way as libsdl2-dev
is installed for both.

pkg-config reports only the include directory and the -l flags for
libnl, and the headers are shared between architectures, so the
existing PKG_CONFIG_PATH pointing at the i386 .pc files still works:
the linker picks the libraries for the target word size from the
multiarch path.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
@stephanosio
stephanosio merged commit 9ad2ef5 into zephyrproject-rtos:main Nov 5, 2026
3 checks passed
@jukkar
jukkar deleted the devel/add-libnl-amd64 branch November 5, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants