1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 18:18:26 +02:00

nanonote-files: compile script file: collect all failed package in minial build

This commit is contained in:
Xiangfu 2012-03-18 14:15:57 +08:00
parent 0f72773a7f
commit 97b9b842ec

View File

@ -53,6 +53,14 @@ 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
if [ "$1" == "full_system" ]; then
echo "re-write config file"
cp .config ${IMAGES_DIR}/config.autogen
cp /home/xiangfu/config .config
fi
echo "getting version numbers of used repositories..." echo "getting version numbers of used repositories..."
HEAD_NEW=`${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR}` HEAD_NEW=`${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR}`
HEAD_OLD=`cat ${IMAGES_DIR}/../${OPENWRT_DIR_NAME}.VERSIONS` HEAD_OLD=`cat ${IMAGES_DIR}/../${OPENWRT_DIR_NAME}.VERSIONS`
@ -91,6 +99,11 @@ cp -a bin/xburst/* ${IMAGES_DIR} 2>/dev/null
mkdir -p ${IMAGES_DIR}/files mkdir -p ${IMAGES_DIR}/files
cp -a files/* ${IMAGES_DIR}/files/ cp -a files/* ${IMAGES_DIR}/files/
(cd ${IMAGES_DIR} && \
grep -E "ERROR:\ package.*failed to build" BUILD_LOG | \
grep -v "package/kernel" > failed_packages.txt; \
)
if [ "${MAKE_RET}" != "0" ]; then if [ "${MAKE_RET}" != "0" ]; then
echo "ERROR: Build failed! please refer to the BUILD_LOG file" echo "ERROR: Build failed! please refer to the BUILD_LOG file"
tail -n 100 ${IMAGES_DIR}/BUILD_LOG > ${IMAGES_DIR}/BUILD_LOG.last100 tail -n 100 ${IMAGES_DIR}/BUILD_LOG > ${IMAGES_DIR}/BUILD_LOG.last100
@ -99,9 +112,6 @@ if [ "${MAKE_RET}" != "0" ]; then
/${OPENWRT_DIR_NAME}-${DATE_TIME}" /${OPENWRT_DIR_NAME}-${DATE_TIME}"
else else
(cd ${IMAGES_DIR} && \ (cd ${IMAGES_DIR} && \
grep -E "ERROR:\ package.*failed to build" BUILD_LOG | \
grep -v "package/kernel" > failed_packages.txt; \
bzip2 -z BUILD_LOG; \
bzip2 -z openwrt-xburst-qi_lb60-root.ubi; \ bzip2 -z openwrt-xburst-qi_lb60-root.ubi; \
) )
mv ${IMAGES_DIR} ${DEST_DIR} mv ${IMAGES_DIR} ${DEST_DIR}
@ -109,6 +119,8 @@ else
URL="${IMAGES_URL}/${OPENWRT_DIR_NAME}-${DATE_TIME}" URL="${IMAGES_URL}/${OPENWRT_DIR_NAME}-${DATE_TIME}"
fi fi
(cd ${IMAGES_DIR} && bzip2 -z BUILD_LOG;)
echo -e "say #qi-hardware ${MSG}: ${URL} \nclose" \ echo -e "say #qi-hardware ${MSG}: ${URL} \nclose" \
| nc turandot.qi-hardware.com 3858 | nc turandot.qi-hardware.com 3858