Help with Makefiles/automake/autoconfig

John Neil jneil at atrove.com
Thu Dec 18 13:10:02 UTC 2003


Although java using GCJ runs happily on our board, before making the
modifications available I would like to update the rtems tree configuration,
in particular with the configure/automake/makefiles used to build a BSP and
its applications.  I have done this in my tree by hacking the Makefiles
specifically for our board, however I was wondering if anyone would be able
to assist in getting this into a more generic state.  Unfortunately my
understanding of automake etc is extremely limited
 
Basically the changes consist of 
1.  A separate subdirectory cpukit/java, which contains two or three generic
C++ source files and a header files which must be compiled if java is
enabled.

2.  Some cpu specific source files which are currently placed under
c/src/lib/libbsp/m68k/shared used to generate hardware based java null
pointer exceptions.  On our 68360-040 port this consists of one assembler
and on c++ file.

3.  At this stage a simple example test program which is currently in a
directory in the examples.

I would like to modify the configuration stuff so that

1.  There is an optional enable java/gcj parameter to the configuration.
2.  So port specific c++ functions in c/src/lib/libbsp/m68k/shared can be
compiled when java is enabled.
3.  The board specific makefiles have additional rules for compiling java
sources and generating C++ header files from the java sources using GCJ,
similar to the current "COMPILE.c" found in gcc-target-default-cfg, with
appropriate flags, specifically for hardware which supports the null pointer
exceptions.

Any assistance would be greatly appreciated

Thanks in advance
John
 





More information about the users mailing list