[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Adding regular open source progams to Petalinux - 'configure'
John Mcgrath wrote:
> I’m looking into adding some useful programs to my petalinux setup –
> like php support for example.
> As I’m sure you know, most open source programs come with a neat
> ‘configure’ program which auto-detects what the system has/supports,
> mainly by running various tests with gcc.
> This then generates the makefile(s) which are used to compile the program.
This is easy, take a look for example at petalinux-dist/user/ethtool
The general idea is a toplevel MAkefile that creates a bulid directory,
and calls ./configure with the appropriate cross-compilation settings.
The toplevel makefile also adds romfs: target so we know how to copy the
resulting executable into the root filesystem.
It's easiest when the target app supports so-called VPATH builds,
meaning that you can create a build subdir, cd into in, and do
../configure. This way there's no clash between the uClinux makefile
that calls configure, and the makefile that is itself generated by
This sounds complicated, but re-read it and it will make sense! :)
microblaze-uclinux mailing list
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/