Makefile.forsoclib 938 Bytes
Newer Older
Daniela Genius's avatar
Daniela Genius committed
1 2 3 4 5 6 7
SOCLIB_CPU=ppc
MUTEKH_CPU=ppc

PATH+=/opt/mutekh/bin
export PATH

updateruntime:
Daniela Genius's avatar
Daniela Genius committed
8 9
	cp ~/TTool/executablecode/src/*.c ~/TTool/MPSoC/mutekh/libavatar/
	cp ~/TTool/executablecode/src/*.h ~/TTool/MPSoC/mutekh/libavatar/include/  
Daniela Genius's avatar
Daniela Genius committed
10 11

updategeneratedcode:
Daniela Genius's avatar
Daniela Genius committed
12 13 14
	cp ~/TTool/executablecode/generated_src/*.h ~/TTool/MPSoC/mutekh/examples/avatar
	cp ~/TTool/executablecode/generated_src/*.c ~/TTool/MPSoC/mutekh/examples/avatar	
	cp ~/TTool/executablecode/Makefile.soclib ~/TTool/MPSoC/mutekh/examples/avatar/Makefile
Daniela Genius's avatar
Daniela Genius committed
15 16

compilesoclib:
Daniela Genius's avatar
Daniela Genius committed
17
	cd ~/TTool/MPSoC/mutekh; make CONF=examples/avatar/config BUILD=soclib-$(MUTEKH_CPU):pf-tutorial
Daniela Genius's avatar
Daniela Genius committed
18 19 20

runsoclib:
	echo "running soclib"
Daniela Genius's avatar
Daniela Genius committed
21
	cd ~/TTool/MPSoC/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial; SOCLIB_GDB=S ./system.x $(SOCLIB_CPU):$(SOCLIB_CPU_COUNT) ~/TTool/MPSoC/mutekh/avatar-soclib-$(MUTEKH_CPU).out
Daniela Genius's avatar
Daniela Genius committed
22 23
allsoclib: updateruntime updategeneratedcode compilesoclib runsoclib