Hello, CONTRIBUTING.md 1.13 asks for a discussion on dev@ before the vote on a breaking change. This is the discussion for:
https://github.com/apache/nuttx/pull/22584 What changes: uname() gives the Linux machine name on two architectures: "aarch64" instead of "arm64", and "riscv64" or "riscv32" instead of "risc-v". The other architectures keep CONFIG_ARCH (x86_64 already gives "x86_64"). The change is the same in flat, protected and kernel builds. Why: scripts and language runtimes detect the platform with "uname -m" or uname() and compare the result with the Linux names. With "arm64" and "risc-v", each of them needs a special case for NuttX. Who is affected: NSH "uname -m" and "uname -a", the assert dump header and the core dump note show the new name. In nuttx and nuttx-apps, only boards/risc-v/erbium/minion/tools/test_emu.py compared the name; the PR updates it. nxpkg and nxdiag use CONFIG_ARCH and do not change. Out-of-tree code that compares the machine field with "arm64" or "risc-v" is affected. Quick fix: accept "aarch64", "riscv64" and "riscv32" too, or compare CONFIG_ARCH at build time. The alternative: Tomasz proposed a Kconfig option (default CONFIG_ARCH) to select the Linux names. Then the same CPU has two names, and portable programs must accept both. I prefer one name, the same as Linux. I will add build and runtime logs from real hardware (1.14) to the PR, and start the vote after this discussion. Please send your comments here or in the PR. Best regards, Marco Casaroli
