openwrt 编译

clone 代码:

1
git clone https://github.com/openwrt/openwrt

前置依赖:

1
2
3
4
5
6
yum install ncurses-devel
yum install gawk
yum install bzip2
yum install perl-devel
yum -y install perl-Thread-Queue
yum -y install patch

下载feeds

1
2
./scripts/feeds update -a
./scripts/feeds install -a

其它需要安装的依赖:

1
2
3
4
5
yum -y install zlib-static
yum -y install openssl-devel
yum -y install unzip
yum -y install wget
yum -y install svn

编译:

1
2
make menuconfig
FORCE_UNSAFE_CONFIGURE=1 make -j16 V=s