Yocto:有没有办法删除 local.conf 中 SRC_URI 的项目?

Yocto: Is there a way to remove items of SRC_URI in local.conf?

我们使用的是自定义内核,因此我覆盖了 linux-imx_xxx.bb:

中定义的变量
KERNEL_SRC_pn-linux-imx = "our_url"
SRCBRANCH_pn-linux-imx = "our_branch"
SRCREV_pn-linux-imx = "${AUTOREV}"

有效。但是在 linux-imx_xxx.bb 和自定义内核中添加的许多补丁文件都已打补丁。

所以我只想删除 local.conf 中的补丁文件,而不是触摸官方 meta-fsl-* 层中定义的任何 .bb 文件。

SRC_URI_remove_pn-linux-imx = " file://*.patch"

但这行不通。那么在 local.conf 中有没有办法做到这一点?

顺便说一句,我知道 .bbappend 应该可以工作,但同样,我不想更改任何 meta-fsl-* 层。

您不能使用通配符,因为 _remove 是字面字符串删除。拼出要删除的文件,就可以了。

但是,如果您使用的是自定义内核,那么只需为其编写一个新的配方,没有必要使用 linux-imx 并从 local.conf 编辑它。