copy_back_to_contrib.sh 705 Bytes
Newer Older
1
#!/usr/bin/env bash
2
3
4

# run this if you make changes to qemu and want to commit them back into ML tree

alex@thinkpad's avatar
alex@thinkpad committed
5
QEMU_PATH=${QEMU_PATH:=qemu-2.5.0}
6
ML_PATH=${ML_PATH:=../magic-lantern}
7

8
9
10
11
12
13
14
cp -v *.sh *.py *.gdb gdbopts $ML_PATH/contrib/qemu/scripts
cp -v --parents */*.gdb $ML_PATH/contrib/qemu/scripts
cp -v $QEMU_PATH/hw/eos/* $ML_PATH/contrib/qemu/eos
cp -v $QEMU_PATH/hw/eos/mpu_spells/* $ML_PATH/contrib/qemu/eos/mpu_spells
cp -v $QEMU_PATH/hw/eos/dbi/* $ML_PATH/contrib/qemu/eos/dbi
cp -v --parents tests/*.sh tests/*.py $ML_PATH/contrib/qemu/
cp -v --parents tests/*/*.md5 $ML_PATH/contrib/qemu/
15

16
cd $QEMU_PATH
17
git diff > ../$ML_PATH/contrib/qemu/$QEMU_PATH-eos.patch
18
19
cd ..

20
cd $ML_PATH/contrib/qemu/
21
hg diff .