I have built images for IMX6 Sabersd using yocto as shown below.
#curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
#repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.53-1.1.0_ga
#repo sync
#source setup-environment build
#bitbake core-image-minimal
During build time it is getting the gcc-4.8 source and compiling tool chian for IMX6. The toochain is using hard floating point(checked using "./arm-poky-linux-gnueabi-gcc -v" and output is having "--float-with=hard" ), my requirement is the toolchain has to use softfp.
The reason behind this is I am using 3rd party pre-built libraries, which are not compatible for hardfp. So during compilation time I am getting errors as shown below.
ld: error: *Executable* uses VFP register arguments, *Library* does not
ld: failed to merge target specific data of file *Library*
Can you help on how I can change the configuration in yocto to compile tool chain with softfp.
I couldn't find which version of yocto freescale is using, but I could see gcc-4.8 recipies under "poky/meta/recipes-devtools/gcc/".
Given that I do not know what core processor you are using.
The files that you want to modify should be in poky/meta/conf/machine/include/
you could also add something like this in conf/local.conf
to override:
TARGET_CC_ARCH = "-march=armv7 -mfpu=vfp -mfloat-abi=softfp"