Supporting Hardware FPU
i am cross-compiling for linux-arm, and my target device has hardware FPU (and i'm sure about it). i have edited linux_arm.cfg found in ../sourc/cldc/build/linux_arm, and added the following code into it.
ifeq ($(ENABLE_SOFT_FLOAT), false)
ifeq ($(ENABLE_ARM_VFP), true)
CPP_DEF_FLAGS += -mfloat-abi=softfp -mfpu=vfp
ASM_FLAGS += -mfpu=vfp
now, when i build cldc by setting ENABLE_SOFT_FLOAT=false and ENABLE_ARM_VFP=true, the following errors appear:
linking ../bin/cldc_vm_g ...
/opt/tools/usr/bin/arm-linux-uclibc-ld: ERROR: /pMEF/mr2build/pcsl/arm/linux_arm/lib/libpcsl_memory.a(pcsl_chunkmmap_linux.o) uses FPA instructions, whereas ../bin/cldc_vm_g does not
/opt/tools/usr/bin/arm-linux-uclibc-ld: ERROR: /pMEF/mr2build/pcsl/arm/linux_arm/lib/libpcsl_memory.a(pcsl_chunkmmap_linux.o) uses hardware FP, whereas ../bin/cldc_vm_g uses software FP
/opt/tools/usr/bin/arm-linux-uclibc-ld: failed to merge target specific data of file
and the same errors appears for others libraries too. i have also tried to build without any changes to linux_arm.cfg, but there were some other errors (posted in a separate thread). so, guide me how can i build cldc for my target platform(supporting hardware FPU)?