Skip to content
Snippets Groups Projects
Commit e8b54150 authored by Mathias Roux's avatar Mathias Roux
Browse files

corrected linux-wiko-ufeel APKBUILD

parent 4a0d6901
No related branches found
No related tags found
No related merge requests found
# Kernel config based on: arch/arm/configs/p6601_defconfig
# Wiko U Feel is based on Tinno p6601
pkgname="linux-wiko-ufeel"
pkgver=3.18.19
pkgrel=1
pkgdesc="Wiko U Feel kernel"
arch="armhf"
_carch="arm"
_flavor="wiko-ufeel"
url="https://wikomobile.com"
license="GPL-2.0-only"
options="!strip !check !tracedeps"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc6"
# 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"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source
_download_url="http://www.wikogeek.com/index.php?tel="
_download_id="26657d5ff9020d2abefe558796b99584"
_config="config-${_flavor}.${arch}"
source="
$pkgname-$_download_id.zip::${_download_url}${_download_id}
$_config
compiler-gcc6.h
00_disable_drvgen.patch
01_add_decompiled_stock_dtb_dtsi.patch
02_fix_various_include_directives_mt6735.patch
04-fix-wifi-firmware-loading-mt6735.patch
"
builddir="$srcdir/U_FEEL_OpenSource/kernel-3.18"
prepare() {
default_prepare
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
}
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"
# zImage (find the right one)
cd "$builddir/arch/$_carch/boot"
_target="$pkgdir/boot/vmlinuz-$_flavor"
for _zimg in zImage-dtb Image.gz-dtb *zImage Image; do
[ -e "$_zimg" ] || continue
msg "zImage found: $_zimg"
install -Dm644 "$_zimg" "$_target"
break
done
if ! [ -e "$_target" ]; then
error "Could not find zImage in $PWD!"
return 1
fi
}
sha512sums="87ec7ffa28c46ac97d03a0c7107f834f530f11eb48f32b0e5389a139a42da515a16e1dd54ee33bae1166f899d447d110e70e611920129071fda68e333177cead linux-wiko-ufeel-26657d5ff9020d2abefe558796b99584.zip
b3c2db70353a5975715d2bf9c1eef8984d22a866de530ae28926f9ffa3f6588501569efad47e6e9777f8993ba9553a871f1fb51d209f6643226e9b7d2bc8a1e0 config-wiko-ufeel.armhf
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h
8a04940e6f5424df67a3cc4c75dd19be1c9b560859e9db0ae67b766d52982a46156b601698afb80f90b9b99f63ef74e1f6147902b43ec97c25d2b75ba2f8d2b3 00_disable_drvgen.patch
e2b77554b0c22cacf9e011bd7ccd447c5d530fc23caa25416469ca3df6c2f6c0e11fb28cdf751ea8e3b35e629d8c68410ad4abf50f9fdbe493f6754810d9966d 01_add_decompiled_stock_dtb_dtsi.patch
1f6d7d043ee8556758e2475ca2d677abf1582f4329eb66cfcd6481a4b3216efd35a0f44d0483a8a3344bb4b5dd24d340327d9216f3069ed4b86e5bf8ffc5412b 02_fix_various_include_directives_mt6735.patch
3d8c0888e6de769861fbc6b3d6419bffa7ea841f0a5a38c2990f5ddefb511ae1dce0418ff61a96ac9b6b4438232c0706d627d58eec42fa7b36e135c45ee9bf99 04-workaround-loading-wifi-firmware-mt6735.patch
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment