-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux-custom_6.18.7.bb
More file actions
37 lines (26 loc) · 1.23 KB
/
linux-custom_6.18.7.bb
File metadata and controls
37 lines (26 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
SUMMARY = "dstack Linux kernel 6.18.7 built from tarball"
DESCRIPTION = "Custom dstack kernel based on upstream Linux 6.18.7 with tiny Kconfig baseline tuned for TDX guests"
SECTION = "kernel"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
PV = "6.18.7"
LINUX_VERSION = "${PV}"
inherit kernel
FILESEXTRAPATHS:prepend := "${THISDIR}/files/6.18:${THISDIR}/files:"
DEPENDS += "libyaml-native openssl-native util-linux-native elfutils-native"
SRC_URI = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${PV}.tar.xz;downloadfilename=linux-${PV}.tar.xz \
file://defconfig \
file://0001-x86-tdx-select-dma-direct-remap.patch \
file://0002-overlayfs-enable-idmapped-mounts.patch \
"
SRC_URI[sha256sum] = "b726a4d15cf9ae06219b56d87820776e34d89fbc137e55fb54a9b9c3015b8f1e"
S = "${UNPACKDIR}/linux-${PV}"
LINUX_VERSION_EXTENSION = "-dstack"
KERNEL_VERSION_EXTENSION = "-dstack"
# Enable BTF debug info for bpftool and out-of-tree modules (ZFS, WireGuard, etc.)
KERNEL_DEBUG = "True"
# Keep packaging aligned with our tiny x86_64 guest machines.
COMPATIBLE_MACHINE = "(tdx|sev-snp|qemux86-64)"
do_deploy:append() {
install -m 0644 ${B}/.config ${DEPLOYDIR}/kernel-config
}