Skip to content

Commit

Permalink
Omit 'as' debug level for toolchain compatability
Browse files Browse the repository at this point in the history
More recent versions of aarch64-none-elf-as don't support passing a
debug level to -g.

Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 25, 2023
1 parent 95a4ab3 commit ea36717
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libmicrokit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down
2 changes: 1 addition & 1 deletion loader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down
2 changes: 1 addition & 1 deletion monitor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down

0 comments on commit ea36717

Please sign in to comment.