# Maintainer: Martijn Braam # This is seperate from linux-edge so we can control the release cycle better. # If this kernel is updated and fails to boot it's quite hard to recover the # rk3399 devices due to the boot order. This kernel also has a kconfig that has # more modules built-in that are required for successfully booting on these # devices. # It's important that CONFIG_ROCKCHIP_CDN_DP is _disabled_ because it causes # boot failure pkgname=linux-postmarketos-rockchip pkgver=5.13.5 pkgrel=1 pkgdesc="Mainline kernel for rockchip devices" arch="aarch64" _carch="arm64" _flavor="${pkgname#linux-}" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox pmb:kconfigcheck-nftables pmb:kconfigcheck-containers pmb:kconfigcheck-zram " makedepends=" bison devicepkg-dev findutils flex installkernel openssl-dev perl rsync gzip xz " # Source _config="config-$_flavor.$arch" case $pkgver in *.*.*) _kernver=${pkgver%.0};; *.*) _kernver=$pkgver;; esac source=" https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz $_config 0001-phy-rockchip-typec-Set-extcon-capabilities.patch 0003-arm64-dts-rockchip-add-typec-extcon-hack.patch 0004-arm64-dts-rockchip-setup-USB-type-c-port-as-dual-data-role.patch 0010-usb-typec-add-extcon-to-tcpm.patch " builddir="$srcdir/linux-$_kernver" prepare() { default_prepare REPLACE_GCCH=0 \ . downstreamkernel_prepare } build() { unset LDFLAGS make ARCH="$_carch" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" } package() { downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" make -j1 modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_MOD_STRIP=1 \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_DTBS_PATH="$pkgdir/boot/dtbs-$_flavor" gzip -v "$pkgdir"/boot/vmlinuz-postmarketos-rockchip mv "$pkgdir"/boot/vmlinuz-postmarketos-rockchip.gz "$pkgdir"/boot/vmlinuz-postmarketos-rockchip } sha512sums=" 887a907f5923630224d2bbadd1e60e49856460ee5fde9fd6de770d908bada5c6fe1669f9ed64418695e9101a8e5069854beb23714dc8138cdf9ea7e319b10743 linux-5.13.5.tar.xz b6a1f2e71473789974fe9e51fc8c94ce233be418a043339315067fbb72667f66cfec864ec5983354561ced72f79b50edde974c328e33a3617e5f99d1818c9a6c config-postmarketos-rockchip.aarch64 10949558a6e3316ea57497f377fd120d6704f3b81725317556e49d10b570a40edb06643b06738116abbe3096be485761d436f1a0d1861bd34fc18ea45068b6b0 0001-phy-rockchip-typec-Set-extcon-capabilities.patch b7291eecfddc7ebe9393eea864e0ee28960e8cc2f87dfc42d09426b5619f46ded97c38fb8bf26f4eea1f26bfe21396094505b3efb8676691f8751e2ffabe50ec 0003-arm64-dts-rockchip-add-typec-extcon-hack.patch 427b81472de2a473344269b2da06ac338af42e68620a281a9cb8543e545e6ed7f719acaf68c688e518b65d2132e0c66676ba5e30376ec980fd6eeaea05c2a8be 0004-arm64-dts-rockchip-setup-USB-type-c-port-as-dual-data-role.patch e5cc0852506ea1e73213672f0c3f9144c08156f6d5e8af841bf3f7bffc0e89028507aac4718353eee20edd9069e3f81665caa5ca25e416f25e7e0da10451b67e 0010-usb-typec-add-extcon-to-tcpm.patch "