From: Grant Edwards <grant.b.edwards@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] Where does post-build script belong?
Date: Tue, 21 Feb 2012 14:54:47 +0000 (UTC) [thread overview]
Message-ID: <ji0b7n$2hl$1@dough.gmane.org> (raw)
In-Reply-To: 4F435977.1060001@lucaceresoli.net
On 2012-02-21, Luca Ceresoli <luca@lucaceresoli.net> wrote:
> Grant Edwards wrote:
> ...
>
>>> Personally, I keep my post-build is a directory structure like:
>>> board/manufacture/model/post-build.sh
>>
>> I prefer to modify the buildroot source tree as little as possible
>> (it makes upgrading to a new version easier). So I keep everything
>> outside it that I can. I've put what used to be my
>> package/customize/source directory in "../customfiles", my post-build
>> script in "../postbuild.sh", and my output directory is "../output".
>
> Buildroot can be used in different ways, so yours is not necessarily
> wrong. But the structure of Buildroot is such that you can put your
> customizations in a few, well-defined places, which typically are the
> board/mycompany/myproduct dir and your config file.
I don't want to replace the default skeleton. I want to add some
files to it, and possible modify a few. The documentation describes
two ways to do that:
1) package/customize
2) post-build script
I'm told 1) is now depricated, so I'm switching to 2).
Where under board/mycompany/myproduct do you put "extra" files that
will be added to the standard skeleton?
> To add proprietary packages what I do is to create a
> packages/mcompany/ dir with packages inside.
>
> If you need to add currently unsupported opensource packages you can
> just submit a patch to this mailing-list for mainline inclusion.
That's not what I'm doing. I'm mainly adding some basic web pages and
a few init scripts that do things like set the hostname, and start
some of the busybox daemons like httpd, inetd, etc. My "extra"
applications are built externally and bundled as as ipkg packages that
are installed/managed outside of buildroot's package system.
> Finally, especially if you need many customizations, I suggest you
> think about using git.
I'd love to use git, but we're standardized on subversion (which does
not handle branching merging at all well). :/
In the past I've tried combining svn and git and it just didn't work.
> You can have mainline Buildroot in the master branch and you
> modifications in another branch. It is very quick to merge your
> branch with an updated Buildroot, if you follow the guidelines above.
--
Grant Edwards grant.b.edwards Yow! I know things about
at TROY DONAHUE that can't
gmail.com even be PRINTED!!
next prev parent reply other threads:[~2012-02-21 14:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-20 20:41 [Buildroot] Where does post-build script belong? Grant Edwards
2012-02-20 21:00 ` J.C. Woltz
2012-02-20 21:45 ` Grant Edwards
2012-02-21 8:44 ` Luca Ceresoli
2012-02-21 14:54 ` Grant Edwards [this message]
2012-02-28 20:38 ` Arnout Vandecappelle
2012-02-28 21:06 ` Grant Edwards
2012-02-28 21:29 ` Steve Calfee
2012-02-28 21:36 ` Grant Edwards
2012-02-28 22:06 ` Steve Calfee
2012-02-28 22:18 ` Grant Edwards
2012-03-16 21:30 ` Peter Korsgaard
2012-02-28 22:19 ` Arnout Vandecappelle
2012-02-29 7:41 ` Thomas De Schampheleire
2012-03-16 21:32 ` Peter Korsgaard
2012-02-28 22:18 ` Arnout Vandecappelle
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='ji0b7n$2hl$1@dough.gmane.org' \
--to=grant.b.edwards@gmail.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