From 2e4a31287705d8437cddd109c12b7e11825192bc Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 9 Jun 2021 23:05:05 +0200 Subject: added riscv64 --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5c110ec..57bfb22 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ ifeq ($(ARCH),arm64) PREFIX := aarch64-linux-gnu- else ifeq ($(ARCH),arm) PREFIX := arm-linux-gnueabi- +else ifeq ($(ARCH),riscv64) +PREFIX := riscv64-linux-gnu- endif CXX := $(PREFIX)g++ @@ -35,6 +37,11 @@ else ifeq ($(ARCH),arm) -L /usr/arm-linux-gnueabi \ -E LD_LIBRARY_PATH=/usr/arm-linux-gnueabi/lib \ $< +else ifeq ($(ARCH),riscv64) + qemu-riscv64 \ + -L /usr/riscv64-linux-gnu \ + -E LD_LIBRARY_PATH=/usr/riscv64-linux-gnu/lib \ + $< else $< endif @@ -54,6 +61,13 @@ else ifeq ($(ARCH),arm) -g 1234 \ $< & gdb-multiarch -ex 'target remote :1234' -ex 'b main' -ex 'c' $< +else ifeq ($(ARCH),riscv64) + qemu-riscv64 \ + -L /usr/riscv64-linux-gnu \ + -E LD_LIBRARY_PATH=/usr/riscv64-linux-gnu/lib \ + -g 1234 \ + $< & + gdb-multiarch -ex 'target remote :1234' -ex 'b main' -ex 'c' $< else which cgdb && cgdb --ex 'start' $< \ || gdb --ex 'start' $< -- cgit v1.2.3