Browse Source

arm: fix uCLibc-ng config generation for softfp targets, reported by Phil via ML

Waldemar Brodkorb 15 hours ago
parent
commit
81e9d89f28
1 changed files with 5 additions and 0 deletions
  1. 5 0
      toolchain/uclibc-ng/Makefile

+ 5 - 0
toolchain/uclibc-ng/Makefile

@@ -74,6 +74,11 @@ ifeq ($(ADK_TARGET_SOFT_FLOAT),y)
 	$(SED) 's/.*\(UCLIBC_HAS_FENV\).*/# \1 is not set/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(UCLIBC_HAS_SOFT_FLOAT\).*/#\1=y/' ${WRKBUILD}/.config
 endif
+ifeq ($(ADK_TARGET_SOFTFP_FLOAT),y)
+	$(SED) 's/.*\(UCLIBC_HAS_FPU\).*/# \1 is not set/' ${WRKBUILD}/.config
+	$(SED) 's/.*\(UCLIBC_HAS_FENV\).*/# \1 is not set/' ${WRKBUILD}/.config
+	$(SED) 's/.*\(UCLIBC_HAS_SOFT_FLOAT\).*/#\1=y/' ${WRKBUILD}/.config
+endif
 ifeq ($(ADK_TARGET_HARD_FLOAT),y)
 	$(SED) 's/.*\(UCLIBC_HAS_FPU\).*/\1=y/' ${WRKBUILD}/.config
 	$(SED) 's/.*\(UCLIBC_HAS_SOFT_FLOAT\).*/# \1 is not set/' ${WRKBUILD}/.config