1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 09:46:28 +02:00

nanonote-files: compile-openwrt-xburst.sh: ignore build when there is no new commit

This commit is contained in:
Xiangfu 2012-03-14 09:32:09 +08:00
parent 9cee283d7d
commit 669f921295

View File

@ -53,6 +53,17 @@ cp feeds/qipackages/nanonote-files/data/qi_lb60/conf/${CONFIG_FILE_TYPE} \
sed -i '/CONFIG_ALL/s/.*/CONFIG_ALL=y/' .config
yes "" | make oldconfig > /dev/null
echo "getting version numbers of used repositories..."
HEAD_NEW=`${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR}`
HEAD_OLD=`cat ${IMAGES_DIR}/../${OPENWRT_DIR_NAME}.VERSIONS`
if [ "${HEAD_NEW}" == "${HEAD_OLD}" ]; then
echo "No new commit, ignore build"
rm -f ${BUILD_LOG} ${VERSIONS_FILE}
rmdir ${IMAGES_DIR}
exit 0
fi
${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR} > ${VERSIONS_FILE}
cp ${VERSIONS_FILE} ${IMAGES_DIR}/../${OPENWRT_DIR_NAME}.VERSIONS
echo "copy files, create VERSION, link dl folder, last prepare..."
rm -f files && ln -s feeds/qipackages/nanonote-files/data/qi_lb60/files/
@ -72,10 +83,6 @@ time make ${MAKE_VARS} > ${IMAGES_DIR}/BUILD_LOG 2>&1
MAKE_RET="$?"
echo "getting version numbers of used repositories..."
${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR} > ${VERSIONS_FILE}
echo "copy all files to IMAGES_DIR..."
cp .config ${IMAGES_DIR}/config
cp build_dir/linux-xburst_qi_lb60/linux-*/.config ${IMAGES_DIR}/kernel.config