From: Trent Piepho <tpiepho@impinj.com>
To: buildroot@busybox.net
Subject: [Buildroot] Tesla is using Buildroot
Date: Tue, 22 May 2018 17:40:20 +0000 [thread overview]
Message-ID: <1527010819.31570.100.camel@impinj.com> (raw)
In-Reply-To: <50a817f0-5c04-3560-5bf5-e532513ba715@andin.de>
On Tue, 2018-05-22 at 09:51 +0200, Andreas Naumann wrote:
> Am 19.05.2018 um 13:08 schrieb Angelo Compagnucci:
> >
> > > >
> > > > The top level makefile uses a pattern rule to provide a target for
> > > > every defconfig that exists in br2-external/configs directory. It'll
> > > > call buildroot's build with BR2_EXTERNAL and O set build that defconfig
> > > > into an output directory. Or just do a buildroot *_defconfig call but
> > > > not actually build.
> > > >
> > > > buildroot sets itself up so that once you go to the output directory,
> > > > there is a Makefile that will execute any buildroot target (menuconfig,
> > > > pkg-rebuild, all, etc.) with BR2_EXTERNAL configured.
> > >
> > > That's *exactly* the setup I've developed for one of my projects. I've been
> > > meaning to export this to a buildroot-external superproject that people could
> > > reuse...
>
> I use a similar setup, but use the android repo-tool to checkout
> buildroot itself, additional BR2_EXTERNAL repos and
> <PACKAGE>_OVERRIDE_SRCDIR repos which are under development (e.g. main
> application).
I've used OVERRIDE_SRCDIR for the packages under development, which
were themselves git repositories that were submodules of the master
project. Sounds like you've got the same thing but with repo-tool
instead of submodules. There were a couple things that weren't that
good.
After a updating the source, by working on it or via git, buildroot
doesn't detect a change and rebuild it. It is necessary to <pkg>-
rebuild it manually. Tracking down which packages to rebuild was a
real pain for developers to do after every pull. It seems like
buildroot could check srcdir timestamp vs build dir rsync stamp file
and do this automatically.
Another problem that the rsync of srcdir into the build dir will not
delete files that have been removed from srcdir. If someone used a
wildcard in the makefile, e.g SRSCS := $(wildcard *.c), and then
renamed a source, the build fails because the build dir will have the
old and new source file and try to compile both of them. This could be
avoided if buildroot didn't need to rsync the srcdir into the build
dir, but instead used the package's (assuming it has one) out-of-tree
build feature to compile directly from srcdir with output to the build
dir.
next prev parent reply other threads:[~2018-05-22 17:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-11 15:23 [Buildroot] Tesla is using Buildroot Thomas Petazzoni
2018-05-11 21:55 ` anisse at astier.eu
2018-05-12 1:22 ` ratbert90
2018-05-12 1:42 ` Carlos Santos
2018-05-12 13:27 ` Adrian Perez de Castro
2018-05-12 16:34 ` Adam Duskett
2018-05-12 17:06 ` Joseph Kogut
2018-05-12 17:51 ` Olof Johansson
2018-05-14 18:00 ` Trent Piepho
2018-05-15 20:18 ` Arnout Vandecappelle
2018-05-19 11:08 ` Angelo Compagnucci
2018-05-22 7:51 ` Andreas Naumann
2018-05-22 17:40 ` Trent Piepho [this message]
2018-05-12 18:16 ` Olof Johansson
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=1527010819.31570.100.camel@impinj.com \
--to=tpiepho@impinj.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