Files
mckernel/test/user_space/patch_and_build.sh
Masamichi Takagi 56abe988f3 test: Fix user_space, testing use of copy_from_user / copy_to_user
Change-Id: I2caef1ba6597f693dc4f773ef8fedbd837c45ce6
2018-11-29 11:32:42 +09:00

24 lines
447 B
Bash
Executable File

#!/bin/sh
source ./config
MC_HOME=${SRC_PATH}
cd $MC_HOME
if [ $# -eq 1 ]; then
PATCH_NAME=$1
git reset --hard HEAD
patch -p1 < ${TEST_DIR}/patch/${PATCH_NAME}
else
git reset --hard HEAD
fi
cd $MC_HOME
make clean
./configure --prefix=${MCK_DIR} --with-target=smp-x86 \
--with-mpi=/usr/lib64/mpich-3.2 --enable-qlmpi $* > \
/tmp/install.log
make >> /tmp/install.log
make install >> /tmp/install.log
# for wallaby
chmod 777 ${MCK_DIR}/etc