e822fde276
- Patch from Robert Nelson and Hansem Ro. - Based on the work of Hansem Ro, who owns another device, the First Generation Kindle Fire, which has similar specifications as the Samsung Galaxy Tab 2 7.0.
66 lines
2.6 KiB
Text
66 lines
2.6 KiB
Text
# Maintainer: Mighty <mightymb17@gmail.com>
|
|
# Co-Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
|
|
pkgname=linux-samsung-espresso3g
|
|
pkgver=5.17.0
|
|
pkgrel=1
|
|
pkgdesc="Samsung Galaxy Tab 2 (7.0 inch) mainline kernel"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
_flavor="samsung-espresso3g"
|
|
url="https://kernel.org"
|
|
license="GPL2"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-anbox
|
|
pmb:kconfigcheck-containers
|
|
pmb:kconfigcheck-nftables
|
|
pmb:kconfigcheck-zram"
|
|
makedepends="openssl-dev yaml-dev mpc1-dev mpfr-dev xz findutils bison flex perl sed bash gmp-dev bc linux-headers elfutils-dev"
|
|
_config="config-$_flavor.$arch"
|
|
case $pkgver in
|
|
*.*.0) _kernver=${pkgver%.0};;
|
|
*.*.*) _kernver=$pkgver;;
|
|
*.*) _kernver=$pkgver;;
|
|
esac
|
|
source="
|
|
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$_kernver.tar.xz
|
|
00-Add-espresso-dts.patch
|
|
01-Add-TWL6030-power-driver-with-minimal-support-for-power-off.patch
|
|
02-Add-TWL6030-power-button-support-to-twl-pwrbutton.patch
|
|
03-Add-clk32kg-to-twl6030-and-fix-wifi-reboot-issue.patch
|
|
$_config
|
|
"
|
|
builddir="$srcdir/linux-$_kernver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "$builddir/arch/$_carch/boot/"*zImage \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
make modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
}
|
|
|
|
sha512sums="
|
|
89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b linux-5.17.tar.xz
|
|
01d2e04afba261c42ba3c9e9aea4f8f023d86e58f17e2e17dec2f46347665843678dd56ad8875ab00b69074c3389dd471a47a9f252e2c8002c89dc730691cfd8 00-Add-espresso-dts.patch
|
|
a483b1a322f3fe47c7bb6514f34cca69ad1b806487596ffab69078acb6e83e99ed39ffb4d5b4ecd17035d118a75ce5bac6761b9e42d01608f1e6a53d59b27806 01-Add-TWL6030-power-driver-with-minimal-support-for-power-off.patch
|
|
b3d6114c5c60fc2820856c89ea6f09c369d857ae79a79f0eeb0f83f5401dc2253e11f7dac6869eb1095d3e0b3a68126246762e2f406ffae5b5ef0a60d5563bac 02-Add-TWL6030-power-button-support-to-twl-pwrbutton.patch
|
|
c98479208876387a0e9b3aabe9e496ed41af348b459d9180ce48d08b556578e3e607727e14e2fc9569d7fd86dce539f97f6341a4b010e59fd7fc1da4600c2b88 03-Add-clk32kg-to-twl6030-and-fix-wifi-reboot-issue.patch
|
|
3bf676ddaf2201088c223b5f67933041d47b0cb20aefb678af271887107658f334fb6f3a778470a824b1c1a1a256ac68e17bded27c6d661f7b0a92eb15326fa3 config-samsung-espresso3g.armv7
|
|
"
|