Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active August 16, 2022 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lupyuen/eddfb4a11ed306d478f47adece9d6e1a to your computer and use it in GitHub Desktop.
Save lupyuen/eddfb4a11ed306d478f47adece9d6e1a to your computer and use it in GitHub Desktop.
Build Log for Zig Sensor App for NuttX. See https://lupyuen.github.io/articles/visual
$ zig version
0.10.0-dev.3475+b3d463c9e
$ cd ../visual-zig-nuttx
$ zig build-obj --verbose-cimport -target riscv32-freestanding-none -mcpu=baseline_rv32-d -isystem /home/user/nuttx/nuttx/include -I /home/user/nuttx/apps/include sensortest.zig
info(compilation): C import source: zig-cache/o/6c2b6a2c20914958b6bbe0e669176f8a/cimport.h
info(compilation): C import .d file: zig-cache/o/6c2b6a2c20914958b6bbe0e669176f8a/cimport.h.d
info(compilation): C import output: zig-cache/o/62bc6a6c5737b18fde4a577bb700f7ca/cimport.zig
$ xxd -c 1 sensortest.o \
| xxd -r -c 1 - sensortest2.o \
| sed 's/00000024: 01/00000024: 03/'
$ cp sensortest2.o sensortest.o
$ cp sensortest.o /home/user/nuttx/apps/testing/sensortest/sensortest.c.home.user.nuttx.apps.testing.sensortest.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment