# Build the application for robokit1 examples/hello_bazel $ bazelisk build :app --platforms=//:robokit1 # Test the native_sim build, which can run on the host examples/hello_bazel $ bazelisk test :test_native_sim --platforms=:native_sim # Run the default workflow (builds robokit1 and tests native_sim) examples/hello_bazel $ ./pw default
Some files like autoconf.h and kobj-types-enum.h are generated by the Zephyr build process. While that has been replicated by the Bazel build, if needed those files can be generated as part of the Zephyr build toolchain using, and listed with:
$ west build -p -b robokit1 samples/cpp/hello_world $ ls ./build/zephyr/include/generated/zephyr
(Just be sure to use the same SHA for Zephyr as in MODULE.bazel)
Using a build log we can scan to see which files were generated using:
grep -oP '\-o [\w_\-+/\.]+\.o(bj)?' ${log_file} | sort -u