Posted by qawsed123
on March 12, 2010 at 10:20 AM PST
I'm trying to run the squawk in a iMX31 motherboard with linux embedded and with the arm-1136jfs-linux-gnueabi-gcc toolchain.
The toolchain was build succesful because is a package of phytec.
Firstly my intention was to create a specific java file for the platform (and modify the conditions of the platform switch in squawk/builder/src/com/sun/squawk/builder/platform and so thanks with the properties of BUILDER_FLAGS using -Dproperty=value) and then add and specific java file for my toolchain (in squawk/builder/src/com/sun/squawk/builder/compilercompiler).
My wonder was in spite of add these java files, when I did the build of the squawk (all ./d.sh and so on) the shell didn't show something strange.
Viewing the bld.sh in squawk/builder/ we have this:
rm -rf classes
$JAVAC -target 1.5 -source 1.5 -d classes -g src/com/sun/squawk/builder/launcher/*.java
$JAR cfm ../build.jar build-manifest.mf -C classes .
rm -fr classes
$JAR xf ../../tools/retroweaver-all-squawk.jar
$JAVAC -cp classes:../vm2c/lib/openjdk-javac-6-b12.jar -target 1.5 -source 1.5 -d classes -g `find src -name '*.java'`
$JAR cfm ../build-commands.jar build-commands-manifest.mf -C classes .
rm -fr classes
IMO I think that there is a jar folder that contains the original .class and that is the reason why my java fils didn't work. Opening the build-commands.jar I find all these classes (compile folder and platform folder).
How I can do a proper build-command.jar with my own java files?
I've tried to put these commands in the shell but it not works.. is impossible to create both JAR files.
And, Someone can help me with my project? Am I working correctly?
Thanks in advance!
Message was edited by: qawsed123