简体   繁体   English

openwrt项目的部分编译

[英]Partial compilation of openwrt project

I would like to get an idea or reference to compile only subset on the openwrt project. 我想得到一个想法或参考只在openwrt项目上编译子集。 i am aware of the menuconfig utility but this is not enough for my goal. 我知道menuconfig实用程序,但这还不足以实现我的目标。

i would like to compile only the tool-chain (binutils + gcc + glibc) for a specific target (ar71xx) and also the kernel. 我想只为特定目标(ar71xx)和内核编译工具链(binutils + gcc + glibc)。

now, after looking in the makefiles etc, i have noticed that most of the work in actually patching the toolchain and the kernel and then compile it. 现在,在查看makefile等之后,我注意到大部分工作都在实际修补工具链和内核然后编译它。 is there any option to stop build process after the patching so i can have only the source code patched and i can write my own make file to compile it? 是否有任何选项在修补后停止构建过程,所以我只能修补源代码,我可以编写自己的make文件来编译它?

独立准备(补丁)工具链:

make toolchain/{clean,prepare} V=99

To extract the kernel source and patch it: 要提取内核源代码并对其进行修补:

make target/linux/{clean,prepare} V=99

The patched kernel source will be in build_dir/linux-$(target)/linux-$(version) 修补的内核源代码将在build_dir / linux中 - $(target)/ linux - $(version)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM