Skip to content

Commit 8bedb29

Browse files
committed
native_simulator: include folder for missing asm/errno.h
On an x86_64 Ubuntu host, the following command would result in an error. ```shell west build -p -b native_sim/native tests/net/wifi/configs \ -T wifi.build.hostapd_ap ... In file included from /usr/include/bits/errno.h:26, from /usr/include/errno.h:28, from ~/zephyrproject/zephyr/scripts/native_simulator/\ /common/src/nce.c:24: /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: \ No such file or directory 1 | #include <asm/errno.h> | ^~~~~~~~~~~~~ compilation terminated. ``` Include `/usr/include/x86_64-linux-gnu` in the search path so that the build succeeds. Signed-off-by: Chris Friedt <[email protected]>
1 parent 376ca57 commit 8bedb29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/native_simulator/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ NSI_OPT?=-O0
6565
NSI_WARNINGS?=-Wall -Wpedantic
6666
# Preprocessor flags
6767
NSI_CPPFLAGS?=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED
68+
NSI_CPPFLAGS+=-I/usr/include/x86_64-linux-gnu
6869

6970
NO_PIE_CO:=-fno-pie -fno-pic
7071
DEPENDFLAGS:=-MMD -MP

0 commit comments

Comments
 (0)