Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created July 27, 2022 07:51
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/8d7a2a360bc4d14264c77f82da58b3dc to your computer and use it in GitHub Desktop.
Save lupyuen/8d7a2a360bc4d14264c77f82da58b3dc to your computer and use it in GitHub Desktop.
Build Log for Zig Sensor App for NuttX. See https://lupyuen.github.io/articles/sensor
$ 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/225ca7d95fca6c486c3ec44d2eb6e922/cimport.h
info(compilation): C import .d file: zig-cache/o/225ca7d95fca6c486c3ec44d2eb6e922/cimport.h.d
info(compilation): C import output: zig-cache/o/0be5abc301158e493ffd7c9f83560860/cimport.zig
$ sed 's/00000024: 01/00000024: 03/' \
| xxd -r -c 1 - sensortest2.o \
| xxd -c 1 sensortest.o
$ 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