| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| zh:docs:guide-developer:using_the_sdk [2019/03/28 03:19] – [选择软件包] penghanye | zh:docs:guide-developer:using_the_sdk [2019/03/28 03:34] – [Compile Packages] penghanye |
|---|
| 保存配置并退出菜单. | 保存配置并退出菜单. |
| |
| ==== Compile Packages ==== | ==== 编译软件包 ==== |
| After the Makefile is in place, the usual buildroot commands apply: | 建好Makefile之后, 就可以使用常规的buildroot命令: |
| |
| * ''make package///example///download'' - download the soures of //example// | * ''make package///example///download'' - 下载 //example// 的源码 |
| * ''make package///example///prepare'' - extract the sources, apply patches and download if necessary | * ''make package///example///prepare'' - 提取源码, 如果需要的话再下载补丁源码并使用 |
| * ''make package///example///compile'' - compile //example//, prepare and download if necessary | * ''make package///example///compile'' - 编译 //example//, 如果需要的话,先进行download和prepare |
| * ''make package///example///clean'' - clean the sourcecode | * ''make package///example///clean'' - 清除源码 |
| * ''make package/index'' - build a repository index to make the output directory usable as local //opkg// source | * ''make package/index'' - 构建仓库索引, 将输出目录变成一个本地的//opkg//源 |
| |
| Or just ''make'' to build everything selected. (You can compile faster by writing ''make -j5'' or similar as appopriate for your build host) | 或者直接运行 ''make'' 来构建所有被选中的东西. (可以用''make -j5'' 来加快构建, 或选择合适你的宿主机的参数) |
| |
| After the compilation is finished, the generated .ipk files are placed in the bin/packages and bin/targets directories inside the directory you extracted the SDK into. | 编译完成后, 生成的.ipk会被移动到SDK的解压目录的 bin/packages 和 bin/targets 目录中. |
| |
| ===== Troubleshooting ===== | ===== 故障 ===== |
| :!: Some SDK versions have bugs.... | :!: 某些版本的SDK会有bugs.... |