gpt4 book ai didi

linux - 使用 CONFIG_DEBUG_LOCK_ALLOC 构建内核时 ZFS 中的许可问题

转载 作者:行者123 更新时间:2023-12-04 18:59:02 24 4
gpt4 key购买 nike

当我使用 CONFIG_DEBUG_LOCK_ALLOC 构建主线 Ubuntu 内核 (hirsute) 时,构建过程失败并给出以下错误消息configure: error: Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible with the CDDL license and will prevent the module linking stage from succeeding. You must rebuild your kernel without this option enabled.原来 ZFS 使用导致问题的 CDDL 许可证构建。我不需要 ZFS 支持,那么有没有一种方法可以在没有 ZFS 的情况下构建我的内核?或者,DKMS 从 Internet 获取 ZFS deb 文件,所以我可以在本地构建 ZFS(我会将 META 文件中的许可证更改为 GPL)并让内核使用它而不是从 Internet 获取包。
我按照给定的步骤 here构建我的内核。

最佳答案

修复结果非常简单。在构建内核时,我可以通过翻转 do_zfs 来关闭 zfs 支持。在内核源代码中的 amd64.mk(每个拱门都有一个,因此请相应地选择)文件中标记为 false。

关于linux - 使用 CONFIG_DEBUG_LOCK_ALLOC 构建内核时 ZFS 中的许可问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69718463/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com