OpenWrt 编译分割

本文主要参考:http://macbruins.com/2011/05/08/downloading-sources-for-building-openwrt/

OpenWrt系统在buildroot下编译,OpenWrt编译系统主要可由核心(core)与扩展软件包(Feeds)组成。在编译前首先获取所有软件包包括内核的源与配置文件(这里的源是软件包的源码源src url,在编译时候根据这里的地址去下载)

首先buildroot下载核心及核心组件的源与配置文件(Makefile与patchs等),如内核与BusyBox等等。其次便是OpenWrt的扩展软件包(Feeds)源与配置文件(Makefile与patchs等)的获取与添加,以扩展OpenWrt的特征功能。其中包括从OpenWrt开发小组中下载LuCI与xWrt等源文件,最后便是其它软件包源与配置文件(Makefile与patchs等)的下载与编译。这些步骤概括如下:

It takes five steps to download a set of tested source files:(共有5步)

  1. Find revision numbers #找到相应的版本号==>svn co svn://svn.openwrt.org/openwrt/trunk –r xxxxx
  2. Find core repository path #找到对应版本内核树路径
  3. Download core files  #下载内核源及配置文件
  4. Update feed configuration file #更新扩展软件包配置文件(feeds.conf.default)
  5. Update feed files #更新扩展软件包文件(Makefile等)==>./script/feeds update –a ./script/fees install -a
原文地址:https://www.cnblogs.com/shizhai/p/3587595.html