template (2635B)
1 # Template file for 'linux-mainline' 2 # 3 # One template, four outputs (driver subpackages): 4 # linux-mainline meta, depends linux=<version> 5 # linux-mainline-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 # 11 # NOTE: mainline is a moving target by design (rc snapshots weekly). The 12 # pin below is TOFU: git.kernel.org publishes no sha256 for the torvalds 13 # snapshots (only .tar.sign PGP). Re-pin every bump, verify the tag out 14 # of band. 15 pkgname=linux-mainline 16 version=7.3_rc3 17 revision=0 18 short_desc="UNOS kernel meta - mainline snapshot" 19 maintainer="finwo <finwo@pm.me>" 20 license="GPL-2.0-only" 21 homepage="https://www.kernel.org" 22 distfiles="https://git.kernel.org/torvalds/t/linux-7.3-rc3.tar.gz" 23 checksum=49b24119d7b92da75bba0daf5da4f7735c8cb948757a282e849092dcc681d8dd 24 # the meta points at this line's kernel build (exact pin incl. revision - 25 # apk's `=` only matches the full pkgver, so a bare version never matches) 26 depends="linux=${version}-r${revision}" 27 hostmakedepends="bc flex bison" 28 subpackages="linux-mainline-headers linux linux-headers" 29 30 short_desc_linux_mainline_headers="UNOS kernel headers meta - mainline snapshot" 31 depends_linux_mainline_headers="linux-headers=${version}-r${revision}" 32 short_desc_linux="Linux kernel image and modules" 33 depends_linux="busybox" 34 short_desc_linux_headers="Linux kernel sanitized headers" 35 depends_linux_headers= 36 37 # Notes: same recipe as linux-longterm (defconfig + deltas, mk/kernel.inc). 38 # Deltas re-verified per line - symbols move between releases, the asserts 39 # fail loud if this list rots. KREL here is 7.3.0-rc3 (derived, not equal 40 # to the 7.3_rc3 apk version) - all install paths use KREL. 41 42 # shellcheck disable=SC1091 43 . "${UNOS_MKDIR}/kernel.inc" 44 45 KDELTA_ENABLE="IKCONFIG IKCONFIG_PROC NET_L3_MASTER_DEV IPV6_MULTIPLE_TABLES BLK_DEV_NVME MMC MMC_BLOCK BRIDGE VLAN_8021Q" 46 KDELTA_MODULE="NET_VRF" 47 KDELTA_DISABLE="" 48 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" 49 KASSERT_M="NET_VRF" 50 KASSERT_N="MODULE_SIG" 51 52 do_configure() { kernel_configure; } 53 do_build() { kernel_build; } 54 do_install() { kernel_install; } 55 56 sub_linux_mainline_headers() { :; } 57 sub_linux() { 58 spick boot 59 spick lib/modules 60 } 61 sub_linux_headers() { 62 spick usr/include 63 }