Browse Source

sh: update uclibc-ng config, fix toolchain multilib configure

Waldemar Brodkorb 7 years ago
parent
commit
654efc899a
3 changed files with 22 additions and 14 deletions
  1. 5 6
      target/sh/uclibc-ng.config
  2. 16 7
      toolchain/gcc/Makefile
  3. 1 1
      toolchain/uclibc-ng/Makefile

+ 5 - 6
target/sh/uclibc-ng.config

@@ -1,7 +1,8 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# uClibc-ng 1.0.21 C Library Configuration
+# uClibc-ng 1.0.24 C Library Configuration
 #
+# TARGET_aarch64 is not set
 # TARGET_alpha is not set
 # TARGET_arc is not set
 # TARGET_arm is not set
@@ -56,6 +57,7 @@ UCLIBC_HAS_FPU=y
 DO_C99_MATH=y
 # DO_XSI_MATH is not set
 # UCLIBC_HAS_FENV is not set
+UCLIBC_HAS_LONG_DOUBLE_MATH=y
 KERNEL_HEADERS=""
 HAVE_DOT_CONFIG=y
 
@@ -88,6 +90,7 @@ UCLIBC_HAS_THREADS=y
 UCLIBC_HAS_TLS=y
 PTHREADS_DEBUG_SUPPORT=y
 UCLIBC_HAS_SYSLOG=y
+UCLIBC_HAS_LFS=y
 # MALLOC is not set
 # MALLOC_SIMPLE is not set
 MALLOC_STANDARD=y
@@ -146,7 +149,6 @@ UCLIBC_HAS_NETWORK_SUPPORT=y
 UCLIBC_HAS_SOCKET=y
 UCLIBC_HAS_IPV4=y
 UCLIBC_HAS_IPV6=y
-# UCLIBC_HAS_RPC is not set
 UCLIBC_USE_NETLINK=y
 UCLIBC_SUPPORT_AI_ADDRCONFIG=y
 UCLIBC_HAS_BSD_RES_CLOSE=y
@@ -203,9 +205,7 @@ UCLIBC_HAS_ARGP=y
 # Big and Tall
 #
 UCLIBC_HAS_REGEX=y
-# UCLIBC_HAS_REGEX_OLD is not set
 UCLIBC_HAS_FNMATCH=y
-# UCLIBC_HAS_FNMATCH_OLD is not set
 UCLIBC_HAS_WORDEXP=y
 UCLIBC_HAS_NFTW=y
 UCLIBC_HAS_FTW=y
@@ -224,8 +224,7 @@ HARDWIRED_ABSPATH=y
 #
 # Security options
 #
-UCLIBC_HAS_ARC4RANDOM=y
-# ARC4RANDOM_USES_NODEV is not set
+# UCLIBC_HAS_ARC4RANDOM is not set
 # UCLIBC_HAS_SSP is not set
 # UCLIBC_BUILD_RELRO is not set
 # UCLIBC_BUILD_NOW is not set

+ 16 - 7
toolchain/gcc/Makefile

@@ -135,32 +135,35 @@ GCC_FINAL_CONFOPTS+=	--disable-biarch --disable-multilib
 endif
 
 ifeq ($(ADK_TARGET_ARCH_SH),y)
+
 ifeq ($(ADK_TARGET_LITTLE_ENDIAN),y)
 GCC_CONFOPTS+=		--with-endian=little
 else
 GCC_CONFOPTS+=          --with-endian=big
 endif
-ifeq ($(ADK_TARGET_ARCH_SH),y)
 ifeq ($(ADK_TARGET_BINFMT_FDPIC),y)
 GCC_CONFOPTS+=          --enable-fdpic
 endif
-GCC_FINAL_CONFOPTS+=	--with-multilib-list=mj2
+
+ifeq ($(ADK_TARGET_CPU_SH_J2),y)
+GCC_CONFOPTS+=	--with-multilib-list=mj2
 endif
 ifeq ($(ADK_TARGET_CPU_SH_SH2),y)
-GCC_FINAL_CONFOPTS+=	--with-multilib-list=m2
+GCC_CONFOPTS+=	--with-multilib-list=m2
 endif
 ifeq ($(ADK_TARGET_CPU_SH_SH2A),y)
-GCC_FINAL_CONFOPTS+=	--with-multilib-list=m2a
+GCC_CONFOPTS+=	--with-multilib-list=m2a,m2a-nofpu
 endif
 ifeq ($(ADK_TARGET_CPU_SH_SH3),y)
-GCC_FINAL_CONFOPTS+=	--with-multilib-list=m3
+GCC_CONFOPTS+=	--with-multilib-list=m3
 endif
 ifeq ($(ADK_TARGET_CPU_SH_SH4),y)
-GCC_FINAL_CONFOPTS+=	--with-multilib-list=m4,m4-nofpu
+GCC_CONFOPTS+=	--with-multilib-list=m4,m4-nofpu
 endif
 ifeq ($(ADK_TARGET_CPU_SH_SH4A),y)
-GCC_FINAL_CONFOPTS+=	--with-multilib-list=m4a,m4a-nofpu
+GCC_CONFOPTS+=	--with-multilib-list=m4a,m4a-nofpu
 endif
+
 endif
 
 ifeq ($(ADK_TARGET_ARCH_X86),y)
@@ -238,6 +241,12 @@ ifeq ($(ADK_TARGET_ARCH_SH),y)
 ifeq ($(ADK_TARGET_CPU_SH_J2),y)
 	(cd ${STAGING_TARGET_DIR}/ && ln -sf . mj2)
 endif
+ifeq ($(ADK_TARGET_CPU_SH_SH2),y)
+	(cd ${STAGING_TARGET_DIR}/ && ln -sf . m2)
+endif
+ifeq ($(ADK_TARGET_CPU_SH_SH2A),y)
+	(cd ${STAGING_TARGET_DIR}/ && ln -sf . m2a)
+endif
 ifeq ($(ADK_TARGET_CPU_SH_SH3),y)
 	(cd ${STAGING_TARGET_DIR}/ && ln -sf . m3)
 endif

+ 1 - 1
toolchain/uclibc-ng/Makefile

@@ -245,7 +245,7 @@ ifeq ($(ADK_TARGET_CPU_SH_SH2)$(ADK_TARGET_CPU_SH_J2),y)
 endif
 ifeq ($(ADK_TARGET_CPU_SH_SH2A),y)
 	$(SED) 's/.*\(UCLIBC_HAS_FPU\).*/# \1 is not set/' ${WRKBUILD}/.config
-	$(SED) 's/.*\(CONFIG_SH2A\).*/# \1 is not set/' ${WRKBUILD}/.config
+	$(SED) 's/.*\(CONFIG_SH2\).*/# \1 is not set/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(CONFIG_SH3\).*/# \1 is not set/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(CONFIG_SH4\).*/# \1 is not set/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(CONFIG_SH4A\).*/# \1 is not set/' ${WRKBUILD}/.config