Adam
11/24/2024, 10:56 AMC:\Users\lenovo\.cache\jaguar\sdk\bin\toit.compile.exe -o esp32_binary .\hello_world.toit
This ^^^ compile to windows os and arch.
[--os ] // Cross-compilation system target.
[--arch ] // Cross-compilation architecture target.
Can I set these ^^^ options somehow to compile for esp32?
2. If 1. above work, I can copy the esp32_binary output file and the jag_linux_arm.tgz to a router with openwrt OS.
Can I run "jag scan" on the router to detect the esp32 behind router, and run "jag container install ..." to install the compiled esp32_binary?
I don't wan't to run "toit.compile" on openwrt (if possible).
My developer laptop is not on the same wifi network as the target esp32. I have no experience. Is this scenario possible? Or any better idea?floitsch
11/24/2024, 10:59 AM--snapshot option of toit compile).floitsch
11/24/2024, 11:00 AMfloitsch
11/24/2024, 11:01 AMjag (the executable) doesn't support that yet, but internally it itself compiles to a snapshot first, so adding support for it would just require to add a new command (or check) that skips the compilation and takes the snapshot you provide.floitsch
11/24/2024, 11:01 AMAdam
11/24/2024, 11:04 AMfloitsch
11/24/2024, 11:05 AMjag container install just looks at the file you give and verifies if it is already a snapshot: https://github.com/toitlang/jaguar/blob/6550830ca6904fed2c8fb368a6be3407b6e4d52a/cmd/jag/commands/run.go#L257floitsch
11/24/2024, 11:07 AMtoit compile instead of toit.compile. we are planning to phase out (or at least hide) the toit.xxx binaries.Adam
11/24/2024, 11:13 AMfloitsch
11/24/2024, 11:18 AM