Skip to contentSkip to conversation

wireguard-module: Exlude from world builds

PATCH New Khem Raj 1 participant 2 messages Aug 20, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 wireguard-module: Exlude from world builds

Moving beyond kernel 5.6, this kmod is not needed and core has moved the reference kernel to 5.8 for reference machines

---
 .../wireguard/wireguard-module_1.0.20200712.bb               | 5 +++++
 1 file changed, 5 insertions(+)
meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200712.bb +5 -0
index bc94e29ea3..3a83e48eea 100644
@@ -33,3 +33,8 @@ module_do_install() {
     install -m 0644 ${MODULE_NAME}.ko \
     ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko
 }
+
+# WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required.
+# OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds
+# for reference machines e.g. qemu
+EXCLUDE_FROM_WORLD = "1"
Signature · 1 line
2.28.0
author
#1 lore raw

PATCH 2/2 kernel-selftest: Tests in 5.8 depend on libhugetlbfs.h

Fixes

| hmm-tests.c:24:10: fatal error: hugetlbfs.h: No such file or directory
|    24 | #include <hugetlbfs.h>
|       |          ^~~~~~~~~~~~~
---
 meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +1 -1
index 3687c267e1..2a41aec23c 100644
@@ -4,7 +4,7 @@ LICENSE = "GPLv2"
 
 LIC_FILES_CHKSUM = "file://../COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
 
-DEPENDS = "rsync-native llvm-native"
+DEPENDS = "rsync-native llvm-native libhugetlbfs"
 
 # for musl libc
 SRC_URI_append_libc-musl = "\
Signature · 1 line
2.28.0