【问题标题】:Yocto project, try to add my device driver config into the Linux kernel configuration fileYocto项目,尝试将我的设备驱动配置添加到Linux内核配置文件中
【发布时间】:2018-08-24 04:45:32
【问题描述】:

我正在尝试使用 Yocto Project 将我自己的设备驱动程序添加到 Linux 内核。 我将CONFIG_MY_DRIVER=y之类的配置添加到BSP层文件夹meta-bsp/recipes-kernel/linux/linux-my/中的defconfig文件中,并通过添加SRC_URI += "file://defconfig"修改了bb文件。

在BitBake之后,我发现build目录下的.config文件没有CONFIG_MY_DRIVER=y,但是.config.old文件有。 .config 文件似乎已被某些后台任务覆盖。我不熟悉,谁能帮我弄清楚?

【问题讨论】:

  • 如果你使用Yocto内核,应该加上manual上解释的fragment system

标签: linux-device-driver yocto


【解决方案1】:

同时你必须将CONFIG_MY_DRIVER=y复制到receipe-kernel/linux/linux-my/defconfigdefconfig应该在将选项添加到yocto层后反映,然后提取到内核.bblayer

SRC_URI = "git address file://defconfig" 

然后启动bitbake 服务器。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-28
    • 1970-01-01
    • 2018-10-06
    • 1970-01-01
    • 2011-04-04
    • 1970-01-01
    相关资源
    最近更新 更多