support for native_sim target on Zephyr RTOS #3242
-
Hello, It would be very interesting to support the native_sim target for the zephyr platform. This is very useful for testing and development. Zephyr provides its own abstraction layer, allows access to emulated gpio, etc. Essentially you would be able to run an emulated server, and readback emulated gpio state using the emulated drivers When I try and build for the native_sim target, i believe mongoose is trying to link with MG_ARCH_UNIX. Even though im doing my best to try and get it to be MG_ARCH_ZEPHYR. Likely something going on with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Instead of guessing, let's try doing the right thing. |
Beta Was this translation helpful? Give feedback.
i got it to build and link using
This is apparently a hack that the zephyr tooling is doing to strip away any HOST compiler definitions which forces the compiler to rely on zephyr's system includes. So by copying this strategy when building mongoose seems ok so far
Ill report back any other tweaks i need along the way!
As far as paying customers go, we're evaluating! ...the stock zephyr HTTP server is not very good. (See my rant here)