pmaports/device/testing/linux-fly-iq4404/APKBUILD
Luca Weiss cafeecb043
linux-fly-iq4404: don't add mtk header to zImage (MR 1483)
This is now handled by postmarketos-mkinitfs. Remove the code from the
APKBUILD.
2020-08-22 10:39:28 +02:00

54 lines
1.6 KiB
Text

# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/vanzo6572_wet_l_defconfig
pkgname=linux-fly-iq4404
pkgver=3.10.89
pkgrel=3
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"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev xz 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
# 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() {
# kernel.release
install -D "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
cd "$builddir/arch/$_carch/boot"
install -Dm644 zImage "$pkgdir/boot/vmlinuz-$_flavor"
}
sha512sums="ae53fe32e91a46ddc553ca6ea27bebb9ec3bb0dd01f15336d4570fa789c04ec1a52146fdd03f7ee409f16a11f8f90625546b447a39d7b6d2f10032c91283788e linux-fly-iq4404-a619869f394bc2f00226efa230bc33894648af4e.tar.gz
b31d9f3db36693b12563134667a8a9de24f09a3ce8b330dd7352cd63f3bb5bb6dba4de047768d9eab696da7bf01233ebe22373255cee41ab2e848a2a1e243ca5 config-fly-iq4404.armv7"