ARM_ARCH=arm64
NCPUS=`cat /proc/cpuinfo | grep processor | wc -l`
NCPUS=$(($NCPUS * 2))
+rm -f localversion-rt
# Check this system has ccache
check_ccache()
{
case $1 in
c4|n2)
- CONFIG=odroidg12
+ CONFIG=odroidg12${USE_RT:+_rt}
DTB1=meson64_odroidc4.dtb
DTB2=meson64_odroidn2.dtb
- OUT_DIR=odroid
+ OUT_DIR=odroid${USE_RT:+-rt}
;;
vim3|vim3l)
- CONFIG=kvims
+ CONFIG=kvims${USE_RT:+_rt}
DTB1=kvim3_linux.dtb
DTB2=kvim3l_linux.dtb
- OUT_DIR=kvim
+ OUT_DIR=kvim${USE_RT:+-rt}
;;
esac
}
{
# Create boot tarball for the lthor flashing
DATE=`date +%Y%m%d`
- BOOT_TARBALL=tizen-local-${DATE}-boot-arm64-${BOARDS}.tar.gz
+ BOOT_TARBALL=tizen-local-${DATE}-boot-arm64-${BOARDS}${USE_RT:+-rt}.tar.gz
cd ./output/
OUTPUT_FILES=`find * -type f`
*)
echo "linux kernel building script for tizen amlogic boards"
- echo "usage: $0 target"
+ echo "usage: $0 target [rt]"
echo "where target is one of: c4 n2 vim3 vim3l all"
+ echo "optional rt parameter indicates real-time kernel"
exit
;;
esac
+if [ "$2" = "rt" ]; then
+ USE_RT=y
+else
+ USE_RT=
+fi
+
check_ext4_tool
check_ccache
clean_output
CHECK_ODROID=`grep CONFIG_ARCH_MESON64_ODROID_COMMON=y .config`
if [ "$BOARDS" = "c4" ] || [ "$BOARDS" = "n2" ]; then
if [ "z${CHECK_ODROID}" = "z" ]; then
- echo "There is local .config, but it is differen from ${BOARD}."
+ echo "There is local .config, but it is differen from ${BOARDS}."
echo "Please try after removing .config."
exit
fi
else
if [ "z${CHECK_ODROID}" != "z" ]; then
- echo "There is local .config, but it is differen from ${BOARD}."
+ echo "There is local .config, but it is differen from ${BOARDS}."
echo "Please try after removing .config."
exit
fi