# Maintainer: Clayton Craft pkgname=linux-valve-jupiter pkgver=6.9_rc5 pkgrel=0 pkgdesc="Valve Steam Deck kernel fork" arch="x86_64" _flavor="valve-jupiter" _carch="x86" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community pmb:kconfigcheck-uefi " makedepends=" bash bison elfutils-dev findutils flex linux-headers openssl-dev perl postmarketos-installkernel " # Source _config="config-$_flavor.$arch" case $pkgver in *.*.*) _kernver=${pkgver%.0};; *.*) _kernver=$pkgver;; esac source=" https://git.kernel.org/torvalds/t/linux-${_kernver//_/-}.tar.gz $_config 0001-ACPICA-Limit-error-message-flood-caused-by-firmware-.patch 0002-drivers-video-backlight-Disable-backlight-notificati.patch 0003-iio-light-ltrf216a-Return-floating-point-values.patch 0004-mfd-Add-MFD-core-driver-for-Steam-Deck.patch 0005-hwmon-Add-driver-for-Steam-Deck-s-EC-sensors.patch 0006-leds-steamdeck-Add-support-for-Steam-Deck-LED.patch 0007-extcon-Add-driver-for-Steam-Deck.patch 0008-hwmon-steamdeck-hwmon-Add-support-for-max-battery-le.patch 0009-mfd-steamdeck-Expose-controller-board-power-in-sysfs.patch 0010-x86-implement-tsc-directsync-for-systems-without-IA3.patch 0011-x86-touch-clocksource-watchdog-after-syncing-TSCs.patch 0012-x86-save-restore-TSC-counter-value-during-sleep-wake.patch 0013-x86-only-restore-TSC-if-we-have-IA32_TSC_ADJUST-or-d.patch 0014-x86-don-t-check-for-random-warps-if-using-direct-syn.patch 0015-x86-revert-extra-time-added-to-check-for-tsc-wraps.patch 0016-usb-dwc3-Hardcode-jupiter-ACPI-device-as-extcon-name.patch 0017-usb-dwc3-Bump-USB-gadget-wakeup-timeout.patch 0018-usb-dwc3-Drop-usb-role-swtich-from-dwc3_pci_mr_prope.patch 0019-usb-dwc3-Fix-linux-extcon-name.patch 0020-pinctrl-amd-Add-quirk-to-timeout-irq-pin-reconfigura.patch 0021-mmc-core-add-safe_trim_quirk-attribute.patch " builddir="$srcdir/linux-${_kernver//_/-}" prepare() { default_prepare cp "$srcdir/$_config" .config } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" } package() { mkdir -p "$pkgdir"/boot make install modules_install \ ARCH="$_carch" \ INSTALL_PATH="$pkgdir"/boot \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_MOD_STRIP=1 rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source install -D "$builddir"/include/config/kernel.release \ "$pkgdir"/usr/share/kernel/$_flavor/kernel.release } sha512sums=" 7ef325e30f344b8f5839e257f82caa6b1fcf3dd3180960ef01db1770c6f9df19c8aff3b47b0622139de45b03979f1500917ee0afa29cfc2e28c89e24d94f07cc linux-6.9-rc5.tar.gz cee50091682acbaf1461672ab221a6f629ab03dde7c3fbba448349e1b396e507d776e3a2047998b2fc1775cb81f10545f0053ebb4d9da84b83aa4554aeebdc96 config-valve-jupiter.x86_64 f50531f10fa404e4b84a9f49f9d3511b492390dbdd56cf27bdd49cdaeba30db58ee59beaa8abbb06fff82cc88e06c04feb7c3b246680d2ca99665722a9de2a48 0001-ACPICA-Limit-error-message-flood-caused-by-firmware-.patch 9af8f15a680675f18e8398f8c6b2231577046d298e4b12d7af8215681322eb15cd5b344ff0a34ae49a546ebe138f252f2802734e5e4f238049acc222991c730f 0002-drivers-video-backlight-Disable-backlight-notificati.patch 83385fd39709d86d6034ff1c2561ede9f233893530a2de48a0a5bca335f4f14f6a9d6d5234415b15408ab1e4485572f370108f668ca7167b246a6223b0cc9fe0 0003-iio-light-ltrf216a-Return-floating-point-values.patch d04f85b5bf36efa3543758a43c8b967acd93eda24999ea48e594f17e7f33cfa6ef5d7973ac61f289da1747764c7dde9a6bce68456f40980eccb808af5b30701a 0004-mfd-Add-MFD-core-driver-for-Steam-Deck.patch 4b88ec17d61b0fe861cc4c051ab0291377dc5184db3e5fbbf36896c03f3318fec985a9bc81832910802adf79038aba90e3198cfbdedefeeebb1b0e03fc88fb96 0005-hwmon-Add-driver-for-Steam-Deck-s-EC-sensors.patch 8a37efd5813971dc7efe8cda2019a5b65da1da73644353a6417d353867fb5fc8a5b7fdc7e139a687f8af855875935c3fc3980485e855e83e7173358cd1661427 0006-leds-steamdeck-Add-support-for-Steam-Deck-LED.patch 3f3a84d4984c7c0cc14af1575333be8c647f158d4bab6d24c0c07d2464e9f838c33ecf041c641f176b8b6570c2164aff488cac6563b9d07509e2f098e458e860 0007-extcon-Add-driver-for-Steam-Deck.patch b1742180217684de9db882ac8dba857496f5def537cc2860b01c361eec928057d1173052af76bf0fde6d562e4cbb701c5c7f538166694f319b67248dd1051346 0008-hwmon-steamdeck-hwmon-Add-support-for-max-battery-le.patch c1e054eb7f8616762ae54e41da6a7442546e0ef443012e107dce2e494468932dd8ae1251510e2fa86574cfdd0e8eb243ad8f5f2420acd887857ffe9fd5bec6fb 0009-mfd-steamdeck-Expose-controller-board-power-in-sysfs.patch 137fe1855d929b4e98733e86888c7fee38b88afa0a1984971eb6aab2c3e5dd001fc8085719698d987362ef2c621bf3265e8a58a82ceae24f3d72562382a00bd1 0010-x86-implement-tsc-directsync-for-systems-without-IA3.patch 67d951351381c3018ee5c0003a0cdbcf6c8396a8d56cfff94fa560bb2b453fe3b9899089dde12c839b70c01694b9f8a62a8e50bbbdd8d1fc7e0368a1f09a1155 0011-x86-touch-clocksource-watchdog-after-syncing-TSCs.patch 1d51149a1c9082719ed58388748bc145e23a3094f0d4ff71f5bc49f0759ff0f05df1a8c2970aa9a464c93b49bbdd5a837c050104d0ad799ec396a5bc1fa0df04 0012-x86-save-restore-TSC-counter-value-during-sleep-wake.patch d672450f673f283205984c7a0a41584c377e925bc6b54b59a5951bc1c016261e2b627146227fd4a40b241db6227751bcb37db7e5eca473c863c078c812f9068d 0013-x86-only-restore-TSC-if-we-have-IA32_TSC_ADJUST-or-d.patch c99045cd08a5d721d9ed6ecb87e677ac031172adb8dda9363e00d00bcd8a25f2736436003988833025a7d945cf344b00c01707aa893472fdfae72346c07158e1 0014-x86-don-t-check-for-random-warps-if-using-direct-syn.patch c1c6f759cfcdaa87c84267be048e9917af370c08d61ba76bee92d726ab2e8b85ecca560b3e05c01fc608c6cc934186a175d10fa25a6e38737774cf4d0192f0f0 0015-x86-revert-extra-time-added-to-check-for-tsc-wraps.patch 80dec76f40e38f8b5870a0d4be13f38e98933b12770aee217009520f6188f9f70a90cb359cd32017afecf00635263b92c1a9e600a197ef97f58007499411a97c 0016-usb-dwc3-Hardcode-jupiter-ACPI-device-as-extcon-name.patch fcd0491c0aa6ececcbd156d43e25cdcdf0d781a7dee6baa6ccc8db936058dfefb753e3fd21854ceb9203527a0952d3f483358d29250270453404c0033e34751e 0017-usb-dwc3-Bump-USB-gadget-wakeup-timeout.patch c089a0228a2b7d11b488e59b1c924d73953caff0fa7b775a743abfe3482c0c8cd87cb7142b53c929067afad22193932c2d71e2f2e81687a2ed8cc3e56cc8e427 0018-usb-dwc3-Drop-usb-role-swtich-from-dwc3_pci_mr_prope.patch 5fb7f211cb9911b13a6bd22eb13a632447e7ffa8aa8b7ce2482eb9ec3b9a67ae990332e61f98973f79224ec646e4e232e0e91f1fc5ae44d21389964c63ade90c 0019-usb-dwc3-Fix-linux-extcon-name.patch 7af8ea791853ca431c0f050bd66b8eb3f416d0866a8f8dfb3ca32c6eba3b2e19be079c9d1b816df9105ae14a7cc70fb3baf1472cafd4eab3b83dc1cb673ccce2 0020-pinctrl-amd-Add-quirk-to-timeout-irq-pin-reconfigura.patch b88ea33b592fc1f39d99fdd0e31b780a0a91c50fb3463f167d24cdbe4e29b18957b8e709ffde449d790157fe2588a817f904b19d6192758cfa94cfa825103ebf 0021-mmc-core-add-safe_trim_quirk-attribute.patch "