2019-04-07 04:04:28 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/latona_defconfig
|
2017-10-14 16:20:48 +00:00
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-samsung-i9003
|
2017-10-14 16:20:48 +00:00
|
|
|
pkgver=3.0.101
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=20
|
2020-05-17 15:17:31 +00:00
|
|
|
pkgdesc="Samsung Galaxy SL kernel"
|
2020-05-30 18:30:51 +00:00
|
|
|
arch="armv7"
|
2019-04-07 04:04:28 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="samsung-i9003"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-05-30 18:30:51 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
2019-04-07 04:04:28 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_latona"
|
|
|
|
_commit="7b8d73dd32e6cd21107f9a963a32a5ed237a6e78"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2017-10-14 16:20:48 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/dhiru1602/$_repository/archive/$_commit.tar.gz
|
2017-10-14 16:20:48 +00:00
|
|
|
$_config
|
|
|
|
00_return_address.patch
|
|
|
|
01_twl_power_init.patch
|
|
|
|
02_mfd_driver_fix.patch
|
2017-11-14 19:33:34 +00:00
|
|
|
03_fix_paranoid_network_disabled.patch
|
2019-04-07 04:04:28 +00:00
|
|
|
gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
gcc8-fix-put-user.patch
|
|
|
|
kernel-use-the-gnu89-standard-explicitly.patch
|
2017-10-14 16:20:48 +00:00
|
|
|
init
|
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2017-10-14 16:20:48 +00:00
|
|
|
|
2019-04-07 04:04:28 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2017-10-14 16:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2019-04-07 04:04:28 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
|
2018-12-06 11:23:09 +00:00
|
|
|
CFLAGS_MODULE=-fno-pic
|
2017-10-14 16:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2019-04-07 04:04:28 +00:00
|
|
|
|
2018-12-06 11:23:09 +00:00
|
|
|
unset LDFLAGS
|
|
|
|
|
|
|
|
echo "--[ Installing modules ]--"
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2019-04-07 04:04:28 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 modules_install
|
2017-10-14 16:20:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="b7ca46b856a0c160ae36a98da39147deb85c054e902447ab68bcd4a011986eee486fb681d0bb832b9b57797aca35332483e99379b792bd467b1f030328bd83c7 linux-samsung-i9003-7b8d73dd32e6cd21107f9a963a32a5ed237a6e78.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
9541d6afe1297cb0225d9f6b57ba7f46208fd53730a95d7f629ad52a20a4ec8ca387781b2fdbdc7808e4088d8f17b64be3c7654d2b6ef9da7f03cd34de342435 config-samsung-i9003.armv7
|
2017-10-14 16:20:48 +00:00
|
|
|
c40eaa11547f5bc2b1ff965506bdfe3015ff16e4b5ad9ccb3b8134ceafd1d32407c4ef2b213e02e036ce1e9bdcbfe768dff7d4b054bec77705a176c1f783b6f5 00_return_address.patch
|
|
|
|
1972a2b5c429d6bf5fa1423e8805bb89bbd80c4efe6d235cb2037de6ba4d15c01e90239392161d6e5a0802eafaab6e8b468a49a12dc5b66469a111262cde2047 01_twl_power_init.patch
|
|
|
|
5b951a2ab60a89fbc3ca209960987035001a6f9147f8ab5c05a6b49ec6dee75d0b6d053bef28df37e583bfc903599beed16692e25ee363e6200e14839d0dda65 02_mfd_driver_fix.patch
|
2017-11-14 19:33:34 +00:00
|
|
|
df62e03666313bb03d9a455eac875f170a55d378b6e56b847c1c6ff1ce5cfafcfdf1d7605754ca3c684840ea00357f9ec4c6621f6ff77377132a484b9258f6f7 03_fix_paranoid_network_disabled.patch
|
2019-04-07 04:04:28 +00:00
|
|
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
|
|
|
ad0182a483791fc88e058838bc331b2f04a75ba291e763767babdb815efadfc3b4fda97e69e2e3f00a426cabea088e35297a92bd287592597d1e309be68ee92c kernel-use-the-gnu89-standard-explicitly.patch
|
2017-10-14 16:20:48 +00:00
|
|
|
dd4094d5f4ec281d32f12af88cb22a782e497c8e52f69cf60b73ac7d6171fc95f1f8040b3d0ad2ff3f016d22ac1d91c5b522e5d03203534a76742bc55a082af5 init"
|