acid/firmware2/cross-esp32s3.txt
Jakub Hlusička 352e52852f WIP2
2026-01-05 23:26:44 +01:00

40 lines
925 B
Plaintext

[binaries]
c = 'xtensa-esp32s3-elf-gcc'
cpp = 'xtensa-esp32s3-elf-g++'
ar = 'xtensa-esp32s3-elf-ar'
strip = 'xtensa-esp32s3-elf-strip'
[build_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
[host_machine]
system = 'bare-metal' # Crucial: prevents Meson from assuming a POSIX environment
cpu_family = 'xtensa'
cpu = 'esp32s3'
endian = 'little'
[built-in options]
c_args = [
'-fdebug-prefix-map=@GLOBAL_SOURCE_ROOT@=C:/Users/Limeth/workspace/c/libxkbcommon-linux',
'-ffreestanding',
'-fno-builtin',
'-mlongcalls',
'-mfix-esp32-psram-cache-issue',
# Manually define the missing inttypes.h macros
'-DPRId64="lld"',
'-DPRIu64="llu"',
'-DPRIi64="lli"',
'-DPRId32="d"',
'-DPRIu32="u"',
'-DPRIx64="llx"'
]
c_link_args = [
'-nostdlib',
'-static'
]
# Ensure we only build static libraries for bare-metal
default_library = 'static'