From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Date: Fri, 10 Jul 2009 20:43:43 +0200 Subject: [Buildroot] [PATCH] Add support for custom post-build script In-Reply-To: <38210.172.16.221.10.1247243199.squirrel@172.16.0.251> References: <38210.172.16.221.10.1247243199.squirrel@172.16.0.251> Message-ID: <20090710184343.GE19257@buzzloop.caiaq.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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