Statistics
| Branch: | Revision:

root / scripts / compile_toolchain.sh @ 3de6402b

History | View | Annotate | Download (797 Bytes)

1
MAIN_DIR="/home/quynh/Thesis/cc-openwrt"
2
cd $MAIN_DIR
3
echo $(pwd)
4
_description=$1
5
_separator="_"
6
_now="$(date +'%Y_%m_%d_%H_%M')"
7
_dirname=$_description$_separator$_now
8
./scripts/diffconfig.sh > $MAIN_DIR/config.diff
9

    
10
make
11

    
12
BIN_DIR="$MAIN_DIR/bin/realview"
13
cd $BIN_DIR
14
echo $(pwd)
15
mkdir $_dirname
16

    
17
# move files
18
mv $MAIN_DIR/config.diff ./$_dirname
19
mv $BIN_DIR/*.tar.bz2 ./$_dirname
20
mv $BIN_DIR/*.elf ./$_dirname
21
mv $BIN_DIR/md5sums ./$_dirname
22
mv $BIN_DIR/sha256sums ./$_dirname
23
mv $BIN_DIR/packages ./$_dirname
24

    
25
# find . -maxdepth 1 -type f -name '*' -exec mv -n {} ./$_now \;
26
echo "All binary files are in ./bin/realview/$_dirname"
27
ELF_FILE_PATH=$BIN_DIR$_dirname"/openwrt-realview-vmlinux-initramfs.elf"
28
qemu-system-arm -M realview-eb-mpcore -kernel $ELF_FILE_PATH -net nic -net user -nographic