2018-10-05 15:57:26 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/i9100_defconfig
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2018-10-05 15:57:26 +00:00
|
|
|
pkgname=linux-samsung-i9100
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgver=3.0.101
|
2020-03-17 22:58:50 +00:00
|
|
|
pkgrel=14
|
2018-10-05 15:57:26 +00:00
|
|
|
pkgdesc="Samsung Galaxy SII kernel fork"
|
2020-03-17 22:58:50 +00:00
|
|
|
arch="armv7"
|
2018-10-05 15:57:26 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="samsung-i9100"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2018-10-05 15:57:26 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev
|
2020-03-17 22:58:50 +00:00
|
|
|
findutils busybox-static-armv7"
|
2018-10-05 15:57:26 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_smdk4412"
|
|
|
|
_commit="349a3e91e76d17e67ef6213e1f6712e700695631"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2017-05-26 20:26:25 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
2017-05-26 20:26:25 +00:00
|
|
|
$_config
|
2018-10-05 15:57:26 +00:00
|
|
|
gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
gcc8-fix-put-user.patch
|
2017-05-26 20:26:25 +00:00
|
|
|
init
|
|
|
|
"
|
|
|
|
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2018-10-05 15:57:26 +00:00
|
|
|
prepare_isorec() {
|
2017-05-26 20:26:25 +00:00
|
|
|
# Use Alpine's busybox.static instead of the pre-compiled busybox shipped
|
|
|
|
# with the source
|
2017-07-05 16:40:00 +00:00
|
|
|
cp -v /usr/$(arch_to_hostspec $arch)/bin/busybox.static \
|
2018-10-05 15:57:26 +00:00
|
|
|
"$builddir"/usr/galaxys2_initramfs_files/busybox
|
2017-05-26 20:26:25 +00:00
|
|
|
|
|
|
|
# do not use ramdisk.cpio and ramdisk-recovery-device.cpio, always use
|
|
|
|
# the initramfs from the recovery partition ("isorec"), so we can build
|
|
|
|
# it later and independently from the kernel. also directly boot that
|
|
|
|
# partition, not only when the recovery key combination was used.
|
2018-10-05 15:57:26 +00:00
|
|
|
cd "$builddir"/usr/
|
2017-05-26 20:26:25 +00:00
|
|
|
mv galaxys2_initramfs.list galaxys2_initramfs.list_old
|
2017-10-04 15:05:00 +00:00
|
|
|
grep -v "../../ramdisk" galaxys2_initramfs.list_old > galaxys2_initramfs.list
|
2018-10-05 15:57:26 +00:00
|
|
|
cp -v "$srcdir"/init "$builddir"/usr/galaxys2_initramfs_files/init
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2018-10-05 15:57:26 +00:00
|
|
|
# Paths supplied to gen_initramfs_list.sh are prefixed with "source/".
|
|
|
|
ln -s "$builddir" ln -s "$builddir"/source
|
2020-02-28 10:17:04 +00:00
|
|
|
|
|
|
|
cd "$builddir"
|
2018-10-05 15:57:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
prepare_isorec
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2018-10-05 15:57:26 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
2017-09-13 19:40:17 +00:00
|
|
|
sha512sums="285ffd2c82d0444b99da583573d19443b73de22d7382aae54413af229a28bebf4ea32ecbe248ae54ae64bbbc0af7d722b1ef86d5dd099e2990dcc6284fb195fa linux-samsung-i9100-349a3e91e76d17e67ef6213e1f6712e700695631.tar.gz
|
2020-03-17 22:58:50 +00:00
|
|
|
087372ce82f8eae44694d7c6288822e5565c6bbed3a07cb42a6b009fa25a84a16ec44d76fe5f504bcf945e28237e1d62cf3686d1a60126525e3fdea2613cbb3c config-samsung-i9100.armv7
|
2018-10-05 15:57:26 +00:00
|
|
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
2018-11-30 16:51:42 +00:00
|
|
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
2017-05-26 20:26:25 +00:00
|
|
|
dd4094d5f4ec281d32f12af88cb22a782e497c8e52f69cf60b73ac7d6171fc95f1f8040b3d0ad2ff3f016d22ac1d91c5b522e5d03203534a76742bc55a082af5 init"
|