pmaports/device/linux-asus-flo/APKBUILD
montvid 4b291dacd0 asus-flo: wifi & freedreno support + new firmware-asus-flo (#627)
* firmware-asus-flo: packaged all flo firmware
* device-asus-flo: depend on firmware-asus-flo package
* default android wifi config
* Add wifi and freedreno support
* change to console=ttyMSM0 - as per https://dflund.se/~triad/krad/nexus7-flo/
* Add current kernel config as it is currently working with wifi.
* Increase pkgrel to account for changes in the kernel config.
2017-09-25 20:39:11 +00:00

79 lines
2.2 KiB
Text

_vendor=asus
_flavor=asus-flo
_hash="942488347d69700cb84ad79290b7e60d124ac8d5"
_config="config-${_flavor}.armhf"
pkgname=linux-${_flavor}
pkgver=4.11
case $pkgver in
*.*.*) _kernver=${pkgver%.*};;
*.*) _kernver=$pkgver;;
esac
pkgrel=1
arch="armhf"
pkgdesc="Nexus 7 2013 WIFI mainline kernel"
url="https://git.linaro.org/people/john.stultz/flo.git/log/?h=flo-WIP"
depends="postmarketos-mkinitfs"
makedepends="xz perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev"
options="!strip !check !tracedeps"
install=
source="
$pkgname-$_hash.tar.gz::https://git.linaro.org/people/john.stultz/flo.git/snapshot/flo-$_hash.tar.gz
$_config
"
subpackages=""
license="GPL2"
_abi_release=${pkgver}
_carch="arm"
HOSTCC="${CC:-gcc}"
HOSTCC="${HOSTCC#${CROSS_COMPILE}}"
ksrcdir="$srcdir/flo-$_hash"
prepare() {
default_prepare
mkdir -p "$srcdir"/build
cp "$srcdir"/$_config "$srcdir"/build/.config || return 1
make -C "$ksrcdir" O="$srcdir"/build ARCH="$_carch" HOSTCC="$HOSTCC" \
silentoldconfig
}
# this is so we can do: 'abuild menuconfig' to reconfigure kernel
menuconfig() {
cd "$srcdir"/build || return 1
make ARCH="$_carch" menuconfig
cp .config "$startdir"/$_config
}
build() {
cd "$srcdir"/build
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" \
CFLAGS_MODULE=-fno-pic \
zImage modules qcom-apq8064-asus-nexus7-flo.dtb \
|| return 1
}
package() {
cd "$srcdir/build/arch/arm/boot"
cat zImage dts/qcom-apq8064-asus-nexus7-flo.dtb > zImage-dtb
install -Dm644 "$srcdir/build/arch/arm/boot/zImage-dtb" \
"$pkgdir/boot/vmlinuz-$_flavor"
install -D "$srcdir/build/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
cd "$srcdir"/build
make -j1 modules_install \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \
|| return 1
}
sha512sums="b3d3186bf86bcfe6a39690e1c13751aefed2d876b646b93631c1e76c70a56a23adcb2e50fd8d031dfb6e7111919cf116bd9a12a91c26cb5a5042a9e4cffc4bc4 linux-asus-flo-942488347d69700cb84ad79290b7e60d124ac8d5.tar.gz
feea40e7874f5c506d207c6b44e56a2058e945224237ea886d81764403c612547f44bdf4efbbdd8cead51e9647726fc087fb17459fb15899709f154193000013 config-asus-flo.armhf"