Commit Graph

9 Commits

Author SHA1 Message Date
Sean Cross
5fe9a814ea sw: support riscv64 on raspberry pi
The name of the compiler has changed on raspberry pi, so support the
previous name as well as the new one.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-06-19 08:20:43 -07:00
Sean Cross
b8145bde36 sw: use correct abi
The CPU we're using has no div/mul instructions, so use the rv32i ABI
instead of rv32im.

This saves about 15%.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-25 13:29:27 +08:00
Sean Cross
cd6151b009 sw: add -flto to cflags
This reduces codesize by 15% (~1 kB).

Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-25 12:07:13 +08:00
Sean Cross
595be29063 sw: Makefile: use 32-bit riscv compiler on rpi
The rpi image does not have a 64-bit riscv compiler.  Use the
32-bit version of the toolchain if we detect we're on an rpi.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-07 04:55:13 +01:00
Sean Cross
91a23d808c sw: Makefile: fix third_party and package naming
With these changes, litex mode should now work.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-06 10:51:08 +08:00
Sean Cross
2437e8b5c1 sw: Makefile: support litex build environment
Allow this software package to be built from within the Litex build system.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-06 09:34:26 +08:00
Sean Cross
3d6acaf51e sw: wip commit -- getting dfu working
Now that we have SPI and USB both working, we can start to close the
loop and get DFU working.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-25 17:39:06 +08:00
Sean Cross
7f30d7f79b sw: Makefile: hardcode project name to "foboot"
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-05 15:49:21 +08:00
Sean Cross
84d4b40897 foboot: move software stuff to sw directory
Signed-off-by: Sean Cross <sean@xobs.io>
2019-03-05 08:54:51 +08:00