2020-05-07 12:13:20 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/vanzo6572_wet_l_defconfig
|
|
|
|
|
|
|
|
pkgname=linux-fly-iq4404
|
|
|
|
pkgver=3.10.89
|
2020-06-04 11:05:01 +00:00
|
|
|
pkgrel=1
|
2020-05-07 12:13:20 +00:00
|
|
|
pkgdesc="Fly Spark kernel fork"
|
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
|
|
|
_flavor="fly-iq4404"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-06-04 11:05:01 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev xz mtk-mkimage gcc6"
|
|
|
|
|
|
|
|
# Compiler: >GCC 6 (Hangs on disk load)
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
|
|
|
HOSTCC="gcc6-gcc"
|
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
2020-05-07 12:13:20 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="kernel-3.10-iq4404_mt6572"
|
|
|
|
_commit="a619869f394bc2f00226efa230bc33894648af4e"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/ave4/$_repository/archive/$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
. downstreamkernel_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-06-04 11:05:01 +00:00
|
|
|
# kernel.release
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
|
|
|
|
cd "$builddir/arch/$_carch/boot"
|
|
|
|
# Add mediatek header to zImage
|
|
|
|
mtk-mkimage KERNEL zImage zImage-mtk
|
|
|
|
# Install modified zImage
|
|
|
|
install -Dm644 zImage-mtk "$pkgdir/boot/vmlinuz-$_flavor"
|
2020-05-07 12:13:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="ae53fe32e91a46ddc553ca6ea27bebb9ec3bb0dd01f15336d4570fa789c04ec1a52146fdd03f7ee409f16a11f8f90625546b447a39d7b6d2f10032c91283788e linux-fly-iq4404-a619869f394bc2f00226efa230bc33894648af4e.tar.gz
|
2020-06-04 11:05:01 +00:00
|
|
|
84419c429911b1a529d60c9a1c7c9724e94f54de6c3dda63d7ad6cd84ac5cb1e2f2e1ba65eb8ac202eab920c8c2ce760e7c7319a40eca2820ac0f5c8ca2fa0d7 config-fly-iq4404.armv7"
|