mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-25 19:52:50 +02:00
nanonote-files: compile-openwrt-xburst.sh: ignore build when there is no new commit
This commit is contained in:
parent
9cee283d7d
commit
669f921295
@ -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
|
sed -i '/CONFIG_ALL/s/.*/CONFIG_ALL=y/' .config
|
||||||
yes "" | make oldconfig > /dev/null
|
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..."
|
echo "copy files, create VERSION, link dl folder, last prepare..."
|
||||||
rm -f files && ln -s feeds/qipackages/nanonote-files/data/qi_lb60/files/
|
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="$?"
|
MAKE_RET="$?"
|
||||||
|
|
||||||
|
|
||||||
echo "getting version numbers of used repositories..."
|
|
||||||
${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR} > ${VERSIONS_FILE}
|
|
||||||
|
|
||||||
|
|
||||||
echo "copy all files to IMAGES_DIR..."
|
echo "copy all files to IMAGES_DIR..."
|
||||||
cp .config ${IMAGES_DIR}/config
|
cp .config ${IMAGES_DIR}/config
|
||||||
cp build_dir/linux-xburst_qi_lb60/linux-*/.config ${IMAGES_DIR}/kernel.config
|
cp build_dir/linux-xburst_qi_lb60/linux-*/.config ${IMAGES_DIR}/kernel.config
|
||||||
|
Loading…
Reference in New Issue
Block a user