Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Calfee <nospamcalfee@yahoo.com>
To: buildroot@busybox.net
Subject: [Buildroot] Buildroot in use
Date: Wed, 16 Mar 2011 09:44:12 -0700 (PDT)	[thread overview]
Message-ID: <779935.72384.qm@web161802.mail.bf1.yahoo.com> (raw)
In-Reply-To: <20110315210538.1973f87f@surf>

----- Original Message ----

> From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> 
> Hello,
> 
> On Tue, 15 Mar 2011 14:32:07 -0400
> "Heyendal, Carl" <CHeyendal@stanleyworks.com>  wrote:
> 
> > Really!! 'make clean' from Buildroot directory? That's a  complete
> > rebuild!!
> 
> Yes, it is. For now, Buildroot is "nothing"  more but a tool that
> automates the process of building an embedded Linux  system. It is not
> very smart, so it cannot remove packages that have been  installed, or
> revert changes that have been made to the target  filesystem.
> 
> My view on this: Buildroot has been more or less abandonned  until late
> 2008/early 2009, when Peter took over the maintainership of  the
> project. Since that time, our main goal was to clean up the  existing
> code base, keeping the existing feature set (in fact, we added a  bunch
> of features as well, but we didn't fundamentaly changed how  Buildroot
> works). Now that this cleanup process is mostly over, I'd say  that
> solving the issue you're facing here is now on the top priorities  of
> the project. At least it's where it is on my own Buildroot TODO  list.
> But there a fairly huge and complex amount of work to do here, so  it
> isn't going to happen overnight.
> 

I think a general discussion of how we use buildroot and what we would like to 
see is in order. It seems the framework is stabilizing and useful (thanks guys).

It seems in my use that I am either working on the kernel or configuring a 
system with packages (rootfs). make clean is unbearable where it removes the 
toolchain etc. 


So what I do is I git pull one tree just for my toolchain and compiler. I 
configure and build it without bootstraps, busybox, kernel etc. If I need to 
change a toolchain option I go back to this tree and fix it. This build becomes 
my "external toolchain".

I then git pull another tree which uses that external toolchain. Make clean is 
now much less painful.

During development it is common to want to change stuff in the "skeleton" 
filesystem - add scripts, configure things etc. This is kind of painful from 
within the buildroot framework, with no clear way to force an update to the 
rootfs image etc. So what I do is I create a skeleton directory for my board. In 
the post build script I copy my skeleton on top of the existing buildroot 
constructed skeleton. In this way I only have the files I care about in my board 
skeleton, they are updated every build etc.

I have not moved my bsp to the new board/company/bsp file system yet, but here 
is my post install script:
#!/bin/bash
#
# script which runs before creating rootfs
#
#
MAINDIR=${1}/../../
SRCDIR=${MAINDIR}"target/device/beagleboard/skeleton/*"
DESTDIR=${1}
echo "***************patching some stuff in " ${DESTDIR} from ${SRCDIR}
#echo "DESTDIR " ${DESTDIR}
#echo "SRCDIR " ${SRCDIR}
#ls -l ${SRCDIR} ${SRCDIR}"/etc"
cp -rv ${SRCDIR} ${DESTDIR}
echo "end of userdefined script before packing rootfs"


I am curious how people do development with cutting edge kernels like 
linux-next? Do you do it completely removed from buildroot and just use the 
external tools? Do you use some kind of sym-link to point to the other kernel 
git tree?

Regards, Steve



      

  parent reply	other threads:[~2011-03-16 16:44 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15 16:37 [Buildroot] inittab for Busybox Heyendal, Carl
2011-03-15 17:07 ` Thomas Petazzoni
2011-03-15 17:28   ` Charles Krinke
2011-03-15 18:14   ` Heyendal, Carl
2011-03-15 18:22     ` Thomas Petazzoni
2011-03-15 18:32       ` Heyendal, Carl
2011-03-15 20:05         ` Thomas Petazzoni
2011-03-15 20:10           ` Heyendal, Carl
2011-03-16 16:44           ` Steve Calfee [this message]
2011-03-16 20:08             ` [Buildroot] Buildroot in use Heyendal, Carl
2011-03-17 12:14             ` William Wagner
2011-03-17 13:53               ` Heyendal, Carl
2011-03-17 17:17                 ` Steve Calfee
2011-03-17 19:42                   ` Heyendal, Carl
2011-03-17 21:50                     ` Steve Calfee
2011-03-18 16:03                       ` Thomas Petazzoni
2011-03-18 16:02                     ` Thomas Petazzoni
2011-03-18 16:01                   ` Thomas Petazzoni
2011-03-17 20:21                 ` Grant Edwards
2011-03-18 15:59               ` [Buildroot] Xtensa support Thomas Petazzoni
2011-03-21 21:18                 ` Piet Delaney
2011-09-20 18:35                   ` Thomas Petazzoni
2011-09-21  4:01                     ` Marc Gauthier
2011-09-21  6:52                       ` Thomas Petazzoni
2011-09-21  8:08                         ` Piet Delaney
2011-03-27 19:19             ` [Buildroot] Buildroot in use Michael J. Hammel
2011-03-27 23:58               ` Steve Calfee
2011-03-31 17:13                 ` Steve Calfee

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=779935.72384.qm@web161802.mail.bf1.yahoo.com \
    --to=nospamcalfee@yahoo.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