compact runtime jar
authorbrian <brian@brianweb.net>
Sun, 9 May 2004 08:53:10 +0000 (01:53 -0700)
committerbrian <brian@brianweb.net>
Sun, 9 May 2004 08:53:10 +0000 (01:53 -0700)
darcs-hash:20040509085310-24bed-bcf9ae83d93b2fd427972280c69dafa347506496.gz

Makefile
upstream/Makefile

index 5956163..d87a72c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -182,6 +182,16 @@ runtime.jar: $(runtime_classes:%=build/org/ibex/nestedvm/%.class)
 nestedvm.jar: $(java_classes) .manifest
        cd build && jar cfm ../$@ ../.manifest $(java_classes:build/%.class=%*.class)
 
+compact_runtime_compiler.jar: $(java_classes) .manifest $(tasks)/build_gcclass
+       mkdir -p tmp/pruned
+       java -cp upstream/build/gcclass/build:$(bcel_jar) com.brian_web.gcclass.GCClass \
+               build tmp/pruned \
+               org.ibex.nestedvm.RuntimeCompiler.main 'org.ibex.nestedvm.Runtime.decodeData' \
+               'org.ibex.nestedvm.UnixRuntime.<init>' 'org.ibex.nestedvm.Runtime.initPages' \
+               'org.ibex.nestedvm.Runtime.clearPages' 'org.ibex.nestedvm.Runtime.syscall' \
+               'org.ibex.nestedvm.Runtime$$CPUState.dup'
+       cd tmp/pruned && jar cfm ../../$@ ../../.manifest .
+
 # This is only for Brian to use... don't mess with it
 rebuild-constants: $(tasks)/build_newlib
        @mkdir -p `dirname $@`
index f85070a..430c2e0 100644 (file)
@@ -237,3 +237,8 @@ tasks/build_busybox: tasks/patch_busybox tasks/full_toolchain
                ln -s busybox-$(version_busybox) busybox
        cd build/busybox && $(MAKE) LDFLAGS="$(MIPS_LDFLAGS)" CFLAGS_EXTRA="$(MIPS_CFLAGS) -DNESTEDVM -g"
        touch $@
+
+tasks/build_gcclass:
+       cd build &&  darcs get --verbose http://darcs.brianweb.net/gcclass
+       cd build/gcclass && make
+       touch $@