#!/bin/bash . package_rt.config WORK=`pwd` echo "prepare rt source" if [ ! -e "${SRC}" ]; then mkdir -p ${SRC} cp -ar ${ORIGIN_SRC}/* ${SRC}/ cp -ar ${ORIGIN_SRC}/.gitignore ${SRC}/ echo "apply rt patches" cd ${SRC}/ QUILT_PATCHES="${PATCHES_DIR}" QUILT_PC=.pc quilt push --quiltrc - -a --fuzz=0 RET=$? if [ ${RET} -ne 0 ]; then exit $RET fi git init git add . git commit -m "init rt" cd ${WORK} fi export PACKAGE_CONFIG=package_rt.config ./build_kernel.sh $1