summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolchain/uclibc-ng/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile
index 2adc0859e..0ceccc817 100644
--- a/toolchain/uclibc-ng/Makefile
+++ b/toolchain/uclibc-ng/Makefile
@@ -10,6 +10,24 @@ include ${ADK_TOPDIR}/mk/buildhlp.mk
TARGET_CFLAGS:=$(filter-out -flto,$(TARGET_CFLAGS))
+ifeq ($(ADK_TARGET_HARD_FLOAT),y)
+ifeq ($(ADK_TARGET_ARCH_ARM),y)
+TARGET_CFLAGS+= -Wa,-mfloat-abi=hard
+endif
+ifeq ($(ADK_TARGET_ARCH_MIPS),y)
+TARGET_CFLAGS+= -Wa,-mhard-float
+endif
+endif
+
+ifeq ($(ADK_TARGET_SOFT_FLOAT),y)
+ifeq ($(ADK_TARGET_ARCH_ARM),y)
+TARGET_CFLAGS+= -Wa,-mfloat-abi=soft
+endif
+ifeq ($(ADK_TARGET_ARCH_MIPS),y)
+TARGET_CFLAGS+= -Wa,-msoft-float
+endif
+endif
+
# parallel building is broken at the moment
#ifeq (${ADK_MAKE_PARALLEL},y)
#UCLIBC_MAKEOPTS+= -j${ADK_MAKE_JOBS}