nuttx/tools
Ansh Rai abafe75dcf tools/Zig.defs: Fix Zig builds on sim:x86_64
Building Zig applications on sim:x86_64 with Zig 0.13.0 fails because
the generated target "x86_64-freestanding-sysv" is not recognized by
Zig. Introduce a Zig-specific ABI mapping that translates "sysv" to
"gnu" without affecting other toolchains.

After correcting the target ABI, linking still fails due to unresolved
references to __zig_probe_stack. Add -fcompiler-rt so Zig includes the
required compiler runtime during linking.

Verified on sim:nsh with CONFIG_EXAMPLES_HELLO_ZIG=y:

  nsh> hello_zig
  [sim]: Hello, Zig!

Fixes #19475

Signed-off-by: Ansh Rai <anshrai331@gmail.com>
2026-08-03 21:02:20 +08:00
..
bcm2711
bl602
ci ci/arm-13.dat: update targets 2026-07-03 10:27:27 +08:00
codeowners
cxd56
esp32
esp32c3
esp32s2
esp32s3
espressif
imx9
licensing
lwl
mpfs
nix
pic32
pynuttx
rp23xx
rp2040
simwifi
zds
.gitignore
aarch64-unknown-nuttx-macho.json
aarch64-unknown-nuttx.json tools/rust: Move NuttX Rust target specs into nuttx 2026-06-01 00:02:41 +08:00
abi_check.py
b16.c
bdf-converter.c
btdecode.sh
build-globals.sh
callstack.py
cfgdefine.c
cfgdefine.h
cfgparser.c
cfgparser.h
check_passwd_keys.sh !boards: enforce secure ROMFS passwd and TEA key setup 2026-07-06 12:04:07 -03:00
checkkconfig.py
checkpatch.sh
checkrelease.sh
CMakeLists.txt
cmpconfig.c
cnvwindeps.c
Config.mk
configure.bat
configure.c
configure.sh
configure_completion.bash
convert-comments.c
copydir.bat
copydir.sh
coredump.py
csvparser.c
csvparser.h
D.defs
define.bat
define.sh
detab.c
Directories.mk
discover.py
doreleasenotes.py
Export.mk
find_symbol_callers.sh
flash_writer.py
FlatLibs.mk
gcov.py
gdbserver.py
gen_passwd_keys.sh !boards: enforce secure ROMFS passwd and TEA key setup 2026-07-06 12:04:07 -03:00
gencromfs.c
host_info_dump.py
host_info_parse.py
i486-unknown-nuttx.json tools/rust: Move NuttX Rust target specs into nuttx 2026-06-01 00:02:41 +08:00
ide_exporter.py
incdir.bat
incdir.c
incdir.sh
indent.sh
initialconfig.c
jlink-nuttx.c
kasan_global.py
kconfig.bat
kconfig2html.c
KernelLibs.mk
LibTargets.mk
link.bat
link.sh
lowhex.c
macar-qcs.sh
Make.defs
Makefile.host
merge_config.py
mkallsyms.py
mkallsyms.sh
mkconfig.c
mkconfigvars.sh
mkctags.sh
mkdeps.c
mkexport.sh
mkfsdata.pl
mkfsdata.py
mknulldeps.sh
mkpasswd.c !boards: enforce secure ROMFS passwd and TEA key setup 2026-07-06 12:04:07 -03:00
mkromfsimg.sh
mksymtab.c
mksyscall.c
mkversion.c
mkwindeps.sh
netusb.sh
noteinfo.c
nxstyle.c tools/nxstyle.c: Add symbols for drivers/crypto/pnt/pnt_se05x_api.c 2026-07-03 10:31:02 +08:00
nxtagspkgsfetch.sh
parsecallstack.py
parsememdump.py
parsetrace.py
passwd_keys.mk !boards: enforce secure ROMFS passwd and TEA key setup 2026-07-06 12:04:07 -03:00
pre-commit
process_config.py
process_config.sh
ProtectedLibs.mk
refresh.sh
rmcr.c
Rust.defs
sethost.sh
showsize.sh
simbridge.sh
simhostroute.sh
simlaunch.sh
size_report.py
splashscreen_converter.py
stackusage.py
stm32_pinmap_tool.py
Swift.defs
testbuild.ps1
testbuild.sh
toolchain.cmake.export
uncrustify.cfg
Unix.mk
unlink.bat
unlink.sh
version.sh
Win.mk
x86_64-unknown-nuttx.json tools/rust: Move NuttX Rust target specs into nuttx 2026-06-01 00:02:41 +08:00
xmlrpc_test.py
Zig.defs tools/Zig.defs: Fix Zig builds on sim:x86_64 2026-08-03 21:02:20 +08:00
zipme.sh