Ver Fonte

fix cris32 build

Waldemar Brodkorb há 9 anos atrás
pai
commit
ea6fabbf50
1 ficheiros alterados com 12 adições e 2 exclusões
  1. 12 2
      toolchain/uclibc-ng/Makefile

+ 12 - 2
toolchain/uclibc-ng/Makefile

@@ -110,7 +110,6 @@ ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS),y)
 	$(SED) 's/.*\(UCLIBC_HAS_TLS\).*/# \1 is not set/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(PTHREADS_DEBUG_SUPPORT\).*/# \1 is not set/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(HAS_NO_THREADS\).*/\1=y/' ${WRKBUILD}/.config
-
 endif
 endif
 ifeq ($(ADK_TARGET_LIB_UCLIBC_NG_1_0),y)
@@ -136,7 +135,6 @@ ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS),y)
 	$(SED) 's/.*\(UCLIBC_HAS_TLS\).*/# \1 is not set/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(PTHREADS_DEBUG_SUPPORT\).*/# \1 is not set/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(HAS_NO_THREADS\).*/\1=y/' ${WRKBUILD}/.config
-
 endif
 endif
 ifeq ($(ADK_TARGET_USE_STATIC_LIBS)$(ADK_TARGET_BINFMT_FLAT),)
@@ -179,6 +177,18 @@ ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),y)
 endif
 endif
 
+# cris
+ifeq ($(ADK_TARGET_ARCH_CRIS),y)
+ifeq ($(ADK_CPU_CRIS_V32),y)
+	$(SED) 's/.*\(CONFIG_CRIS=\).*/# \1 is not set/' ${WRKBUILD}/.config
+	$(SED) 's/.*\(CONFIG_CRISV32\).*/\1=y/' ${WRKBUILD}/.config
+endif
+ifeq ($(ADK_CPU_CRIS_V10),y)
+	$(SED) 's/.*\(CONFIG_CRIS=\).*/\1=y/' ${WRKBUILD}/.config
+	$(SED) 's/.*\(CONFIG_CRISV32\).*/# \1 is not set/' ${WRKBUILD}/.config
+endif
+endif
+
 # mips
 ifeq ($(ADK_TARGET_ARCH_MIPS),y)
 ifeq ($(ADK_CPU_MIPS32R2),y)