From 5f9b5f0992c13f83ed4204f8f49335501f21fb14 Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 9 May 2004 01:53:10 -0700 Subject: [PATCH] compact runtime jar darcs-hash:20040509085310-24bed-bcf9ae83d93b2fd427972280c69dafa347506496.gz --- Makefile | 10 ++++++++++ upstream/Makefile | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/Makefile b/Makefile index 5956163..d87a72c 100644 --- 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.' '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 $@` diff --git a/upstream/Makefile b/upstream/Makefile index f85070a..430c2e0 100644 --- a/upstream/Makefile +++ b/upstream/Makefile @@ -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 $@ -- 1.7.10.4