81f8ca8e77
Mostly the GCC10 yylloc failure was seen but several others have been observed: * wireguard script was silently failing * several gcc10 x86 errors * a checksum from kernel.org has changed Now we have 3 different gcc10 yylloc patches: gcc10-extern_YYLOC_global_declaration.patch: Linux < 4.2 linux4.2-gcc10-extern_YYLOC_global_declaration.patch: Linux 4.2+ linux4.17-gcc10-extern_YYLOC_global_declaration.patch: Linux 4.17+ [ci:skip-build] [ci:ignore-count] [ci:skip-vercheck]
48 lines
1.8 KiB
Text
48 lines
1.8 KiB
Text
# Maintainer: Fedorov Bohdan <misterjdr@yandex.ru>
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config based on: arch/arm/configs/cactus_defconfig
|
|
|
|
pkgname=linux-xiaomi-cactus
|
|
pkgver=4.9.117
|
|
pkgrel=1
|
|
pkgdesc="Xiaomi Redmi 6A kernel fork"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
_flavor="xiaomi-cactus"
|
|
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 python3"
|
|
|
|
# Source
|
|
_repository="Xiaomi_Kernel_OpenSource"
|
|
_commit="b417db1e025f22dff9dfc65819ecf2db4d9d85f8"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://github.com/MiCode/$_repository/archive/$_commit.tar.gz
|
|
$_config
|
|
0001-Port-build-scripts-to-Python3.patch
|
|
linux4.2-gcc10-extern_YYLOC_global_declaration.patch
|
|
"
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
_outdir="out"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
package() {
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
|
}
|
|
|
|
sha512sums="7328c6fd8a8aad72a2b88b24319dd0887685d2c1f684f922b258df79aba9eaa151196ed0cb34f2364f7c04ccf1504b3749755ed6cadfd8568e92ae3f8d7f58e5 linux-xiaomi-cactus-b417db1e025f22dff9dfc65819ecf2db4d9d85f8.tar.gz
|
|
04fb175d506fc79e518cc40ab4c0299319f47e52c2e618d72b7cd48a843e0ee68ef89a4f57cb919e3523aba7121d1c225aed4f3f1e0e2f6c6e7aa80a099f7904 config-xiaomi-cactus.armv7
|
|
3f295c4ed0eb6d2bcdb88e986a640b20f5fb4c299ae792b01b70b5319d6b3e0d59475a2f3686ed167249aa091a7156760b90f73e9d8dc5505cbaef4cc19d3ffb 0001-Port-build-scripts-to-Python3.patch
|
|
eaf2e61fcb508cdd239b8fed209d2a09ecac77287f6b46d003918fdf1c6fa2ee63f7390f3ff7c49029b8ed6cbcdd81c7e9a4b1ece9f5060b6fc84e322bd47f41 linux4.2-gcc10-extern_YYLOC_global_declaration.patch"
|