2018-01-20 00:50:14 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/lineage_manta_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-samsung-manta
|
2018-01-20 00:50:14 +00:00
|
|
|
pkgver=3.4.113
|
2022-02-08 20:26:59 +00:00
|
|
|
pkgrel=7
|
2018-01-20 00:50:14 +00:00
|
|
|
pkgdesc="Google Nexus 10 kernel fork"
|
2021-02-24 15:06:32 +00:00
|
|
|
arch="armv7"
|
2018-01-20 00:50:14 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="samsung-manta"
|
|
|
|
url="https://github.com/LineageOS/android_kernel_samsung_manta"
|
|
|
|
license="GPL2"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2022-02-08 20:26:59 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
2018-01-20 00:50:14 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_manta"
|
2022-02-08 20:26:59 +00:00
|
|
|
_commit="2eb797e4d1338dcf963a762491790484a5dd0612"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-01-20 00:50:14 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
2018-01-20 00:50:14 +00:00
|
|
|
$_config
|
2022-02-08 20:26:59 +00:00
|
|
|
gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
gcc8-fix-put-user.patch
|
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
01-fix-video-argb-setting.patch
|
2018-01-20 00:50:14 +00:00
|
|
|
"
|
2022-02-08 20:26:59 +00:00
|
|
|
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2018-01-20 00:50:14 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2018-01-20 00:50:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2022-02-08 20:26:59 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" CFLAGS_MODULE="-fno-pic" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" modules
|
2018-01-20 00:50:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2022-02-08 20:26:59 +00:00
|
|
|
|
|
|
|
# Modules
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 \
|
|
|
|
modules_install
|
2018-01-20 00:50:14 +00:00
|
|
|
}
|
|
|
|
|
2022-02-08 20:26:59 +00:00
|
|
|
sha512sums="
|
|
|
|
36a60bd023016adf6c1e579293d69e03cca6d0eb1efbb62ee698af72f2d19b3cd2e60941965a56702d325dede99481a1f4e09e6644016005bc27798153d48455 linux-samsung-manta-2eb797e4d1338dcf963a762491790484a5dd0612.tar.gz
|
|
|
|
3699b8d1b3ced3cbdfe0bab45da0a22ce6f9cbefb72c9c037207b21ed7f2ca5604a80b16cbbe2e2249ff46775a800bad1fab2502275ff5fca22ad6ae80e6e180 config-samsung-manta.armv7
|
|
|
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
8e91e309fe55c5ef4610d3ce3ec3f08b9570275bd6f8029a1c4098abce9edf25cc89d5fc2e9d1a7f336463fb6583852466bac7c08b79c411e0f0f0a9105f4ecc 01-fix-video-argb-setting.patch
|
|
|
|
"
|