pmaports/device/archived/linux-xiaomi-wt88047-downstream/APKBUILD

90 lines
4.8 KiB
Text
Raw Normal View History

device: rename unmaintained to archived (MR 5046) Unmaintained is a name which on multiple occasions have seen lead to confusion with people having the impression that unmaintained is for all unmaintained devices, which is not how we're really using it. Many devices in testing do not actually have a maintainer, yet there has been no push to move these out of there and into unmaintained. I think this is a result of that unmaintained was introduced not to keep unmaintained ports but rather a place to store ports that have a better replacement but where the inferior one still holds some sort of value, such as for debugging purposes. These ports also are not necessarily entirely unmaintained and see more fixes than many ports in testing. While one approach to solving this problem could be to simply moving all unmaintained ports to unmaintained, I think this comes with some problems: It would require an initial effort to figure out which ports are indeed unmaintained and which just don't have a maintained noted in the package, and given how many ports there are in testing this would be a big endeavour. It would also require continuous work on moving ports into unmaintained as the maintainers go silent if we are to keep testing and unmaintained's state consistent with reality. Additionally, just because a port doesn't have a maintainer on paper doens't mean that there aren't people who aren't willing to fix it up if there are issues that arise. As such, I think the way to go is renaming unmaintained to better reflect the original intent. Thanks to Luca Weiss for suggesting "archive", and to Arnav Singh for suggesting that "archived" would match the other category names better.
2024-04-18 17:19:42 +00:00
# Archived: Downstream port, only for testing. Use mainline port (xiaomi-wt88047)!
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/lineageos_wt88047_defconfig
pkgname=linux-xiaomi-wt88047-downstream
pkgver=3.10.108
pkgrel=3
pkgdesc="Xiaomi Redmi 2 downstream kernel fork"
arch="armv7"
_carch="arm"
_flavor="xiaomi-wt88047-downstream"
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 dtbtool gcc4"
# Compiler: GCC 4
if [ "${CC:0:5}" != "gcc4-" ]; then
CC="gcc4-$CC"
HOSTCC="gcc4-gcc"
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
fi
# Source
_repository="android_kernel_wingtech_msm8916"
_commit="beb5692ed25808aebce7b57e318cf8bd33e645d8"
_smb_tag="v5.11.7-msm8916"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
$_config
bq2022a-batid-debug.patch
cpr-dump.patch
gpio-debug.patch
memshare-debug.patch
remove-gcc-wrapper.patch
smb1360-debug.patch
smb1360-dump-wt88047.patch
smb1360-dump-$_smb_tag.c::https://raw.githubusercontent.com/msm8916-mainline/linux/$_smb_tag/drivers/power/supply/smb1360-dump.c
smb1360-like-mainline.patch
smb1360-fix-safety-timer-wt88047.patch
wt88047-smb1360-like-mainline.patch
linux3.4-ARM-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
linux3.4-fix-piggy.gzip.S.patch
linux3.7to4.5-ARM64-remove-Sun-Solaris-style-flag-on-section.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
# wt88047 has a modified copy of smb1360-charger-fg.c but the patch works for it :)
sed -i 's/smb1360-charger-fg.c/smb1360-charger-fg-wt88047.c/g' "$srcdir"/smb1360-*.patch
cp "$srcdir/smb1360-dump-$_smb_tag.c" drivers/power/smb1360-dump.c
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="$CC" HOSTCC="$HOSTCC" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
# Master DTB (deviceinfo_bootimg_qcdt)
dtbTool -p scripts/dtc/ -o "$pkgdir"/boot/dt.img "$_outdir/arch/$_carch/boot/"
}
sha512sums="
0c4375a54f2cb324e2bc8f6fc1279d2970b92ee86c10e7c954811c22aac6d9f4a263a43fe9e98bfe78aa6ea425e049eec080964ee33015fe129cf2d8972eb4ac linux-xiaomi-wt88047-downstream-beb5692ed25808aebce7b57e318cf8bd33e645d8.tar.gz
8813aeed206b7860e8204311339dccf4653911b5ed6789cebaa8a7bb7d089852f23c9c66cb2a6aca9cc86fd37bd3a6927c43e0d437699674a975767d2a05de5b config-xiaomi-wt88047-downstream.armv7
be82480d4f05852161f714a0c0cb48c16ed2be7ff9d1cb93bddf5858e5229315e9be548582bdd6f8129d8e1a2a8a7e243a402d2e53acb23242c0fce53299f1c6 bq2022a-batid-debug.patch
f040a1d7169b9ddb5baabb7de1838441e8608894dc6dc61ececb1acb4fe9851289934b37d74afb61addc01d7a1e4f1d2413f5e542c2a4aeb0c01f680797d37c6 cpr-dump.patch
e9f809b6659375cd7e854821f9925faa263d287c06e44071017cd4afb32f79c47e63760c9c95b4f0c15b79b6b1af4a36911861104a7b56dea2195baf9e4f4685 gpio-debug.patch
56083a8b290a7b1b1ffc9c8e3333db6d786a20d6e91ee400e895ecee8d31cccc75d809be13bcfe5cfb7d5b53a687b25281e8fd454cf420468ded3f77dcea9897 memshare-debug.patch
4a09fdcf99a4716a4ced11b7d74b7867423e5f6fa6c62674e57f496a10647c0b704fd5f91c46711e363337b54d3b7917b6c685230568eab44b6303bd285a2b61 remove-gcc-wrapper.patch
3507cd892cf7a07d924c457de746aae232230489ce1810bd8c97fb45817ddf952afd9605243aee63772a6572afa65f2914f307e183aa24fef1c33f98bec036bc smb1360-debug.patch
25405fa68442bc5ce5e2d8bf3a908ca4cf556633f66478523d1db2db76d11af255f9992412a110b5ffcf06692e26d82b6ad3886dacd5b67ea3944d468405b6b1 smb1360-dump-wt88047.patch
f61902474ab221a85a8910dcfbc48736e323a6bbc83896f778bb87d356464679c62ddf1c583e660a5c3c790dba420cce6cb9ca59b720234846dac7e80aa47368 smb1360-dump-v5.11.7-msm8916.c
2fe3899a925efae3f7845ae2a9c9a0198595b2311616dbc8bf754da69634cf730cf766d6378ea9d6096a1b9f165c7c7104e7e12a7020cf09c31b48d49117ba83 smb1360-like-mainline.patch
30f6466b5b1389c6b38838d7e7d6da0d4dd3dd94efa9e69d42c6551572121a716014f788de621a41a1d59c9d24768b4a321c9a2e02d2a640b0205412d81fd363 smb1360-fix-safety-timer-wt88047.patch
4a3021b331303b6e618dbc15f4de3c4bf7516d9c779204e88f1233243b535086434cb33c022ea25fd6cb3f0fe5f599074255b212a22dfda9d7a47b48794dd701 wt88047-smb1360-like-mainline.patch
9e3b067fa1b19ad02500c4fce1b6142051df3845c508e615788beb650c4f953683107ac2d80670c4e3df38f532e0e91060d2d13ec04c9ec985abd2dfa82e900b linux3.4-ARM-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
080745ca4ecaa804ee1df26ea81975ca93b74372e0c08322a6c481e97807495ae6ceb6cc77653afa24f9f2df45da8ebf8e5de6b06037fbb08e0279877ce42188 linux3.4-fix-piggy.gzip.S.patch
75545ccd0082a119b9ad95fcef3523c939a5c946f8f3a5c3dde15cee1502f6c1011050a0ad5359426f018bb7ceea1c97a28c7665941bc89f365c8d11065ce0f6 linux3.7to4.5-ARM64-remove-Sun-Solaris-style-flag-on-section.patch
"