template (2815B)
1 # Template file for 'linux-longterm' 2 # 3 # One template, four outputs (driver subpackages): 4 # linux-longterm meta, depends linux=<version> 5 # linux-longterm-headers meta, depends linux-headers=<version> 6 # linux image + modules + maps (post-install: depmod) 7 # linux-headers sanitized headers_install (user API only - 8 # NOT a module-build tree; openbcm needs a 9 # follow-up, see mk/kernel.inc) 10 pkgname=linux-longterm 11 version=6.18.51 12 revision=0 13 short_desc="UNOS kernel meta - longterm line" 14 maintainer="finwo <finwo@pm.me>" 15 license="GPL-2.0-only" 16 homepage="https://www.kernel.org" 17 distfiles="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.18.51.tar.xz" 18 checksum=ba2f60f858bf4d1f929101faa356c93dc8b925b17aaa9f95eabd4627758df613 19 # the meta points at this line's kernel build (exact pin incl. revision - 20 # apk's `=` only matches the full pkgver, so a bare version never matches) 21 depends="linux=${version}-r${revision}" 22 hostmakedepends="bc flex bison" 23 subpackages="linux-longterm-headers linux linux-headers" 24 25 short_desc_linux_longterm_headers="UNOS kernel headers meta - longterm line" 26 depends_linux_longterm_headers="linux-headers=${version}-r${revision}" 27 short_desc_linux="Linux kernel image and modules" 28 depends_linux="busybox" 29 short_desc_linux_headers="Linux kernel sanitized headers" 30 depends_linux_headers= 31 32 # Notes: 33 # - defconfig + deltas (see mk/kernel.inc for the shared mechanics). 34 # Verified against 6.18 defconfig: everything load-bearing except VRF 35 # (absent) and IKCONFIG (off) already defaults right; NEXTHOP is not a 36 # symbol at all (nexthop objects are unconditional core). MODULE_SIG 37 # already defaults off (no ephemeral signing keys). VRF's full dep 38 # chain (IP_MULTIPLE_TABLES + NET_L3_MASTER_DEV + IPV6_MULTIPLE_TABLES) 39 # is enabled explicitly - olddefconfig silently drops symbols whose 40 # deps are unmet, which is exactly what the asserts guard against. 41 # - linux needs busybox first: its post-install runs under /bin/sh 42 # (same ordering rule as the library packages). 43 44 # shellcheck disable=SC1091 45 . "${UNOS_MKDIR}/kernel.inc" 46 47 KDELTA_ENABLE="IKCONFIG IKCONFIG_PROC NET_L3_MASTER_DEV IPV6_MULTIPLE_TABLES BLK_DEV_NVME MMC MMC_BLOCK BRIDGE VLAN_8021Q" 48 KDELTA_MODULE="NET_VRF" 49 KDELTA_DISABLE="" 50 KASSERT_Y="IPV6 IP_MULTIPLE_TABLES IPV6_MULTIPLE_TABLES NET_L3_MASTER_DEV DEVTMPFS_MOUNT BLK_DEV_INITRD SERIAL_8250_CONSOLE MODULES IKCONFIG IKCONFIG_PROC EFI_STUB BLK_DEV_NVME MMC MMC_BLOCK NVME_CORE BRIDGE VLAN_8021Q" 51 KASSERT_M="NET_VRF" 52 KASSERT_N="MODULE_SIG" 53 54 do_configure() { kernel_configure; } 55 do_build() { kernel_build; } 56 do_install() { kernel_install; } 57 58 sub_linux_longterm_headers() { :; } 59 sub_linux() { 60 spick boot 61 spick lib/modules 62 } 63 sub_linux_headers() { 64 spick usr/include 65 }