KERNEL_PATH=`basename ${BUILD_ROOT}`
if [ $# == 0 ]; then
- echo "Usage : $0 <architecture> [rt] [bootimg]"
+ echo "Usage : $0 <architecture> [rt] [bootimg] [dontpull]"
echo " architecture : arm or arm64"
+ echo " dontpull : do not execute \"git pull\" on linux-tizen-modules-source"
echo " e.g) $0 arm"
+ echo " e.g) $0 arm dontpull"
echo " e.g) $0 arm64 rt"
echo " e.g) $0 arm64 bootimg"
+ echo " e.g) $0 arm64 bootimg dontpull"
echo " e.g) $0 arm rt bootimg"
exit
fi
function mk_tizen_modules()
{
if [ -e ${BUILD_ROOT}/../linux-tizen-modules-source ]; then
+ if [ $MODULE_PULL = "1" ]; then
+ BRANCH=`git rev-parse --abbrev-ref HEAD`
+ echo "Current branch is "$BRANCH
+ fi
+
pushd ${BUILD_ROOT}/../linux-tizen-modules-source
+ if [ $MODULE_PULL = "1" ]; then
+ git checkout $BRANCH
+ git pull
+ fi
+
ln -s ${PWD}/include kernel
export LOGGER_MAIN_BUFFER_SIZE=256
IS_BOOTIMG=1
fi
+MODULE_PULL=1
+if [ "$2" = "dontpull" ] || [ "$3" = "dontpull" ] || [ "$4" = "dontpull" ]; then
+ echo "Modules don't be pulled from git repo"
+ MODULE_PULL=0
+fi
+
if [ "$IS_RT" = "1" ]; then
echo "Build RT-Kernel"
BUILD_VERSION=`cat .kernel_buildenv`