]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/Makefile
Allow ranning experiments for all kernels
[can-benchmark.git] / gw-tests / Makefile
index c0bb27f19083e4a822030733f1133497b89349db..524ddd1f649598c9635ab60d65140c3a079f5797 100644 (file)
@@ -8,7 +8,7 @@ T:=$(filter-out filter%,$(T)) $(filter filter%,$(T))
 all: $(T:%=run-%) html
        @echo "Run 'make plot' to generate graphs"
 
-TEST_FLAGS = -P -t all -l all
+TEST_FLAGS = -P -t all -l all $(if $(UPDATE),-u)
 
 $(T:%=run-%):run-%:
        ./$* $(TEST_FLAGS)
@@ -18,8 +18,8 @@ $(T:%=run-%):run-%:
 PLOT_SCRIPTS=$(shell find results -name plot.sh)
 
 define plot_template
-plot: $1/thumb
-$1/thumb: $1/plot.sh $(notdir $1).sh $(wildcard $1/*.txt)
+plot: $1/graph.png
+$1/graph.png: $1/plot.sh $(notdir $1).sh lib.sh $(wildcard $1/*.txt)
        $1/plot.sh -X
 endef
 
@@ -36,3 +36,14 @@ $(foreach result_dir,$(PLOT_SCRIPTS:%/plot.sh=%),$(eval $(call plotall_template,
 .PHONY: html
 html:
        ./genhtml/genhtml.py results
+
+KERNELS=2.6.33.7-00007-g9c0ff90 2.6.33.7-rt29-00004-g92487e4 2.6.36.2-00015-g4f1bc4e 3.0.4-00007-g1c8c373 3.0.4-rt14-00008-gb2052fd
+
+.PHONY: allkern $(KERNELS:%=kernel-%)
+allkern: $(KERNELS:%=kernel-%)
+
+$(KERNELS:%=kernel-%): kernel-%: 
+       ln -sf uImage-$* /srv/tftp/ryu/uImage
+       dtrrts /dev/ttyUSB0 1 1
+       sleep 30
+       $(MAKE)