zoukankan      html  css  js  c++  java
  • kernel/uboot关于defconfig

    kernel/uboot关于defconfig的几个问题?

    一,defconfig与.config是什么关系?

    .config不是defconfig的拷贝,defconfig仅仅保存与默认配置不同的选项。配置阶段综合KCONFIG文件与defconfig,有冲突时以defconfig为准。

    二,defconfig中的#CONFIG_XXX is not set有具体含义吗?

    defconfig中的语法:

    CONFIG_<optionName>=y
    CONFIG_<optionName>=m
    CONFIG_<optionName>=n --- 表示 CONFIG_<optionName>为no,但是这种用法很少,一般都使用 is not set
    # CONFIG_<optionName> is not set --- 表示 CONFIG_<optionName>为no

    三,保存defconfig的方法?

    make savedefconfig

    四,其它命令?

    see changes from one .config to another one:
    $ scripts/diffconfig .config_old .config_new

    五,include/generated/autoconf.h

    配置完成后(无论是defconfig还是menuconfig),会生成autoconf.h,供C文件包含,以判断某个CONFIG是否支持。

    .config是为Makefile服务的。

    1. 要修改在arch/arm/configs下的文件xxx_defconfig
    2. make xxx_defconfig 会生成.config文件。
    3. make menuconfig 修改配置后保存
    4. make savedefconfig 生成defconfgi文件
    5. cp defconfig arch/arm/configs/xxx_defconfig 保存
    这样保存的defconfig文件,配置最小化

    https://www.cnblogs.com/llc-blog/p/10164024.html

  • 相关阅读:
    (六)软件测试分工
    <C++>FILE和fstream
    <C#>序列化
    <C#>多线程
    <C++>面试
    <C#>面试
    <Linux>Linux系统命令
    <Linux>Linux基础知识
    <CAN>汽车诊断基础知识
    <C++>查询
  • 原文地址:https://www.cnblogs.com/idyllcheung/p/13521774.html
Copyright © 2011-2022 走看看