From ea367171ec58fd79872a25cb7bc233a0ca667b37 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Thu, 19 Jan 2023 13:43:06 +0000 Subject: [PATCH] Omit 'as' debug level for toolchain compatability More recent versions of aarch64-none-elf-as don't support passing a debug level to -g. Signed-off-by: Nick Spinale --- libmicrokit/Makefile | 2 +- loader/Makefile | 2 +- monitor/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libmicrokit/Makefile b/libmicrokit/Makefile index 90c5a0642..97313480f 100644 --- a/libmicrokit/Makefile +++ b/libmicrokit/Makefile @@ -22,7 +22,7 @@ $(BUILD_DIR)/%.o : src/%.S $(TOOLCHAIN)gcc -x assembler-with-cpp -c -g3 -mcpu=$(GCC_CPU) $< -o $@ $(BUILD_DIR)/%.o : src/%.s - $(TOOLCHAIN)as -g3 -mcpu=$(GCC_CPU) $< -o $@ + $(TOOLCHAIN)as -g -mcpu=$(GCC_CPU) $< -o $@ $(BUILD_DIR)/%.o : src/%.c $(TOOLCHAIN)gcc -c $(CFLAGS) $< -o $@ diff --git a/loader/Makefile b/loader/Makefile index 37039d5dc..8c431014f 100644 --- a/loader/Makefile +++ b/loader/Makefile @@ -32,7 +32,7 @@ $(BUILD_DIR)/%.o : src/%.S $(TOOLCHAIN)gcc -x assembler-with-cpp -c -g3 -mcpu=$(GCC_CPU) $< -o $@ $(BUILD_DIR)/%.o : src/%.s - $(TOOLCHAIN)as -g3 -mcpu=$(GCC_CPU) $< -o $@ + $(TOOLCHAIN)as -g -mcpu=$(GCC_CPU) $< -o $@ $(BUILD_DIR)/%.o : src/%.c $(TOOLCHAIN)gcc -c $(CFLAGS) $< -o $@ diff --git a/monitor/Makefile b/monitor/Makefile index 7129856c9..569f4d2be 100644 --- a/monitor/Makefile +++ b/monitor/Makefile @@ -22,7 +22,7 @@ $(BUILD_DIR)/%.o : src/%.S $(TOOLCHAIN)gcc -x assembler-with-cpp -c -g3 -mcpu=$(GCC_CPU) $< -o $@ $(BUILD_DIR)/%.o : src/%.s - $(TOOLCHAIN)as -g3 -mcpu=$(GCC_CPU) $< -o $@ + $(TOOLCHAIN)as -g -mcpu=$(GCC_CPU) $< -o $@ $(BUILD_DIR)/%.o : src/%.c $(TOOLCHAIN)gcc -c $(CFLAGS) $< -o $@