From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] arch support
Date: Mon, 12 Jan 2009 15:38:50 +0100 [thread overview]
Message-ID: <87iqokh9mt.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <496B5427.6040103@sonycom.com> (Hamish Guthrie's message of "Mon\, 12 Jan 2009 15\:31\:03 +0100")
>>>>> "Hamish" == Hamish Guthrie <hamish.guthrie@sonycom.com> writes:
Hi,
>> 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?
Yes.
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 ~
#!/bin/sh
[ -e Config.in ] || { echo Must be in buildroot dir >&2; exit 1; }
unset GREP_OPTIONS
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~' \
.config
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
next prev parent reply other threads:[~2009-01-12 14:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-12 8:54 [Buildroot] arch support Peter Korsgaard
2009-01-12 9:00 ` Hans-Christian Egtvedt
2009-01-12 9:08 ` Peter Korsgaard
2009-01-12 10:33 ` Ulf Samuelsson
2009-01-12 10:35 ` Ulf Samuelsson
2009-01-12 9:07 ` Bernhard Reutner-Fischer
2009-01-12 9:22 ` Peter Korsgaard
2009-01-12 10:59 ` Hinko Kocevar
2009-01-12 11:05 ` Peter Korsgaard
2009-01-12 12:48 ` Hinko Kocevar
2009-01-12 20:17 ` Peter Korsgaard
2009-01-12 14:31 ` Hamish Guthrie
2009-01-12 14:38 ` Peter Korsgaard [this message]
2009-01-13 9:04 ` Hamish Guthrie
2009-01-13 11:40 ` Hinko Kocevar
2009-01-15 22:01 ` Ulf Samuelsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iqokh9mt.fsf@macbook.be.48ers.dk \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox