[xtensa] support multiple config using the same xt-sim board #78198
Replies: 5 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
| Please note that config  | 
Beta Was this translation helpful? Give feedback.
-
| xt-sim is a simulator and is not a board. If you need to support a new SoC, you need to create a new SoC configuration and corresponding board configuration. In the board configuration, you can specify that you want to use xt-sim as the simulator. | 
Beta Was this translation helpful? Give feedback.
-
| Maybe you can follow the arty_a7 board and see what changes you can make to enable your usage? | 
Beta Was this translation helpful? Give feedback.
-
| We don't really have a clean answer here. The metaphor is that boards/soc/arch is fixed hierarchically. Strictly you'd want a separate board variant defined for every XTENSA_CORE, which is exactly what you don't want. This is unlikely to work without surgery. Note that the DTS is downstream of kconfig, so it would be possible to define e.g. a "ARCH_XTENSA_CORE_ID" variable which you'd then select on in the dts, which can reduce some boilerplate. Then if you wanted to use the $XTENSA_CORE variable in the environment, you'd need to extract it in the cmake somewhere and set it in kconfig. Mostly it just requries some thought and design, I suspect. I'm not the hardware model expert, really. | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When using Xtensa tools the environment variable
XTENSA_COREmust be set to the config to use.Currently the board
xt-simis hardwired to usesample_controller, andXTENSA_COREmust be set tosample_controller.I would like to support the config
hifi5s_ao_7using the boardxt-sim.I implemented the support and successfully built and ran
samples/hello_worldin the following commit:williamtcdns@db88e999ed6
However, in doing so, I have to replace the hardwired use of
sample_controllerbyhifi5s_ao_7by editing 3 files:Is it possible to have above 3 edited files automatically select between
sample_controllerandhifi5s_ao_7based on the value of the environment variableXTENSA_CORE?Beta Was this translation helpful? Give feedback.
All reactions