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:
parent
21188ce37e
commit
4f090eb7fd
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue