chore: Build System, Toolchain Improvements and Entry Point Enhancements #23
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.
This pull request introduces several improvements and fixes across the build scripts, runtime entry points, toolchain management, and documentation for ZeroOS. The changes enhance platform flexibility, improve error reporting, add troubleshooting resources, and provide more robust build and toolchain handling.
Key changes include:
Build System and Toolchain Improvements
build_binaryfunction by introducing a newbuild_binary_with_rustflagsfunction, allowing more flexible build configurations. [1] [2] [3]get_or_install_or_build_toolchain, which attempts to resolve, download, or build the toolchain from source as needed, making toolchain setup more robust. [1] [2]Platform and Entry Point Enhancements
zeroos-foundationto define__main_entryas a weak symbol that jumps to__default_main_entry, allowing platforms and SDKs to override the entry point as needed. [1] [2] [3] [4]build.rsto include the current architecture, aiding in debugging build target issues.Build Script and Feature Adjustments
build-fibonacci.sh,build-std-smoke.sh) to include thewith-spikefeature and, forstd-smoke, to specify memory, stack, and heap sizes, improving testing and simulation accuracy. [1] [2] [3]fibonacciexample to not includewith-spikeby default, requiring explicit opt-in for spike simulation.Documentation and Troubleshooting
-Copt-level=z, helping users diagnose and work around this issue. [1] [2]Other Cleanups