|
Hi All 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. However, in the petalinux environment, any ‘configure’
operation would run on the build machine, so the makefile generated would not
reflect the petalinux system capabalites. So to make a long story short – has anyone come
up with a general way of running configure / generating the makefile for open
source programs? Hand creating/hacking the makefile would be pretty
tricky! If one does not exist, a possible solution may be
this: As configure usually runs very similar ‘tests’
for most open source projects – I wonder could a list of the ‘answers’
to these tests be pre-calculated for petalinux, and then when configure checks
for something, instead of getting what the build machine supports, it would
instead return the pre-calculated result for the petalinux env. For any tests
that do not have answers, these could be asked as questions to the user. At least this would go someway to automating the
process. A case in point – I recently tried compiling
the latest thttpd (2.25b), and ran into this issue. Ideally I’d like to
get php working with that – but I’m starting to think that would be
VERY wishful thinking…. I was able to get thttpd to compile, but I had to
make some guesses as to some of the #defines that had to be set. The resulting
binary seems to work for the most part, but never serves cgi scripts. So I can only assume some of my guessed settings are
incorrect. This is not critical or anything, just looking to see
if anyone has solved this generic building issue. Cheers John |