]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Select advanced Intel code only if allowed
authorSimon Glass <sjg@chromium.org>
Tue, 23 Feb 2021 10:35:42 +0000 (05:35 -0500)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 9 Mar 2021 01:42:12 +0000 (09:42 +0800)
commit736ecc643de4b329e2edcb3207edd58bf7ed0d9d
tree4f3eaab82d8ecfd0627e68cd316cf01bac0b9791
parent049c4dc677aa679593e1b2e9f0aa2452843dad5e
x86: Select advanced Intel code only if allowed

At present most of the Intel-specific code is built on all devices, even
those which don't have software support for the features provided there.

This means that any board can enable CONFIG_INTEL_ACPIGEN even if it does
not have the required features.

Add a new INTEL_SOC option to control this access. This must be selected
by SoCs that can support the required features.

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fixed a typo in arch/x86/Kconfig]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Kconfig
arch/x86/cpu/apollolake/Kconfig