Reference: http://blog.csdn.net/mirkerson/article/details/7287931
https://dev.openwrt.org/ticket/12860
Http://www.2cto.com/os/201204/126215.html
One. Build the build environment
Application--Attachments--terminal
sudo apt-get update (update)
To install the required components for compilation:
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install binutils
sudo apt-get install patch
sudo apt-get install bzip2
sudo apt-get install Flex
sudo apt-get install Bison
sudo apt-get install make
sudo apt-get install autoconf
sudo apt-get install GetText
sudo apt-get install Texinfo
sudo apt-get install unzip
sudo apt-get install sharutils
sudo apt-get install subversion
sudo apt-get install Libncurses5-dev
sudo apt-get install Ncurses-term
sudo apt-get install Zlib1g-dev
sudo apt-get install gawk
sudo apt-get install AsciiDoc
sudo apt-get install Libz-dev
Two. Download Source:
mkdir OpenWrt Create a OpenWrt folder
CD OpenWrt into the OpenWrt folder
SVN co svn://svn.openwrt.org/openwrt/branches/backfire download the source code of the official website
./scripts/feeds UPDATE-A Update Package
./scripts/feeds INSTALL-A Installation Package
Note: Google-related source code is required FQ
Three. Configuration:
Make Menuconfig
Note: If you have the following error
--:/info/sys/openwrt/stable/include/shell.sh;: No such file or directoryerror:please fix target/linux/brcm63xx/ Makefileerror:please Fix target/linux/brcm47xx/makefileerror:please Fix target/linux/ppc40x/makefileerror:please Fix target/linux/ppc44x/makefileerror:please fix target/linux/brcm-2.4/makefileerror:please fix target/linux/x86/ Makefileerror:please fix target/linux/orion/makefileerror:please Fix target/linux/xburst/makefileerror:please fix Target/linux/lantiq/makefileerror:please Fix target/linux/ar7/makefileerror:please Fix target/linux/kirkwood/ Makefileerror:please fix target/linux/ar71xx/makefileerror:please Fix target/linux/uml/makefileerror:please fix Target/linux/rb532/makefileerror:please Fix target/linux/avr32/makefileerror:please Fix target/linux/ixp4xx/ Makefileerror:please fix target/linux/atheros/makefileerror:please Fix target/linux/au1000/makefileerror:please fix Target/linux/rdc/makefileerror:please fix target/linux/adm5120/makefilecollecting tArget info:doneprerequisite check failed. Use force=1 to Override.make: * * * [tmp/.prereq-build]ошибка1
Reference: https://dev.openwrt.org/ticket/12860 reason is the make version issue, source dependent 3.8.2 I own the latest version of make is 4.0
Fix reference:
Resolution worksforme Deletedstatus changed from closed to Reopenedthis are caused by Gentoo applying the patch from? HTTPS ://savannah.gnu.org/bugs/?23922 (file #23363) in Make-3.82-r4, which adds filtering of special characters in $SHELL. The OpenWrt trunk has a fix for this in? https://dev.openwrt.org/changeset?reponame=&new=22720%40trunk%2Frules.mk& Amp;old=22443%40trunk%2frules.mk. While the seems to is done for a different purpose, it appears to the fix this build problem
Website: https://dev.openwrt.org/changeset?reponame=&new=22720%40trunk%2Frules.mk&old=22443%40trunk% Solutions in the 2FRULES.MK
Trunk/rules.mk r22443r22720 1616 1717tmp_dir:=$ (TOPDIR)/tmp 18
Another problem compilation does not execute successfully lclean prompt does not install ncurses
Reference: http://www.2cto.com/os/201204/126215.html
Four. Make v=99 (Start compiling)
The rest is waiting.
Ubuntu compilation OpenWrt