Skip to contentSkip to conversation

Add support for custom post-build script

PATCH New nfrench at xtale.biz 2 participants 2 messages Jul 11, 2009 – Jul 13, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support for custom post-build script

Thanks Daniel

It would be nice to have a proto type package aka
hello world for us first timers. As for me being able to build for two different platforms 32bit / 64bit is great feature of buildroot. At the moment we have been using lfs for 32 bit and 64 bit. Does a package have to have a network location for download as my prototype code / initial program ideas go through many revisions before they even get to that stage :-).

Nick

Quoted 1 line

On Fri, Jul 10, 2009 at 04:26:39PM

Quoted 1 line · nfrench at xtale.biz
Quoted 1 line

I am currently building my

app using the tools in staging_dir to

Quoted 1 line
Quoted 1 line

build my app then I

mount the built ext2 from binaries cp my program on

Quoted 1 line
Quoted 1 line

and

build a new ext2

Quoted 2 lines

This is exactly what I want to

avoid. I know it is possible, but using

Quoted 1 line

the post-build script

method is faster, more logic and more straight

Quoted 4 lines

forward.

Quoted 2 lines

Is there a standard why to do this .ie

this custom post-build

Quoted 2 lines

Well, it's up to you what you

do with that script. You'll be fed with

Quoted 1 line

the target rootfs as $1

and could then do something like

Quoted 2 lines

cp

/path/to/your/hello $1/usr/bin/

Quoted 2 lines

Or remove unwanted

files etc. Up to you.

Quoted 2 lines
Quoted 2 lines

would it be possible to

document how to

Quoted 1 line
Quoted 1 line

add a simple Hello World app.? So that

it gets built? with

Quoted 1 line
Quoted 1 line

buildroot or have I missed somthing

in the docs.

Quoted 2 lines

No, don't confuse that. Your application

will not be built by buildroot

Quoted 3 lines

by the post-build script.

If you want to do that, you need to add your own

package. See the

Quoted 1 line

package/ folder how others do that. And if that

package is building a

Quoted 1 line

publically available project, please

consider sending a patch back to

Quoted 1 line

this list so everybody can

benefit from it.

Quoted 4 lines

Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090711/8f5f01e8/attachment.htm>

#1 lore raw

PATCH 1/1 Add support for custom post-build script

I second the prototype example of a simple helloworld package.

Quoted 50 lines · On Sun, Jul 12, 2009 at 5:34 AM, <[email protected]> wrote:

Thanks Daniel

It would be nice to have a proto type package aka hello world for us first timers. As for me being able to build for two different platforms 32bit / 64bit is great feature of buildroot. At the moment we have been using lfs for 32 bit and 64 bit. Does a package have to have a network location for download as my prototype code / initial program ideas go through many revisions before they even get to that stage :-).

Nick

Quoted 26 lines · nfrench at xtale.biz
Quoted 3 lines

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.

Quoted 2 lines

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.

Quoted 3 lines

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.

Quoted 8 lines

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

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 4 lines
----
Regards
Paul Archer
ptarcher at gmail.com