lupyuen commented on PR #2487:
URL: https://github.com/apache/nuttx-apps/pull/2487#issuecomment-2579136744

   
https://gist.github.com/lupyuen/b81596576e393be0abac2b7687740052#file-gistfile1-txt-L870
   Sorry @no1wudi why is `hello_rust_cargo` missing from the NuttX Image?
   ```text
   $ cmake --build build -t clean
   $ grep HELLO build/.config
   CONFIG_EXAMPLES_HELLO_RUST_CARGO=y
   CONFIG_EXAMPLES_HELLO_RUST_CARGO_PROGNAME="hello_rust_cargo"
   CONFIG_EXAMPLES_HELLO_RUST_CARGO_PRIORITY=100
   CONFIG_EXAMPLES_HELLO_RUST_CARGO_STACKSIZE=2048
   
   $ cmake --build build
   [1281/1284] Building Rust crate hello
       Finished `release` profile [optimized] target(s) in 0.30s
   [1283/1284] Linking C executable nuttx
   
/home/luppy/xpack-riscv-none-elf-gcc-13.2.0-2/bin/../lib/gcc/riscv-none-elf/13.2.0/../../../../riscv-none-elf/bin/ld:
 warning: nuttx has a LOAD segment with RWX permissions
   [1284/1284] Generating System.map
   
   $ qemu-system-riscv32 -semihosting -M virt,aclint=on -cpu rv32 -smp 8 -bios 
build/nuttx -nographic
   ABC
   NuttShell (NSH) NuttX-10.0.1
   nsh> help
   Builtin Apps:
       nsh         sh          getprime    ostest      hello       
   
   nsh> hello_rust_cargo
   nsh: hello_rust_cargo: command not found
   
   $ grep hello_rust_cargo build/nuttx.map
   LOAD 
apps/examples/hello_rust_cargo/hello/riscv32imac-unknown-nuttx-elf/release/libhello.a
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to