From 14a68356f39c00bbb5278ec9e88d278c7e997d0c Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Wed, 31 Oct 2018 19:12:03 +0100 Subject: [PATCH] linux-4.18.y: Avoid compilation error This error only appears when the build host does not have the openssl development libraries (libssl-dev) installed. If they are, the build process will use them. The error is: | /home/builder/jenkins/workspace/dey-rocko-use-mainline-bsp/projects/ccimx6ulsbc/tmp/work-shared/ccimx6ulsbc/kernel-source/scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory | compilation terminated. | scripts/Makefile.host:90: recipe for target 'scripts/extract-cert' failed | make[3]: *** [scripts/extract-cert] Error 1 | make[3]: *** Waiting for unfinished jobs.... This commit makes openssl-native a dependency and passes the include path to the build. Signed-off-by: Alex Gonzalez --- meta-digi-arm/recipes-kernel/linux/linux-4.18.y.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-digi-arm/recipes-kernel/linux/linux-4.18.y.bb b/meta-digi-arm/recipes-kernel/linux/linux-4.18.y.bb index ade04b657..83490c1b3 100644 --- a/meta-digi-arm/recipes-kernel/linux/linux-4.18.y.bb +++ b/meta-digi-arm/recipes-kernel/linux/linux-4.18.y.bb @@ -5,4 +5,7 @@ require recipes-kernel/linux/linux-dey.inc SRCBRANCH = "v4.18.y" SRCREV = "${AUTOREV}" +DEPENDS += "openssl-native" +HOST_EXTRACFLAGS += "-I${STAGING_INCDIR_NATIVE}" + COMPATIBLE_MACHINE = "(ccimx6ul)"