发现
- 会检查是不是root权限呢
root@Openwrt-Compiled:/avalon/openwrt# make menuconfig Checking 'working-make'... ok. Checking 'case-sensitive-fs'... ok. Checking 'getopt'... ok. Checking 'fileutils'... ok. Checking 'working-gcc'... ok. Checking 'working-g++'... ok. Checking 'ncurses'... ok. Checking 'zlib'... ok. Checking 'gawk'... ok. Checking 'unzip'... ok. Checking 'bzip2'... ok. Checking 'patch'... ok. Checking 'perl'... ok. Checking 'python'... ok. Checking 'wget'... ok. Checking 'git'... ok. Checking 'gnutar'... ok. Checking 'svn'... ok. Checking 'gnu-find'... ok. Checking 'getopt-extended'... ok. Build dependency: Please do not compile as root. Prerequisite check failed. Use FORCE=1 to override. make: *** [tmp/.prereq-build] Error 1
跳过
oot@Openwrt-Compiled:/avalon/openwrt# make menuconfig FORCE=1 Collecting package info: package/feeds/packages/linuxi
去除限制
- vim注释掉这个文件[include/prepreq-build.mk]中关于root的判断语句。