From 7fa5431ea4eb18d872b47f52bdd6d310997a2911 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Wed, 13 Jul 2022 13:56:51 -0400 Subject: [PATCH] add Makefile to software --- software/Makefile | 5 +++++ software/mk.sh | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 software/Makefile delete mode 100755 software/mk.sh diff --git a/software/Makefile b/software/Makefile new file mode 100644 index 0000000..ca3658a --- /dev/null +++ b/software/Makefile @@ -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 diff --git a/software/mk.sh b/software/mk.sh deleted file mode 100755 index efa3a0d..0000000 --- a/software/mk.sh +++ /dev/null @@ -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