ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
296 stars 19 forks source link

Add firmware/simulator for closed source #537

Closed ohmtech-rdi closed 1 year ago

ohmtech-rdi commented 1 year ago

Add firmware/simulator for closed source

Typically:

# install the simulator module, codesign ad-hoc on macOS
erbb install simulator

# Install the firmware like normal
erbb install openocd

From an erbb perspective, we still need to retain some properties like section. So what changes really, is instead of having source files and library imports, we have just some binaries:

// Foo.erbb

module Foo {
   section qspi
   binaries {
      firmware {
         elf "Foo.elf"
         bin "Foo.bin"
      }
      simulator "Foo"
   }
}

For the simulator, we should be able to make some sort of "universal" module by bundling the macOS dylib, Windows dll and Linux so in one package.

$ erbb configure
Nothing to configure. Proceed directly to install:
erbb install simulator
erbb install
$ erbb build
Nothing to build. Proceed directly to install:
erbb install simulator
erbb install
ohmtech-rdi commented 1 year ago

Actually, we don't need all this. With everything at the right path, we can just erbb install dfu and erbb install openocd already. We just need to add erbb install simulator mode.