一、问题
执行命令 make V=99
报以下错误:
make[1]: Entering directory `/home/alm/openwrt`
make[2]: Entering directory `/home/alm/openwrt`
make[3]: Entering directory `/home/alm/openwrt/target/linux`
make[4]: Entering directory `/home/alm/openwrt/target/linux/ramips`
if [ -s "/home/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.18.45/patches/series" ]; then (cd "/home/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.18.45"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi
make[4]: *** [/home/openwrt/build_dir/target_mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-3.18.45/.quilt_checked] Error 126
make[4]: Leaving directory `/home/alm/openwrt/target/linux/ramips`
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/alm/openwrt/target/linux`
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/alm/openwrt`
make[1]: *** [/home/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/alm/openwrt`
make[2]: *** [world] Error 2
二、原因
OpenWRT的一个已知错误:
http://forum.openwrt.org/viewtopic.php?pid=153601
三、解决方法
执行命令 make tools/quilt/install
,等装完之后再 make V=99
• 由 Leung 写于 2019 年 4 月 19 日
• 参考:编译rt3052的openwrt固件出现的错误解决方法
make kernel_menuconfig error