Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make FuPy MicroPython arch independent #3

Open
mithro opened this issue Mar 15, 2017 · 3 comments
Open

Make FuPy MicroPython arch independent #3

mithro opened this issue Mar 15, 2017 · 3 comments

Comments

@mithro
Copy link
Member

mithro commented Mar 15, 2017

LiteX supports multiple CPU architectures, lets try and support all of them!

@mithro
Copy link
Member Author

mithro commented Aug 13, 2017

I think this has been done now? https://github.com/upy-fpga/micropython/tree/master/litex

Just need to check if or1k is working.

@ewenmcneill
Copy link

@mithro or1k is not working for MicroPython. The top level failure is that ports/fupy/irq.h tries to include system.h for or1k, which looks like it has to be the third_party/litex/litex/soc/software/include/base/system.h, which in turn needs third_party/litex/litex/soc/software/include/base/spr-defs.h, and both of those are included as if they're directly on the include path.

While we can fiddle with INC and ASFLAGS in ports/fupy/Makefile to make them appear directly on the include path, the result of doing that is that then a bunch of other include files of our libc are then coming from that directory which breaks a bunch of other things :-(

I suspect the only workable option is to copy system.h and spr-defs.h (and csr-defs.h for vexriscv) out of the litex directory, into a build directory... probably generated, so that's what I am going to try next.

Ewen

@ewenmcneill
Copy link

@mithro Created WIP pull requests to record progress to date -- it seems closer with copying in relevant header files (rather than changing include path), but build still fails in ports/fupy/Makefile for other reasons (see timvideos/litex-buildenv#41).

Needs: timvideos/litex-buildenv#41 and #50, to attempt building, plus possibly some other changes.

Ewen

@ewenmcneill ewenmcneill changed the title Rename directory from lm32 to litex and make arch independent Make FuPy MicroPython arch independent Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants