操作系统为ubuntu 12.04.04
1、安装所需要的相关软件包
apt-get install g++
apt-get install libncurses5-dev
apt-get install zlib1g-dev
apt-get install bison
apt-get install flex
apt-get install unzip
apt-get install autoconf
apt-get install gawk
apt-get install make
apt-get install gettext
apt-get install gcc
apt-get install binutils
apt-get install patch
apt-get install bzip2
apt-get install libz-dev
apt-get install asciidoc
apt-get install subversion
apt-get install libssl-dev
2、下载openwrt源码
git clone git://git.openwrt.org/openwrt.git
3、进入openwrt目录,更新并安装软件包
./scripts/Feeds update �Ca
./scripts/Feeds install �Ca
4、检查配置
make defconfig
5、进入定制界面选择设备固件,也可以进入后,加载已有的配置
make menuconfig
6、设置环境变量
export FORCE_UNSAFE_CONFIGURE=1
7、开始编译
make V=s
等同于make V=99
原文链接:https://www.f2er.com/ubuntu/356072.html