linux make java版本_在编译linux内核时何时“make”提示用户选择Kconfig选项?

在升级内核版本并修改配置时,遇到RETPOLINE的Kconfig选项。为避免`make`时出现用户交互提示,需要在.config文件中设置`CONFIG_RETPOLINE`。通过在配置文件中添加`CONFIG_RETPOLINE`并设为`n`,可以防止编译时出现选择提示。问题在于如何理解Kconfig语法以避免这些提示。
摘要由CSDN通过智能技术生成

升级我的内核版本时我正在更新配置 . 我希望对配置文件进行最小的更改,以便代码审阅者不会花费太多时间 .

RETPOLINE有一个Kconfig条目如下:

config RETPOLINE

bool "Avoid speculative indirect branches in kernel"

default y

---help---

Compile kernel with the retpoline compiler options to guard against

kernel-to-user data leaks by avoiding speculative indirect

branches. Requires a compiler with -mindirect-branch=thunk-extern

support for full protection. The kernel may run slower.

Without compiler support, at least indirect branches in assembler

code are eliminated. Since this includes the syscall entry path,

it is not entirely pointless.

我注意到我必须在配置文件中添加以下内容以避免在运行“make”时出现用户提示:

diff --git a/config b/config

index 96de254..15a0978 100644

--- a/config

+++ b/config

@@ -370,6 +370,7 @@ CONFIG_X86_X2APIC=y

CONFIG_X86_MPPARSE=y

# CONFIG_GOLDFISH is not set

# CONFIG_INTEL_RDT is not set

+# CONFIG_RETPOLINE is not set

# CONFIG_X86_EXTENDED_PLATFORM is not set

# CONFIG_X86_INTEL_LPSS is not set

# CONFIG_X86_AMD_PLATFORM_DEVICE is not set

用户提示(我试图避免)是:

$ vi .config

No mapping found

Press ENTER or type command to continue

[ali@simonLocalRHEL7 kernel-4.9]$ make

scripts/kconfig/conf --silentoldconfig Kconfig

*

* Restart config...

*

*

* IO Schedulers

*

Deadline I/O scheduler (IOSCHED_DEADLINE) [Y/n/?] y

CFQ I/O scheduler (IOSCHED_CFQ) [Y/n/?] y

Default I/O scheduler

> 1. Deadline (DEFAULT_DEADLINE)

2. CFQ (DEFAULT_CFQ)

3. No-op (DEFAULT_NOOP)

choice[1-3?]: 1

Kyber I/O scheduler (MQ_IOSCHED_KYBER) [N/y/?] n

Default single-queue blk-mq I/O scheduler

> 1. None (DEFAULT_SQ_NONE) (NEW)

choice[1]: 1

Default multi-queue blk-mq I/O scheduler

> 1. None (DEFAULT_MQ_NONE) (NEW)

choice[1]: 1

*

* Processor type and features

*

DMA memory allocation support (ZONE_DMA) [Y/n/?] y

Symmetric multi-processing support (SMP) [Y/n/?] y

Support x2apic (X86_X2APIC) [Y/n/?] y

Enable MPS table (X86_MPPARSE) [Y/n/?] y

Intel Resource Director Technology support (INTEL_RDT) [N/y/?] n

Avoid speculative indirect branches in kernel (RETPOLINE) [Y/n/?] (NEW)

我的问题是在键入“make”时避免用户提示的原则是什么? (抱歉,我没有弄清楚Kconfig语法 . )

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值