template (1268B)
1 # Template file for 'linux' 2 # 3 # One template, two outputs: 4 # linux image + modules + maps (post-install: depmod) 5 # linux-headers sanitized headers_install (user API only - NOT a 6 # module-build tree; openbcm needs a follow-up, see 7 # mk/kernel.inc) 8 # 9 # Exactly one layer of a composed channel provides this template, so the 10 # kernel line is a property of the channel you track, not of the package 11 # name. Everything except the pin lives in mk/kernel.inc. 12 pkgname=linux 13 version=6.18.51 14 revision=1 15 short_desc="Linux kernel image and modules" 16 maintainer="finwo <finwo@pm.me>" 17 license="GPL-2.0-only" 18 homepage="https://www.kernel.org" 19 distfiles="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.18.51.tar.xz" 20 checksum=ba2f60f858bf4d1f929101faa356c93dc8b925b17aaa9f95eabd4627758df613 21 # busybox first: post-install runs depmod under /bin/sh 22 depends="busybox" 23 hostmakedepends="bc flex bison rsync depmod" 24 subpackages="linux-headers" 25 26 short_desc_linux_headers="Linux kernel sanitized headers" 27 depends_linux_headers= 28 29 # shellcheck disable=SC1091 30 . "${UNOS_MKDIR}/kernel.inc" 31 32 do_configure() { kernel_configure; } 33 do_build() { kernel_build; } 34 do_install() { kernel_install; } 35 36 sub_linux_headers() { 37 spick usr/include 38 }