2020-11-23 09:08:11 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2017-10-04 17:20:17 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/lineageos_i9305_defconfig
|
|
|
|
|
2020-11-23 09:08:11 +00:00
|
|
|
pkgname=linux-samsung-i9300
|
2017-10-04 17:20:17 +00:00
|
|
|
pkgver=3.0.101
|
2021-04-29 11:38:24 +00:00
|
|
|
pkgrel=3
|
2020-11-23 09:08:11 +00:00
|
|
|
pkgdesc="Samsung Galaxy SIII kernel fork"
|
2020-10-12 00:04:53 +00:00
|
|
|
arch="armv7"
|
2017-10-04 17:20:17 +00:00
|
|
|
_carch="arm"
|
2020-11-23 09:08:11 +00:00
|
|
|
_flavor="samsung-i9300"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
|
|
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl xz gcc6"
|
2018-10-01 06:44:18 +00:00
|
|
|
|
|
|
|
# Compiler: this kernel was only tested with GCC6. Feel free to make a merge
|
|
|
|
# request if you find out that it is booting working with newer GCCs as
|
|
|
|
# well. See <https://postmarketos.org/vendorkernel> for instructions.
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
2018-11-30 20:56:06 +00:00
|
|
|
HOSTCC="gcc6-gcc"
|
2018-10-01 06:44:18 +00:00
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
2017-10-04 17:20:17 +00:00
|
|
|
|
2020-11-23 09:08:11 +00:00
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_smdk4412"
|
|
|
|
_commit="fa8fa332fdec11744ffe0c742775cc22efe0d041"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
_outdir="out"
|
2017-10-04 17:20:17 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-11-08 22:05:16 +00:00
|
|
|
default_prepare
|
2020-11-23 09:08:11 +00:00
|
|
|
. downstreamkernel_prepare
|
2017-10-04 17:20:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2020-11-23 09:08:11 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2017-10-04 17:20:17 +00:00
|
|
|
|
2020-02-28 09:59:19 +00:00
|
|
|
# the 'no-pic' flag is necessary to avoid the
|
2017-10-04 17:20:17 +00:00
|
|
|
# error 'Unknown symbol _GLOBAL_OFFSET_TABLE_ (err 0)' when loading the module
|
2020-11-23 09:08:11 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
|
|
|
|
CFLAGS_MODULE="-fno-pic" modules
|
2017-10-04 17:20:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-11-23 09:08:11 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2017-10-04 17:20:17 +00:00
|
|
|
|
|
|
|
unset LDFLAGS
|
2020-11-23 09:08:11 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 modules_install
|
2017-10-04 17:20:17 +00:00
|
|
|
}
|
|
|
|
|
2020-10-31 18:25:31 +00:00
|
|
|
sha512sums="d87dd54152980b30012fead62e639dde6ff0862d376790eac32800aeffd91482a220c7b1f233933a1879796dcaa3722e86c42a5f0e4df4168ae1f65362952779 linux-samsung-i9300-fa8fa332fdec11744ffe0c742775cc22efe0d041.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
2923f9ea030633e320799f92ba4c898f66864ed3aed214e321d95f5dadd8c5ebf1fc35bfea5aeffecc668992b1b1101ace301aa930f9d965f199a345e0687d6e config-samsung-i9300.armv7"
|