Hi Ted, Thank you for your reply. I did tried this changes before (patching the kernel) but then at some point buildroot forces a uclibc emulation mode, which makes the arm-hardfp-linux-ld fail.
I am able to comple our kernel with this toolchain outside the openwrt. So I'm trying to find where this -muclibc mode is forced. Thanks once again for the support. :) On Tue, Feb 19, 2013 at 9:56 PM, Ted Hess <th...@kitschensync.net> wrote: > Alberich - > > I hope the enclosed info is helpful and not just creating more confusion > on this subject. I have > been successfully building the RPi 3.6.11+ Kernel within the OpenWRT > buildroot using the following > patches (+/-)... IMMV > > I also am using 4.7-linaro (4.7.1) and eglibc 2.15 (20866). > > /ted > > In target/linux/<platform>/Makefile, I set: > > CFLAGS:=-O2 -pipe -march=armv6 -mtune=arm1176jzf-s -mfpu=vfp > -mfloat-abi=hard -marm > > Apply this patch to rules.mk > > Index: rules.mk > =================================================================== > --- rules.mk (revision 35642) > +++ rules.mk (working copy) > @@ -163,7 +163,7 @@ > SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft > TARGET_CFLAGS+= -msoft-float > else > - SOFT_FLOAT_CONFIG_OPTION:= > + SOFT_FLOAT_CONFIG_OPTION:=--with-float=hard > endif > > export PATH:=$(TARGET_PATH) > > --------------------------------------------------------- > Include this patch in the target/linux/<platform>/<kernel-patch> directory > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 42d87d7..396f9f3 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -58,7 +58,7 @@ comma = , > # macro, but instead defines a whole series of macros which makes > # testing for a specific architecture or later rather impossible. > arch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 $(call > cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a) > -arch-$(CONFIG_CPU_32v6) :=-D__LINUX_ARM_ARCH__=6 $(call > cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6) > +arch-$(CONFIG_CPU_32v6) > :=-D__LINUX_ARM_ARCH__=6 -Ofast -mcpu=arm1176jzf-s -mtune=arm1176jzf-s > -mfloat-abi=hard -mfpu=vfp -fomit-frame-pointer > -fexcess-precision=fast > # Only override the compiler option if ARMv6. The ARMv6K extensions are > # always available in ARMv7 > ifeq ($(CONFIG_CPU_32v6),y) > @@ -113,8 +113,8 @@ endif > endif > > # Need -Uarm for gcc < 3.x > -KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_THUMB2) $(arch-y) $(tune-y) $(call > cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) > -msoft-float -Uarm > -KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_THUMB2) $(arch-y) $(tune-y) > -include > asm/unified.h -msoft-float > +KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_THUMB2) $(arch-y) $(tune-y) $(call > cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -Uarm > +KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_THUMB2) $(arch-y) $(tune-y) > -include asm/unified.h > > CHECKFLAGS += -D__arm__ > > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel >
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel