[Buildroot] arch support

Hinko Kocevar hinko.kocevar at cetrtapot.si
Mon Jan 12 12:48:32 UTC 2009


Peter Korsgaard wrote:
>>>>>> "Hinko" == Hinko Kocevar <hinko.kocevar at cetrtapot.si> writes:
> 
> Hi,
> 
>  >> cris: broken in kernel headers
> 
>  Hinko> I have similar setup of toolchain packages and works for me
>  Hinko> here, except for linux headers which are 2.6.26. I'll try to
>  Hinko> compile it with 2.6.28, if IIRC there were some arch/cris
>  Hinko> folder movements in 2.6.28 that could be the culprit here.
> 
> Ok, thanks.
> 

Here it goes:
 - some minor fixes to buildroot
  cris_buildroot.patch

 - two cris patches to be placed in toolchain/kernel-headers subdir in order to build toolchain and linux kernel 2.6.28
  linux-2.6.28-cris-headers.patch
  linux-2.6.28-cris-objcopy-flags.patch

With these patch set you should be able to build uClibc based toolchain with above mentioned versions of packages. I haven't tried the toolchain nor the Linux kernel image. I'll do that sometime later this week, because I'm not sure if I need to patch the gcc 4.3.2 with another cris related patch (toolchain/gcc/4.3.x/999-gcc-4.3.0-cris-compiler-error-fix.patch). Otherwise compilation of kernel sources in some ipv4 related code fails with internal compiler error.

Note: I was unable to retrieve mpfr 2.3.0 so I used 2.3.1 instead (that I had laying around).

hinkok at alala /work/buildroot.new $ ./build_cris/staging_dir/usr/bin/cris-linux-uclibc-gcc -v
Using built-in specs.
Target: cris-linux-uclibc
Configured with: /work/buildroot.new/toolchain_build_cris/gcc-4.3.2/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=cris-linux-uclibc --enable-languages=c --with-sysroot=/work/buildroot.new/build_cris/staging_dir --with-build-time-tools=/work/buildroot.new/build_cris/staging_dir/usr/cris-linux-uclibc/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --enable-shared --with-gmp=/work/buildroot.new/toolchain_build_cris/gmp --with-mpfr=/work/buildroot.new/toolchain_build_cris/mpfr --disable-nls --enable-threads --disable-multilib --disable-decimal-float --disable-largefile : (reconfigured) /work/buildroot.new/toolchain_build_cris/gcc-4.3.2/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=cris-linux-uclibc --enable-languages=c --with-sysroot=/work/buildroot.new/build_cris/staging_dir --with-build-time-tools=/work/buildroot.new/build_cris/staging_dir/usr/cris-linux-uclibc/bin --disable-__cxa_atex
it --enable-target-optspace --with-gnu-ld --enable-shared --with-gmp=/work/buildroot.new/toolchain_build_cris/gmp --with-mpfr=/work/buildroot.new/toolchain_build_cris/mpfr --disable-nls --enable-threads --disable-multilib --disable-decimal-float --disable-largefile : (reconfigured) /work/buildroot.new/toolchain_build_cris/gcc-4.3.2/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=cris-linux-uclibc --enable-languages=c --with-sysroot=/work/buildroot.new/build_cris/staging_dir --with-build-time-tools=/work/buildroot.new/build_cris/staging_dir/usr/cris-linux-uclibc/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --enable-shared --with-gmp=/work/buildroot.new/toolchain_build_cris/gmp --with-mpfr=/work/buildroot.new/toolchain_build_cris/mpfr --disable-nls --enable-threads --disable-multilib --disable-decimal-float --disable-largefile
Thread model: posix
gcc version 4.3.2 (GCC) 


HTH,
Hinko
-- 
Hinko Kočevar, OSS developer
ČETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel     ++386 (0) 4 280 66 03
e-mail  hinko.kocevar at cetrtapot.si
http    www.cetrtapot.si

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linux-2.6.28-cris-headers.patch
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090112/b084a3ec/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linux-2.6.28-cris-objcopy-flags.patch
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090112/b084a3ec/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cris_buildroot.patch
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090112/b084a3ec/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 999-gcc-4.3.0-cris-compiler-error-fix.patch
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090112/b084a3ec/attachment-0003.ksh>


More information about the buildroot mailing list