Browse Source

cosmetic changes for ABI selection

Waldemar Brodkorb 6 years ago
parent
commit
662e918e93
4 changed files with 9 additions and 13 deletions
  1. 4 9
      package/gcc/Makefile
  2. 2 1
      rules.mk
  3. 1 1
      target/config/Config.in.abi
  4. 2 2
      toolchain/gcc/Makefile

+ 4 - 9
package/gcc/Makefile

@@ -31,7 +31,7 @@ TARGET_CFLAGS:=
 TARGET_CXXFLAGS:=
 TARGET_LDFLAGS:=
 
-ifeq ($(ADK_TARGET_LINUX_ARCH_XTENSA),y)
+ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
 GCC_EXTRA_CFLAGS:=	-mtext-section-literals
 GCC_EXTRA_CXXFLAGS:=	-mtext-section-literals
 endif
@@ -40,14 +40,8 @@ endif
 CONFIGURE_ENV+=		CC="${TARGET_CC} ${GCC_EXTRA_CFLAGS}"
 CONFIGURE_ENV+=		CXX="${TARGET_CXX} ${GCC_EXTRA_CXXFLAGS}"
 
-ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
-CONFIGURE_ARGS+=       --with-abi=$(ADK_TARGET_MIPS_ABI)
-endif
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS64),y)
-CONFIGURE_ARGS+=       --with-abi=$(ADK_TARGET_MIPS_ABI)
-endif
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_MIPS64EL),y)
-CONFIGURE_ARGS+=       --with-abi=$(ADK_TARGET_MIPS_ABI)
+ifeq ($(ADK_TARGET_ARCH_MIPS64),y)
+CONFIGURE_ARGS+=       --with-abi=$(ADK_TARGET_ABI_MIPS64)
 endif
 
 ifneq ($(ADK_PACKAGE_GXX),)
@@ -55,6 +49,7 @@ CONFIGURE_ARGS+=	--enable-languages=c,c++
 else
 CONFIGURE_ARGS+=	--enable-languages=c
 endif
+
 ifeq ($(ADK_TARGET_LINUX_ARCH_PPC),y)
 CONFIGURE_ARGS+=	--disable-target-optspace --with-long-double-64 --enable-secureplt
 else

+ 2 - 1
rules.mk

@@ -48,7 +48,8 @@ ADK_TARGET_CPU_FLAGS:=			$(strip $(subst ",, $(ADK_TARGET_CPU_FLAGS)))
 ADK_TARGET_CFLAGS_OPT:=			$(strip $(subst ",, $(ADK_TARGET_CFLAGS_OPT)))
 ADK_TARGET_ABI_CFLAGS:=			$(strip $(subst ",, $(ADK_TARGET_ABI_CFLAGS)))
 ADK_TARGET_ABI:=			$(strip $(subst ",, $(ADK_TARGET_ABI)))
-ADK_TARGET_MIPS_ABI:=			$(strip $(subst ",, $(ADK_TARGET_MIPS_ABI)))
+ADK_TARGET_ABI_MIPS64:=			$(strip $(subst ",, $(ADK_TARGET_ABI_MIPS64)))
+ADK_TARGET_ABI_RISCV:=			$(strip $(subst ",, $(ADK_TARGET_ABI_RISCV)))
 ADK_TARGET_IP:=				$(strip $(subst ",, $(ADK_TARGET_IP)))
 ADK_TARGET_SUFFIX:=			$(strip $(subst ",, $(ADK_TARGET_SUFFIX)))
 ADK_TARGET_CMDLINE:=			$(strip $(subst ",, $(ADK_TARGET_CMDLINE)))

+ 1 - 1
target/config/Config.in.abi

@@ -73,7 +73,7 @@ config ADK_TARGET_ABI_RISCV
 	default "ilp32d" if ADK_TARGET_ABI_ILP64D
 	default "ilp32f" if ADK_TARGET_ABI_ILP64F
 
-config ADK_TARGET_MIPS_ABI
+config ADK_TARGET_ABI_MIPS64
 	depends on ADK_TARGET_ARCH_MIPS64
 	string
 	default "32" if ADK_TARGET_ABI_O32

+ 2 - 2
toolchain/gcc/Makefile

@@ -211,8 +211,8 @@ GCC_CONFOPTS+=		--without-long-double-128 --with-abi=elfv2
 endif
 endif
 
-ifneq ($(ADK_TARGET_MIPS_ABI),)
-GCC_CONFOPTS+=		--with-abi=${ADK_TARGET_MIPS_ABI}
+ifneq ($(ADK_TARGET_ABI_MIPS64),)
+GCC_CONFOPTS+=		--with-abi=${ADK_TARGET_ABI_MIPS64}
 endif
 
 ifneq ($(ADK_TARGET_ABI_RISCV),)