[Buildroot] [PATCH] Add support for custom post-build script
Daniel Mack
daniel at caiaq.de
Fri Jul 10 18:43:43 UTC 2009
On Fri, Jul 10, 2009 at 04:26:39PM -0000, nfrench at xtale.biz wrote:
> I am currently building my app using the tools in staging_dir to
> build my app then I mount the built ext2 from binaries cp my program on
> and build a new ext2
This is exactly what I want to avoid. I know it is possible, but using
the post-build script method is faster, more logic and more straight
forward.
> Is there a standard why to do this .ie
> this custom post-build
Well, it's up to you what you do with that script. You'll be fed with
the target rootfs as $1 and could then do something like
cp /path/to/your/hello $1/usr/bin/
Or remove unwanted files etc. Up to you.
> would it be possible to document how to
> add a simple Hello World app. So that it gets built with
> buildroot or have I missed somthing in the docs.
No, don't confuse that. Your application will not be built by buildroot
by the post-build script.
If you want to do that, you need to add your own package. See the
package/ folder how others do that. And if that package is building a
publically available project, please consider sending a patch back to
this list so everybody can benefit from it.
Daniel
More information about the buildroot
mailing list