Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulfs@dof.se>
To: buildroot@busybox.net
Subject: [Buildroot] Target support for Atmel ARM/AVR32
Date: Thu, 25 Jan 2007 16:28:08 +0100	[thread overview]
Message-ID: <010a01c74098$d3387e10$01c4af0a@atmel.com> (raw)
In-Reply-To: 20070125134707.GA17985@aon.at

Bernhard Fischer wrote:
> On Thu, Jan 25, 2007 at 01:42:20PM +0100, Ulf Samuelsson wrote:
>> Bernhard Fischer wrote:
>
>>> If the TODO that is mentioned in r17516 would be fixed, would that
>>> help that problem in any way? I, personally, don't use the concept
>>> of a board in the context of buildroot. Put that aside, what about
>>> this layout:
>>> -) toolchain_<arch>_<subarch>_<cpu>
>>> -) same for build_
>>> -) board_<device> as default COPY_TO
>>>
>>> where
>>> $device is target/device/*
>>> $arch would be generic arch e.g. i386, arm
>>> $subarch is the real -march=
>>> $cpu is the real -mtune=
>>>
>>> Opinions?
>>
>> That is a different problem.
>> I can either build an ARM based buildroot or an AVR32 based
>> buildroot. They will build in: build_arm and build_avr32, same for
>> toolchain.
>>
>> My problem is that I want to build for
>> AT91RM9200DK    -ARM920T
>> AT91RM9200DF     -ARM920T
>> AT91RM9200EK     -ARM920T
>> AT91SAM9260EK  -ARM926EJS
>> AT91SAM9261EK  -ARM926EJS
>> AT91SAM9263EK  -ARM926EJS
>> AT91SAM9XEEK   -ARM926EJS
>> using a common toolchain
>> (The toolchain is generic arm, even though I use different CPU cores)
>> and maybe a common root file system (today it is).
>>
>> This means that
>> * 7 different Linux versions,
>> * 7 different U-boot
>> * 7 different bootstraps.
>> Possibly, the root file system should be populated differently.
>>
>> When I have built a board, I want to have all binaries stored
>> in one place which can be easily compressed into a tarball.
>>
>> Your suggestion is more for building different toolchains for
>> different boards
>> but this is not the case.
>
> My suggestion is to build two toolchains (assuming that ARM920T !=
> ARM926EJS, if it is the same, then it's only one toolchain) and use
> that to populate the board_{AT91*} dirs
>>

There will be only a single toolchain which will be generic-arm.
This will be ok for novices, and if they start to care, then
it is easily changed in the .config file.

In order to avoid cluttering the top directory, I have
put in an extra directory level so instead of your suggestion:

>>> -) toolchain_<arch>_<subarch>_<cpu>
>>> -) same for build_
>>> -) board_<device> as default COPY_TO
>>>

board_<device>
becomes
board/<device>

although I call it

target_build_<arch>/<boardname>

Also I put all binaries in a single directory

binaries/<boardname>

This means that you get two extra directories in the top level
compared to seven extra directories at the top level.

It is also easy to create a tarball of all the binaries
when they are all located in a single place.

Today, the binaries are created in the top directory,
so you have to spend more time to select which files should
go into the binaries tarball.

Having the binaries spread out in different board_<device>
directories is also costing more in matinenace than
a single "binaries" directory.


Best Regards,
Ulf Samuelsson
ulf at atmel.com
GSM:  +46 (706) 22 44 57
Tel:     +46  (8) 441 54 22
Fax:     +46 (8) 441 54 29
Mail: Box 2033  174 02 Sundbyberg
Visit: Kavalleriv?gen 24
          174 58 Sundbyberg'
Sweden

      parent reply	other threads:[~2007-01-25 15:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-24 11:06 [Buildroot] Target support for Atmel ARM/AVR32 Ulf Samuelsson
2007-01-24 23:37 ` Bernhard Fischer
2007-01-24 23:58   ` Ulf Samuelsson
2007-01-25  9:04     ` Bernhard Fischer
2007-01-25 12:42       ` Ulf Samuelsson
2007-01-25 13:47         ` Bernhard Fischer
2007-01-25 14:07           ` Bernhard Fischer
2007-01-25 15:28           ` Ulf Samuelsson [this message]

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='010a01c74098$d3387e10$01c4af0a@atmel.com' \
    --to=ulfs@dof.se \
    --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