最新版OpenWrt编译教程,解决依赖问题

前端之家收集整理的这篇文章主要介绍了最新版OpenWrt编译教程,解决依赖问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. Install git,to conveniently download the OpenWrt source code,and build toolsto do the cross-compilation process:
    <span class="kw2" style="color:#000000;font-weight:bold">sudo</span> <span class="kw2" style="color:#000000;font-weight:bold">apt-get update</span>
    <span class="kw2" style="color:#000000;font-weight:bold">sudo</span> <span class="kw2" style="color:#000000;font-weight:bold">apt-get install</span> git-core build-essential libssl-dev libncurses5-dev <span class="kw2" style="color:#000000;font-weight:bold">unzip</span>
    Some Feeds might not available over git but only via subversion(short: svn) or mercurial. If you want to obtain their source-code,you need to install svn and mercurial as well:
    <span class="kw2" style="color:#000000;font-weight:bold">sudo</span> <span class="kw2" style="color:#000000;font-weight:bold">apt-get install</span> subversion mercurial
  2. Download the OpenWrt bleeding edge(trunk Version) with git( seeDownloading Sourcesfor more options!):
    <span class="kw2" style="color:#000000;font-weight:bold">git clone</span> git:<span class="sy0" style="color:#66cc66;">//</span>git.openwrt.org<span class="sy0" style="color:#66cc66;">/</span>openwrt.git

    this creates a directory 'openwrt',which is the OpenWrt Buildroot build-directory
    the OpenWrt toolchain "OpenWrt Buildroot" is included

  • ( optional) Download and install all available "Feeds" ( seeOpenWrt Feedsfor more options!):
    <span class="kw3" style="color:#0066;">cd</span> openwrt
    .<span class="sy0" style="color:#66cc66;">/</span>scripts<span class="sy0" style="color:#66cc66;">/</span>Feeds update <span class="re5" style="color:#66033;">-a</span>
    .<span class="sy0" style="color:#66cc66;">/</span>scripts<span class="sy0" style="color:#66cc66;">/</span>Feeds <span class="kw2" style="color:#000000;font-weight:bold">install</span> <span class="re5" style="color:#66033;">-a</span>
  • Make OpenWrt Buildroot check for missing packages on your build-system using one of the following commands:
    <span class="kw2" style="color:#000000;font-weight:bold">make</span> defconfig
    <span class="kw2" style="color:#000000;font-weight:bold">make</span> prereq
    <span class="kw2" style="color:#000000;font-weight:bold">make</span> menuconfig

    There you will need to select what you want to compile.

  • Proceed with build(i.e. cross-compile the downloaded sources to binaries)

    After the cross-compilation process the ''trunk''-directory contained 244,451 files with a total size of 3.2GiB!


  • 其他版本地址:http://git.openwrt.org/

    dl目录下载:http://downloads.openwrt.org.cn/sources/

    原文链接:https://www.f2er.com/javaschema/284230.html

    猜你在找的设计模式相关文章