Repository navigation
base: add 64-bit libnl development packages - #318
Merged
Merged
Conversation
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>
aescolar
approved these changes
Nov 4, 2026
pdgendt
approved these changes
Nov 4, 2026
maass-hamburg
approved these changes
Nov 4, 2026
tpambor
approved these changes
Nov 4, 2026
stephanosio
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The native_sim Wi-Fi driver in Zephyr can now be built for the 64-bit
native_sim/native/64target 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_PATHsetting does not need to change. pkg-config reports only the include directory and the-lflags 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-devand their:i386variants together in anubuntu:24.04container and linking a libnl-genl program with-m32and-m64. The full image was not built.