aboutsummaryrefslogtreecommitdiffstats
path: root/common/classes
diff options
context:
space:
mode:
authorAwais Belal <awais_belal@mentor.com>2017-12-06 16:34:42 +0500
committerAwais Belal <awais_belal@mentor.com>2017-12-06 16:34:51 +0500
commit1dd4b914ea79fe58afd08e26219aef319991f11b (patch)
tree8f447daaebbcc7f42867d381d10c657dbc219915 /common/classes
parent4991317dd7635e3ea3609bb7e52d041bbe9cec91 (diff)
downloadmeta-amd-1dd4b914ea79fe58afd08e26219aef319991f11b.tar.gz
meta-amd-1dd4b914ea79fe58afd08e26219aef319991f11b.tar.bz2
meta-amd-1dd4b914ea79fe58afd08e26219aef319991f11b.zip
snowyowl: fix build with an openssl enabled kernel
This fixes the build for all the components that fail when an openssl enabled kernel is used for the target where configurations such as CONFIG_MODULE_SIG are used. The fix should probably be submitted upstream. Signed-off-by: Awais Belal <awais_belal@mentor.com>
Diffstat (limited to 'common/classes')
-rw-r--r--common/classes/kernel-openssl.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/classes/kernel-openssl.bbclass b/common/classes/kernel-openssl.bbclass
new file mode 100644
index 00000000..1837b50e
--- /dev/null
+++ b/common/classes/kernel-openssl.bbclass
@@ -0,0 +1,11 @@
+# Hackish because this should be handled in the actual module
+# classes (module module-base), a kernel with configurations
+# such as CONFIG_MODULE_SIG requires openssl native bits
+# to build properly.
+DEPENDS += "openssl-native"
+do_make_scripts() {
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ make HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}" \
+ CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
+ -C ${STAGING_KERNEL_DIR} O=${STAGING_KERNEL_BUILDDIR} scripts
+}