diff options
-rw-r--r-- | mk/vars.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index b47ee053b..ec5d89fdb 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -129,6 +129,22 @@ TARGET_CFLAGS+= $(ADK_TARGET_CPU_FLAGS) TARGET_CXXFLAGS+= $(ADK_TARGET_CPU_FLAGS) endif +ifneq ($(ADK_TARGET_FPU),) +TARGET_CFLAGS+= -mfpu=$(ADK_TARGET_FPU) +TARGET_CXXFLAGS+= -mfpu=$(ADK_TARGET_FPU) +endif + +ifneq ($(ADK_TARGET_FLOAT),) +ifeq ($(ADK_TARGET_ARCH_ARM),y) +TARGET_CFLAGS+= -mfloat-abi=$(ADK_TARGET_FLOAT) +TARGET_CXXFLAGS+= -mfloat-abi=$(ADK_TARGET_FLOAT) +endif +ifeq ($(ADK_TARGET_ARCH_MIPS),y) +TARGET_CFLAGS+= -m$(ADK_TARGET_FLOAT)-float +TARGET_CXXFLAGS+= -m$(ADK_TARGET_FLOAT)-float +endif +endif + ifeq ($(ADK_TARGET_BINFMT_FLAT),y) TARGET_LDFLAGS+= -elf2flt endif |