add Makefile to software

This commit is contained in:
Peter McGoron 2022-07-13 13:56:51 -04:00
parent 50a3989e98
commit 7fa5431ea4
2 changed files with 5 additions and 7 deletions

5
software/Makefile Normal file
View File

@ -0,0 +1,5 @@
kernel: src/*.c ../firmware/overlay.dts ../firmware/io_pins.h
mkdir -p build
cd build && cmake $$(cat ../../firmware/overlay.config) -DDTC_OVERLAY_FILE=../firmware/overlay.dts -DBOARD=litex_vexriscv .. && make -j7
clean:
rm -rf build

View File

@ -1,7 +0,0 @@
#!/bin/sh
set -x
mkdir -p build
cd build
cmake $(cat ../../firmware/overlay.config) -DDTC_OVERLAY_FILE=../firmware/overlay.dts -DBOARD=litex_vexriscv .. && make -j7