[Buildroot] arch support

Peter Korsgaard jacmet at uclibc.org
Mon Jan 12 14:38:50 UTC 2009

>>>>> "Hamish" == Hamish Guthrie <hamish.guthrie at sonycom.com> writes:


 >> I just finished building the defconfigs for all the archs (uclibc
 >> 0.9.30 / kernel headers 2.6.28 / binutils 2.19 / gcc 4.3.2 except for
 >> avr32 which does it's own thing)
 Hamish> I have been trying to build for various arch's (powerpc, mips, i386)
 Hamish> with the above toolchain selections, but always wind up with the
 Hamish> error:

 Hamish> configure: error: cannot compute suffix of object files: cannot compile
 Hamish> See `config.log' for more details.

 Hamish> during the gcc-4.3.2-initial stage of the build.

Strange - Are you building in a clean tree? What host are you using?

 Hamish> Are you building against HEAD?


 Hamish> Would it be possible for you to send me your powerpc defconfig please?

It's simple rm .config, make menuconfig, select ppc and the correct
toolchain versions.

I use a script like this:

cat ~/bin/br-build-arch                                             ~

[ -e Config.in ] || { echo Must be in buildroot dir >&2; exit 1; }

rm -f .config
make menuconfig

ARCH=$(grep BR2_ARCH= .config|cut -f2 -d\")

# use download dir, gcc 4.3.2 and kernel headers 2.6.28
sed -i  -e 's~BR2_DL_DIR=.*$~BR2_DL_DIR="/var/lib/downloads"~' \
 -e 's~^.*BR2_GCC_VERSION_4_2_4.*$~# BR2_GCC_VERSION_4_2_4 is not set~' \
 -e 's~^.*BR2_GCC_VERSION_4_3_2.*$~BR2_GCC_VERSION_4_3_2=y~' \
 -e 's~^.*BR2_KERNEL_HEADERS_2_6_27.*~# BR2_KERNEL_HEADERS_2_6_27 is not set~' \
 -e 's~^.*BR2_KERNEL_HEADERS_2_6_28.*~BR2_KERNEL_HEADERS_2_6_28=y~' \
yes ''|make oldconfig
make O=/tmp/br/$ARCH 2>&1 | tee /tmp/br/$ARCH.log

Where /var/lib/downloads is my local download dir.

Bye, Peter Korsgaard

More information about the buildroot mailing list