【问题标题】:Partial compilation of openwrt projectopenwrt项目的部分编译
【发布时间】:2011-01-02 09:43:00
【问题描述】:

我想获得一个想法或参考,以仅编译 openwrt 项目的子集。 我知道 menuconfig 实用程序,但这对我的目标来说还不够。

我只想为特定目标 (ar71xx) 和内核编译工具链 (binutils + gcc + glibc)。

现在,在查看了 makefile 等之后,我注意到大部分工作实际上是修补工具链和内核,然后编译它。是否有任何选项可以在修补后停止构建过程,这样我就可以只修补源代码,我可以编写自己的 make 文件来编译它?

【问题讨论】:

    标签: build-process makefile openwrt


    【解决方案1】:

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

    make toolchain/{clean,prepare} V=99
    

    【讨论】:

      【解决方案2】:

      提取内核源代码并打补丁:

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

      修补后的内核源代码将位于 build_dir/linux-$(target)/linux-$(version)

      【讨论】:

        猜你喜欢
        • 2015-01-04
        • 1970-01-01
        • 2022-06-13
        • 2019-09-16
        • 2013-12-09
        • 2016-10-24
        • 2012-07-24
        • 1970-01-01
        • 2021-12-28
        相关资源
        最近更新 更多