Date:2012-03-18 07:15:57 (8 years 3 months ago)
Author:Xiangfu
Commit:97b9b842ec7a4620de2b77151f52f90c3b81c980
Message:nanonote-files: compile script file: collect all failed package in minial build

Files: nanonote-files/data/qi_lb60/scripts/compile-openwrt-xburst.sh (4 diffs)

Change Details

nanonote-files/data/qi_lb60/scripts/compile-openwrt-xburst.sh
5353sed -i '/CONFIG_ALL/s/.*/CONFIG_ALL=y/' .config
5454yes "" | make oldconfig > /dev/null
5555
56
57if [ "$1" == "full_system" ]; then
58    echo "re-write config file"
59    cp .config ${IMAGES_DIR}/config.autogen
60    cp /home/xiangfu/config .config
61fi
62
63
5664echo "getting version numbers of used repositories..."
5765HEAD_NEW=`${GET_FEEDS_VERSION_SH} ${OPENWRT_DIR}`
5866HEAD_OLD=`cat ${IMAGES_DIR}/../${OPENWRT_DIR_NAME}.VERSIONS`
...... 
9199mkdir -p ${IMAGES_DIR}/files
92100cp -a files/* ${IMAGES_DIR}/files/
93101
102(cd ${IMAGES_DIR} && \
103    grep -E "ERROR:\ package.*failed to build" BUILD_LOG | \
104    grep -v "package/kernel" > failed_packages.txt; \
105)
106
94107if [ "${MAKE_RET}" != "0" ]; then
95108    echo "ERROR: Build failed! please refer to the BUILD_LOG file"
96109    tail -n 100 ${IMAGES_DIR}/BUILD_LOG > ${IMAGES_DIR}/BUILD_LOG.last100
...... 
99112/${OPENWRT_DIR_NAME}-${DATE_TIME}"
100113else
101114    (cd ${IMAGES_DIR} && \
102        grep -E "ERROR:\ package.*failed to build" BUILD_LOG | \
103            grep -v "package/kernel" > failed_packages.txt; \
104        bzip2 -z BUILD_LOG; \
105115        bzip2 -z openwrt-xburst-qi_lb60-root.ubi; \
106116    )
107117    mv ${IMAGES_DIR} ${DEST_DIR}
...... 
109119    URL="${IMAGES_URL}/${OPENWRT_DIR_NAME}-${DATE_TIME}"
110120fi
111121
122(cd ${IMAGES_DIR} && bzip2 -z BUILD_LOG;)
123
112124echo -e "say #qi-hardware ${MSG}: ${URL} \nclose" \
113125    | nc turandot.qi-hardware.com 3858
114126

Archive Download the corresponding diff file



interactive