From: Grant Edwards <grant.b.edwards@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] preparing rootfs with gcc in buildroot
Date: Thu, 21 Jun 2012 16:55:30 +0000 (UTC) [thread overview]
Message-ID: <jrvjm2$sls$1@dough.gmane.org> (raw)
In-Reply-To: CAGXs5wXPo4wtWY9H0Ec761e0zEUCa_3u3-YH04jzZcW_m=ju+Q@mail.gmail.com
On 2012-06-21, Kevin Wilson <wkevils@gmail.com> wrote:
> Thanks for your quick answer!
>
> I do admit that I am a bit of (heavy) hacker and I am intending to
> use buildroot a bit beyond its usual usage.
>
> I though of things like -
>
> 1) Adding tests programs of my own
>
> 2) Adding some code to packages (let's say, iptables, openswan)
> Partly for hacking, partly for adding code for my own development
> needs.
>
> It seems to mt that though it is possible to do it in buildroot cross
> compiling, in the end, for each and every change in
> iptables/openswan, I will have to install all the rootfs.tar; I don't
> think there is a way to prepare something like a package.
It was suggested that its easier to cross-compile your application.
That doesn't mean you have to do it inside the buildroot framework.
It's trivial to cross-compile simple applications outside of
buildroot. If all you're using is libc, then all you have to do is
arm-linux-gcc -o foo file1.c file2.c file3.c
Building something that uses libc and autoconf stuff is almost as
easy.
Then you can 'scp foo target:' and run it. Or you can NFS mount the
host directory where you do the edit/build and it's even simpler.
If you want to build things that use libraries that were built as part
of buildroot, then you have to add a couple more command line options
to tell the compiler/linker where to find the include and library
files created by buildroot (e.g. <wherever>/output/target.
In my project, the stuff I cross-compile outside of buildroot is
eventually packaged as .ipk files (sort of a stripped-down version of
Debian's .deb packages), and then I use ipkg-cl on the target to
install and update the "non-buildroot" applications.
--
Grant Edwards grant.b.edwards Yow! Don't hit me!! I'm in
at the Twilight Zone!!!
gmail.com
next prev parent reply other threads:[~2012-06-21 16:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-21 12:16 [Buildroot] preparing rootfs with gcc in buildroot Kevin Wilson
2012-06-21 12:28 ` Thomas Petazzoni
2012-06-21 16:38 ` Kevin Wilson
2012-06-21 16:55 ` Grant Edwards [this message]
2012-06-21 20:31 ` Arnout Vandecappelle
2012-06-21 21:24 ` Grant Edwards
2012-06-21 21:55 ` Thomas Petazzoni
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='jrvjm2$sls$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