Remove duplicate linker script definitions

## Summary
A lot of linker scripts were listed twice, once for unix, once for windows.

This PR cleans up the logic so they're only listed once.

 ## Impact
Any opportunity to use a single source of truth and reduce lines of code is a win!

 ## Testing
CI will test all build
This commit is contained in:
Alan Rosenthal
2022-02-14 16:29:40 -05:00
committed by Xiang Xiao
parent 68a305438b
commit 8defb843aa
272 changed files with 383 additions and 1429 deletions
+2 -3
View File
@@ -30,12 +30,11 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
endif
ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
ARCHSCRIPT = -T "${shell cygpath -w $(BOARD_DIR)$(DELIM)scripts$(DELIM)qemu.ld}"
MAXOPTIMIZATION = -O2
else
ARCHSCRIPT = -T$(BOARD_DIR)$(DELIM)scripts$(DELIM)qemu.ld
endif
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)qemu.ld
ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-builtin -fno-stack-protector
ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef