unos-repository

APK repository for unos
git clone git://git.finwo.net/misc/unos-repository
Log | Files | Refs | README

template (2276B)


      1 # Template file for 'linux-stable'
      2 #
      3 # One template, four outputs (driver subpackages):
      4 #   linux-stable            meta, depends linux=<version>
      5 #   linux-stable-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-stable
     11 version=7.2.5
     12 revision=0
     13 short_desc="UNOS kernel meta - stable 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/v7.x/linux-7.2.5.tar.xz"
     18 checksum=55ddf0df8325d9dad96fcff7bd93977d22e3f50af06527572af59b77c7632b78
     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-stable-headers linux linux-headers"
     24 
     25 short_desc_linux_stable_headers="UNOS kernel headers meta - stable line"
     26 depends_linux_stable_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: same recipe as linux-longterm (defconfig + deltas, mk/kernel.inc).
     33 # Deltas re-verified per line - symbols move between releases, the asserts
     34 # fail loud if this list rots.
     35 
     36 # shellcheck disable=SC1091
     37 . "${UNOS_MKDIR}/kernel.inc"
     38 
     39 KDELTA_ENABLE="IKCONFIG IKCONFIG_PROC NET_L3_MASTER_DEV IPV6_MULTIPLE_TABLES BLK_DEV_NVME MMC MMC_BLOCK BRIDGE VLAN_8021Q"
     40 KDELTA_MODULE="NET_VRF"
     41 KDELTA_DISABLE=""
     42 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"
     43 KASSERT_M="NET_VRF"
     44 KASSERT_N="MODULE_SIG"
     45 
     46 do_configure() { kernel_configure; }
     47 do_build() { kernel_build; }
     48 do_install() { kernel_install; }
     49 
     50 sub_linux_stable_headers() { :; }
     51 sub_linux() {
     52   spick boot
     53   spick lib/modules
     54 }
     55 sub_linux_headers() {
     56   spick usr/include
     57 }