aboutsummaryrefslogtreecommitdiff
path: root/linux/Config.in
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-03-04 22:31:15 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-03-06 15:25:08 +0100
commit93a7edf4bc9bfcf821f608815870d06198eb2adf (patch)
treeaf48d04d7e51ce25ecf47fd8d411458a17b88d20 /linux/Config.in
parentdde090c299b0357fdb1a4ec44ad8d332ac57f65e (diff)
downloadbuildroot-93a7edf4bc9bfcf821f608815870d06198eb2adf.tar.gz
buildroot-93a7edf4bc9bfcf821f608815870d06198eb2adf.tar.bz2
linux: add BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL
Some Linux kernel configuration options (such as CONFIG_SYSTEM_TRUSTED_KEYRING) require building a host program called extract-cert, which itself needs OpenSSL. Users having OpenSSL installed on their system won't see a problem, but users who don't have OpenSSL installed will get a build failure. This commit adds a new option that allows users to indicate that their Linux configuration requires building host-openssl. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'linux/Config.in')
-rw-r--r--linux/Config.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux/Config.in b/linux/Config.in
index bc6cd1b5f7..57bb11c2cd 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -407,6 +407,19 @@ config BR2_LINUX_KERNEL_INSTALL_TARGET
/boot if DTBs have been generated by the kernel build
process.
+config BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL
+ bool "Needs host OpenSSL"
+ help
+ Some Linux kernel configuration options (such as
+ CONFIG_SYSTEM_TRUSTED_KEYRING) require building a host
+ program called extract-cert, which itself needs
+ OpenSSL. Enabling this option will ensure host-openssl gets
+ built before the Linux kernel.
+
+ Enable this option if you get a Linux kernel build failure
+ such as "scripts/extract-cert.c:21:25: fatal error:
+ openssl/bio.h: No such file or directory".
+
# Linux extensions
source "linux/Config.ext.in"