standard_build/build_kernel_rt.sh

28 lines
525 B
Bash
Raw Normal View History

2024-11-27 11:30:36 +08:00
#!/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