Boie, Andrew P
On Fri, 2016-09-02 at 15:46 +0100, Jon Medhurst (Tixy) wrote:I'm trying to add Zephyr support for a board  where the 'SoC' is anI realised this and $subject may be a bit ambiguous, I meant that the FPGA can
What I did for Nios II (which is a soft-CPU that runs on Altera FPGAs) is to define each different Nios II configuration as a different soc in the Zephyr build.
So for example I have the "nios2f-zephyr" soc which is the reference config. Then another one "nios2-qemu" for the QEMU emulator which has slightly different settings. Each one has a system.h header file with all the configuration details. In this case the system.h was generated by the Altera tools.
See arch/nios2/soc/ for what I mean.
This is assuming that the CPU types you want to support are of a family of the same basic architecture with different configuration options.