zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.82k stars 6.59k forks source link

Out of tree soc sample #45566

Open junkbondtrader opened 2 years ago

junkbondtrader commented 2 years ago

Is your enhancement proposal related to a problem? Please describe. I have been unable to pull a riscv-privilege soc out of tree. Placing it in an application/soc/riscv/riscv-privilege folder leads to the Kconfigs seemingly not being discovered. Placing it in an application/soc/riscv folder results in unresolved dependencies.

Describe the solution you'd like I would love to see a sample of an out of tree soc, particularly that is part of an soc family.

Describe alternatives you've considered I've tried getting this working on my own without success. I haven't been able to find examples of others doing so successfully. I've tried this with my own custom soc that works in tree as well as with the sifive-freedom soc as a sanity check (and to attempt to show what an unsuccessful example looks like).

Additional context I'm happy to provide any additional context that would be helpful. My end goal is just to get this working but I think a sample would more useful to others going forward.

henrikbrixandersen commented 1 year ago

I'm happy to provide any additional context that would be helpful.

A non-working example repo along with error messages would be good.

OkannShn commented 1 year ago

Is your enhancement proposal related to a problem? Please describe. I have been unable to pull a riscv-privilege soc out of tree. Placing it in an application/soc/riscv/riscv-privilege folder leads to the Kconfigs seemingly not being discovered. Placing it in an application/soc/riscv folder results in unresolved dependencies.

Describe the solution you'd like I would love to see a sample of an out of tree soc, particularly that is part of an soc family.

Describe alternatives you've considered I've tried getting this working on my own without success. I haven't been able to find examples of others doing so successfully. I've tried this with my own custom soc that works in tree as well as with the sifive-freedom soc as a sanity check (and to attempt to show what an unsuccessful example looks like).

Additional context I'm happy to provide any additional context that would be helpful. My end goal is just to get this working but I think a sample would more useful to others going forward.

Did you find a solution for out-of-tree soc porting?