Oopenvela-robotapps/rust: makefile updates for unified library build system
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
examples/rust: Rename hello_rust to rust/baremetal Summary: - Renamed hello_rust example to rust/baremetal to better reflect its purpose - Updated file headers and Makefile paths - Maintained all existing Kconfig options and functionality - Prepares for future Rust development patterns where Cargo will be the mainstream approach, with baremetal demonstrating traditional build method - Creates clearer structure for Rust examples as we expand Rust support Impact: - No functional changes to the example itself - Better organization of Rust examples under examples/rust/ - Existing configurations using this example will continue to work - Build system will now look for the example in the new location Testing: - Confirmed Kconfig options remain unchanged - GitHub CI passed and local build tested Signed-off-by: Huang Qi <huangqi3@xiaomi.com> | 2 个月前 | |
apps/rust: makefile updates for unified library build system Replace individual Rust crate building with unified library approach through makefile modifications for better build performance and dependency management. * Updated Application.mk to include Rust.mk and add unified build targets * Modified top-level Makefile to integrate RUST_BUILD_UNIFIED in build process * Added RUST_CLEAN_UNIFIED call to Application.mk clean target * Updated Makefile distclean target to remove rust_unified_lib directory * Updated example Makefiles to use nuttx_add_rust registration function * Removed manual EXTRA_LIBS configurations from Rust example Make.defs files * Added .rdat registry files and rust_unified_lib to gitignore * Enhanced tools/Rust.mk with unified build system functions The unified system builds all registered Rust crates together through makefile integration, improving compilation efficiency and enabling better dependency management across the NuttX applications framework. Signed-off-by: Huang Qi <huangqi3@xiaomi.com> | 2 个月前 | |
apps/rust: makefile updates for unified library build system Replace individual Rust crate building with unified library approach through makefile modifications for better build performance and dependency management. * Updated Application.mk to include Rust.mk and add unified build targets * Modified top-level Makefile to integrate RUST_BUILD_UNIFIED in build process * Added RUST_CLEAN_UNIFIED call to Application.mk clean target * Updated Makefile distclean target to remove rust_unified_lib directory * Updated example Makefiles to use nuttx_add_rust registration function * Removed manual EXTRA_LIBS configurations from Rust example Make.defs files * Added .rdat registry files and rust_unified_lib to gitignore * Enhanced tools/Rust.mk with unified build system functions The unified system builds all registered Rust crates together through makefile integration, improving compilation efficiency and enabling better dependency management across the NuttX applications framework. Signed-off-by: Huang Qi <huangqi3@xiaomi.com> | 2 个月前 | |
examples: New app to build Rust with Cargo Build Rust applictions with cargo is the most commn way, and it's more easy to cooporate with Rust ecosystem. This example shows how to use cargo to build a simple hello world application. And please notice that you need to install nighly version of rustc to support this feature, any version after https://github.com/rust-lang/rust/pull/127755 is merged, can use NuttX as cargo target directly. Build ----- To build hello_rust_cargo application, you can use any target that based on RISCV32IMAC, for example: cmake -B build -DBOARD_CONFIG=rv-virt:nsh -GNinja . And disable ARCH_FPU in menuconfig, since the hard coded target triple in this demo is riscv32imac. Signed-off-by: Huang Qi <huangqi3@xiaomi.com> | 2 个月前 | |
examples: New app to build Rust with Cargo Build Rust applictions with cargo is the most commn way, and it's more easy to cooporate with Rust ecosystem. This example shows how to use cargo to build a simple hello world application. And please notice that you need to install nighly version of rustc to support this feature, any version after https://github.com/rust-lang/rust/pull/127755 is merged, can use NuttX as cargo target directly. Build ----- To build hello_rust_cargo application, you can use any target that based on RISCV32IMAC, for example: cmake -B build -DBOARD_CONFIG=rv-virt:nsh -GNinja . And disable ARCH_FPU in menuconfig, since the hard coded target triple in this demo is riscv32imac. Signed-off-by: Huang Qi <huangqi3@xiaomi.com> | 2 个月前 | |
examples: New app to build Rust with Cargo Build Rust applictions with cargo is the most commn way, and it's more easy to cooporate with Rust ecosystem. This example shows how to use cargo to build a simple hello world application. And please notice that you need to install nighly version of rustc to support this feature, any version after https://github.com/rust-lang/rust/pull/127755 is merged, can use NuttX as cargo target directly. Build ----- To build hello_rust_cargo application, you can use any target that based on RISCV32IMAC, for example: cmake -B build -DBOARD_CONFIG=rv-virt:nsh -GNinja . And disable ARCH_FPU in menuconfig, since the hard coded target triple in this demo is riscv32imac. Signed-off-by: Huang Qi <huangqi3@xiaomi.com> | 2 个月前 | |
examples: New app to build Rust with Cargo Build Rust applictions with cargo is the most commn way, and it's more easy to cooporate with Rust ecosystem. This example shows how to use cargo to build a simple hello world application. And please notice that you need to install nighly version of rustc to support this feature, any version after https://github.com/rust-lang/rust/pull/127755 is merged, can use NuttX as cargo target directly. Build ----- To build hello_rust_cargo application, you can use any target that based on RISCV32IMAC, for example: cmake -B build -DBOARD_CONFIG=rv-virt:nsh -GNinja . And disable ARCH_FPU in menuconfig, since the hard coded target triple in this demo is riscv32imac. Signed-off-by: Huang Qi <huangqi3@xiaomi.com> | 2 个月前 |