From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] How to add a board with Buildroot 2011.02
Date: Tue, 8 Mar 2011 22:42:25 +0100 [thread overview]
Message-ID: <20110308224225.1d924c40@surf> (raw)
In-Reply-To: <F41B82AC38A41A41868925971DCBED9E06EFEFC0@rfomb01.corp.atmel.com>
Hello Ludovic,
On Tue, 8 Mar 2011 17:44:06 +0100
"Desroches, Ludovic" <Ludovic.Desroches@atmel.com> wrote:
> I wanted to know how I can add in a proper way a new board to
> Buildroot following the policy introduced into the last release.
>
> I have read the discussion between square(Thomas) :p and the
> documentation but I still have questions:
>
> 1) On one side I have read that target/device folder should host
> things such as kernel conf files or various board-specific patches
> and on the other side I have read into the documentation to use the
> board folder. So which one I have to use ?
The target/device is almost empty nowadays (it only contains Xtensa
specific things and the device table), and ultimately, the goal is to
get rid of it completely.
Therefore, things like kernel configuration files should go into
board/<manufacturer>/<boardname>/.
> 2) What about the skeleton policy ? Before Atmel had its own
> skeleton. There are not so many changes from the generic skeleton.
> Then I think we won't need to have our own one. Moreover, if we
> provides many board configurations it's not a good idea to duplicate
> it. To avoid this, what do you suggest? I was thinking we can have a
> small skeleton with only files changing from the generic ones or
> patches; copying or patching can de bone by the post build script.
The policy I'd like to see is to not add several skeletons to the
mainline Buildroot tree, or at least not skeleton that are
board-specific. But of course, it's only my opinion, and as a community
project, the opinion of others also count.
So, there are three cases :
*) The changes needed compared to the official skeleton can be
directly integrated into this official skeleton, because they make
sense in a generic way. In this case, send some patches on the
official skeleton, and we'll discuss them.
*) The changes needed are interesting outside of the specifities of a
particular hardware platform (and I think it's generally the case),
then we can add a generic Buildroot option that will adjust the
official skeleton as needed at build time. This is for example
something that is being done for choosing between static /dev,
devtmpfs, udev or mdev. It could be done for other customizations.
*) The changes needed are very board-specific and cannot be considered
as generic enough to be configuration options, in that case, what
I'd suggest is a post-build script (BR2_ROOTFS_POST_BUILD_SCRIPT)
that modifies the target filesystem, potentially by copying files
from the board/<manufacturer>/<boardname> folder.
Don't hesitate to discuss on the list the modifications you need on the
skeleton, so that we can sort out together into which of the following
three cases your modifications fall.
Also remember that all this board support mechanism is very new (the
cleanup and change has been done between 2010.11 and 2011.02), so it
may not be perfect and may have some shortcomings. It is not set into
stone, so your input will be very appreciated.
> Do you plan other changes about board configuration into the next
> release ? I have seen the device_table.txt split.
The device table split has not yet been acked by Peter, the Buildroot
maintainer, so I don't know what will happen to this. But if it is
accepted, then it would allow a board configuration file to override,
or add an additional device file to the build.
I don't think any other major change is scheduled at the level of board
configuration, besides minor cleanups (maybe moving the device table to
fs/, etc.). I least I don't plan to do anything major.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2011-03-08 21:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 16:44 [Buildroot] How to add a board with Buildroot 2011.02 Desroches, Ludovic
2011-03-08 21:42 ` Thomas Petazzoni [this message]
2011-03-09 7:59 ` Thomas De Schampheleire
2011-03-10 14:48 ` Ludovic Desroches
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=20110308224225.1d924c40@surf \
--to=thomas.petazzoni@free-electrons.com \
--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