2024-04-18 17:19:42 +00:00
|
|
|
# Archived: Downstream kernel, only for testing. Use linux-postmarketos-exynos4.
|
2019-03-17 20:56:46 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/lineage_lt01wifi_defconfig
|
|
|
|
|
2023-09-30 18:40:09 +00:00
|
|
|
pkgname=linux-samsung-lt01wifi-downstream
|
2019-03-17 20:56:46 +00:00
|
|
|
pkgver=3.0.31
|
2024-04-18 17:19:42 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Samsung Galaxy Tab 3 8.0 kernel fork (downstream, archived)"
|
2020-03-20 13:53:06 +00:00
|
|
|
arch="armv7"
|
2019-03-17 20:56:46 +00:00
|
|
|
_carch="arm"
|
2023-09-30 18:40:09 +00:00
|
|
|
_flavor="samsung-lt01wifi-downstream"
|
2019-03-17 20:56:46 +00:00
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2019-03-17 20:56:46 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev xz"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_smdk4x12"
|
|
|
|
_commit="6ad0b18a63deacaebbc3d12751c3230cedbf7335"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-03-17 20:56:46 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/gr8nole/$_repository/archive/$_commit.tar.gz
|
2019-03-17 20:56:46 +00:00
|
|
|
$_config
|
2020-03-20 13:53:06 +00:00
|
|
|
0001-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch
|
2023-09-30 18:40:09 +00:00
|
|
|
linux3.4-ARM-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
|
2019-03-17 20:56:46 +00:00
|
|
|
gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
gcc8-fix-put-user.patch
|
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2019-03-17 20:56:46 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-03-17 20:56:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2020-03-20 13:53:06 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" CFLAGS_MODULE="-fno-pic" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" modules
|
2019-03-17 20:56:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2020-03-20 13:53:06 +00:00
|
|
|
|
|
|
|
# External modules install
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" modules_install
|
2019-03-17 20:56:46 +00:00
|
|
|
}
|
|
|
|
|
2023-09-30 18:40:09 +00:00
|
|
|
sha512sums="
|
|
|
|
43c9a5cfe9a6f66d7fbdec04ea6a04c06864d2f6140f458fba7bcde7a871d0128d5f1bf45724923c6e7fc592863a1a0a01a067dd6255b5f7ee0dbef46958140c linux-samsung-lt01wifi-downstream-6ad0b18a63deacaebbc3d12751c3230cedbf7335.tar.gz
|
|
|
|
cdd1902822b25c023ad9efd333387e59b18a73727bcb3963d67b979b9da0cd6c87032cbdb5f0e87f9ac0030444afdc7ffb4aaccada2683201694e8da52cffbbc config-samsung-lt01wifi-downstream.armv7
|
2020-03-20 13:53:06 +00:00
|
|
|
df6e20ac3c29cee1aa652a78cd5270bc785e824bcd5a9cd25e0681be506bf6a7547683fca1fc4170b175fa649602bddc98c34beb094ea59e8273aeb8f9703807 0001-usb_gadget-set-random-rndis-host-MAC-address-to-prev.patch
|
2023-09-30 18:40:09 +00:00
|
|
|
b14c0033045dd1ec5dd03612d8fb6361c4a0fa3eb54f7e262628d18756456c2e569a437d1b35099a8302577d1e471bbf9222b4b1b30f6578af7e4342a0009815 linux3.4-ARM-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
|
2019-03-17 20:56:46 +00:00
|
|
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
2023-09-30 18:40:09 +00:00
|
|
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
|
|
|
"
|