From 0d881bc974b74dff75c00a3cab5d535cbb2ace46 Mon Sep 17 00:00:00 2001 From: johannst Date: Fri, 26 Feb 2021 23:19:03 +0100 Subject: added implementation for armv7a --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0681880..08d4494 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ ARCH ?= x86_64 ifeq ($(ARCH),arm64) PREFIX := aarch64-linux-gnu- +else ifeq ($(ARCH),arm) +PREFIX := arm-linux-gnueabi- endif CXX := $(PREFIX)g++ @@ -28,6 +30,11 @@ ifeq ($(ARCH),arm64) -L /usr/aarch64-linux-gnu \ -E LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib \ $< +else ifeq ($(ARCH),arm) + qemu-arm \ + -L /usr/arm-linux-gnueabi \ + -E LD_LIBRARY_PATH=/usr/arm-linux-gnueabi/lib \ + $< else $< endif @@ -40,6 +47,13 @@ ifeq ($(ARCH),arm64) -g 1234 \ $< & gdb-multiarch -ex 'target remote :1234' -ex 'b main' -ex 'c' $< +else ifeq ($(ARCH),arm) + qemu-arm \ + -L /usr/arm-linux-gnueabi \ + -E LD_LIBRARY_PATH=/usr/arm-linux-gnueabi/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