Openwrt/LEDE编译环境的搭建
准备工作,安装ubuntu系统的电脑,或者虚拟机,使用最近稳定版本的ubuntu。
进入终端:
$ sudo apt-get update
$ sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip subversion mercurial
然后获取openwrt源码:
$ git clone git://git.openwrt.org/openwrt.git
或者获取LEDE源码:
$ git clone https://git.lede-project.org/source.git
进入源码目录
执行:
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
之后,执行:
$ make menuconfig
如果提示没有安装编译环境所以来的包,则apt-get intall 安装!
选择要编译的硬件平台和软件包
$ make V=99