arch/sparc: Move toolchain macro from board's Make.defs to Toolchain.defs

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-05-12 21:44:51 +08:00 committed by Petro Karashchenko
parent 21188ce37e
commit 4f090eb7fd
3 changed files with 10 additions and 20 deletions

View File

@ -101,3 +101,13 @@ ifeq ($(CONFIG_SPARC_TOOLCHAIN),CODEREDW)
LDFLAGS += -nostartfiles -nodefaultlibs LDFLAGS += -nostartfiles -nodefaultlibs
LDSCRIPT = sparc-elf-debug.ld LDSCRIPT = sparc-elf-debug.ld
endif endif
CC = $(CROSSDEV)gcc
CXX = $(CROSSDEV)g++
CPP = $(CROSSDEV)gcc -E
LD = $(CROSSDEV)ld
STRIP = $(CROSSDEV)strip --strip-unneeded
AR = $(CROSSDEV)ar rcs
NM = $(CROSSDEV)nm
OBJCOPY = $(CROSSDEV)objcopy
OBJDUMP = $(CROSSDEV)objdump

View File

@ -28,16 +28,6 @@ ARCHSCRIPT += $(TOPDIR)/boards/$(CONFIG_ARCH)/$(CONFIG_ARCH_CHIP)/$(CONFIG_ARCH_
ARCHINCLUDES = -I. -isystem $(call CONVERT_PATH,$(TOPDIR)/include) ARCHINCLUDES = -I. -isystem $(call CONVERT_PATH,$(TOPDIR)/include)
ARCHXXINCLUDES = $(ARCHINCLUDES) -isystem $(call CONVERT_PATH,$(TOPDIR)/include/cxx) ARCHXXINCLUDES = $(ARCHINCLUDES) -isystem $(call CONVERT_PATH,$(TOPDIR)/include/cxx)
CC = $(CROSSDEV)gcc
CXX = $(CROSSDEV)g++
CPP = $(CROSSDEV)gcc -E
LD = $(CROSSDEV)ld
STRIP = $(CROSSDEV)strip --strip-unneeded
AR = $(CROSSDEV)ar rcs
NM = $(CROSSDEV)nm
OBJCOPY = $(CROSSDEV)objcopy
OBJDUMP = $(CROSSDEV)objdump
# ARCHOPTIMIZATION += -fno-zero-initialized-in-bss # ARCHOPTIMIZATION += -fno-zero-initialized-in-bss
# 20210818 zouboan # 20210818 zouboan

View File

@ -28,16 +28,6 @@ ARCHSCRIPT += $(TOPDIR)/boards/$(CONFIG_ARCH)/$(CONFIG_ARCH_CHIP)/$(CONFIG_ARCH_
ARCHINCLUDES = -I. -isystem $(call CONVERT_PATH,$(TOPDIR)/include) ARCHINCLUDES = -I. -isystem $(call CONVERT_PATH,$(TOPDIR)/include)
ARCHXXINCLUDES = $(ARCHINCLUDES) -isystem $(call CONVERT_PATH,$(TOPDIR)/include/cxx) ARCHXXINCLUDES = $(ARCHINCLUDES) -isystem $(call CONVERT_PATH,$(TOPDIR)/include/cxx)
CC = $(CROSSDEV)gcc
CXX = $(CROSSDEV)g++
CPP = $(CROSSDEV)gcc -E
LD = $(CROSSDEV)ld
STRIP = $(CROSSDEV)strip --strip-unneeded
AR = $(CROSSDEV)ar rcs
NM = $(CROSSDEV)nm
OBJCOPY = $(CROSSDEV)objcopy
OBJDUMP = $(CROSSDEV)objdump
# ARCHOPTIMIZATION += -fno-zero-initialized-in-bss # ARCHOPTIMIZATION += -fno-zero-initialized-in-bss
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef