add rebuild.sh

Signed-off-by: liangkangnan <liangkangnan@163.com>
tinyriscv
liangkangnan 2020-06-13 13:11:44 +08:00
parent c94bf74155
commit 65ff1f1dd2
1 changed files with 19 additions and 0 deletions

19
rebuild.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
set -e
BASE=`pwd`
NPROC=${NPROC:-$((`nproc`*2))}
PARALLEL=${PARALLEL:--j${NPROC}}
echo "building openocd......"
./bootstrap
./configure --build=i686-w64-mingw32 --host=i686-w64-mingw32 --disable-gccwarnings CFLAGS="-O2"
sed -i '$d' ./src/jtag/drivers/libjaylink/config.h
sed -i '$d' ./src/jtag/drivers/libjaylink/config.h
sed -i '$d' ./src/jtag/drivers/libjaylink/config.h
make ${PARALLEL}