其中tools
和toolchain
是通用工具,用来编译firmware image
、编译器及C
库。其编译结果是三个新的目录:build_dir/host
,临时目录,用来build target
独立的工具;build_dir/toolchain-<arch>
,用来编译特定architecture
的toolchain
;staging_dir/toolchain-<arch>
,toolchain
编译结果的安装目录;对于toolchain
目录不需要做任何事情,除非you intend to add a new version of one of the components above
。
Package
Package
包目录,在openwrt firmware
中,所有模块均是.ipk
,这种软件包可用来add to iremware
中来提供新的特性或去除以节省空间。这些软件包也是在主干外维护的,并可通过packagefeed
系统来获取到。
./scripts/feedsupdate
Those packages can be used to extend thefunctionality of the build system and need to be symlinked into the main trunk.Once you do that, the packages will show up in the menu for configuration. Youwould do something like this:
Ifyou want to use special callbacks for sections and/or options, you need todefine the following shell functions before running \texttt{config\_load} (afterincluding \texttt{/etc/functions.sh}):