diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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' $< |