pmaports/device/testing/linux-sourceparts-pocketpc/APKBUILD
Oliver Smith f288cdaa77
treewide: remove linux-headers replacements (MR 3597)
Remove the -dev subpackages of kernels that replace the linux-headers
package. As I understand, the only case where this would make sense is
if you wanted to build a kernel module against headers that need to be
newer than the headers in Alpine's linux-headers package (currently
5.19.5).

While this might have been historically relevant when wireguard wasn't
in the kernel and you might have needed newer linux-headers to build
the module, it seems irrelevant today. If somebody should need this in
the future, then bring it back properly / consider getting the
linux-headers package in Alpine upgraded. Right now the -dev packages
are broken in several ways:

* Use of unversioned provides= (pma#1766)
* Don't contain binaries needed to build binary packages (pma#462).
  This was worked around in 6aba5f ("Package kernel-scripts
  separately"), but later this didn't build anymore and we removed it.

So in short: broken and unused, drop them.
2022-11-02 15:02:54 +01:00

79 lines
2.2 KiB
Text

# Maintainer: Martijn Braam <martijn@brixit.nl>
_flavor=sourceparts-pocketpc
_config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=5.14.6_git20210920
pkgrel=2
_tag="81a7953afc5cd1001b727701dc99625ec656160a"
_wifi_ref="1b6ddd544b4a829ed2b7feb32575359b6443cd3d"
pkgdesc="Kernel fork for the Pocket P.C."
arch="aarch64"
url="https://megous.com/git/linux/"
license="GPL-2.0-only"
makedepends="
bison
devicepkg-dev
findutils
flex
gmp-dev
installkernel
mpc1-dev
mpfr-dev
openssl-dev
perl
rsync
xz
"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-waydroid
pmb:kconfigcheck-iwd
pmb:kconfigcheck-nftables
pmb:kconfigcheck-zram
"
source="$pkgname-$_tag.tar.gz::https://github.com/PopcornComputer/PocketPC-Linux/archive/$_tag.tar.gz
https://github.com/lwfinger/rtl8723ds/archive/$_wifi_ref.tar.gz
0001-rtl8723ds.patch
config-$_flavor.aarch64
"
builddir="$srcdir/PocketPC-Linux-$_tag"
case "$CARCH" in
aarch64*) _carch="arm64" ;;
arm*) _carch="arm" ;;
esac
prepare() {
default_prepare
mv "$srcdir"/rtl8723ds-$_wifi_ref "$builddir"/drivers/staging/rtl8723ds
REPLACE_GCCH=0 \
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
CFLAGS_MODULE=-fno-pic \
DTC_FLAGS="-@"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
make -j1 modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
}
sha512sums="
49e091de60b820c48e19bb9d3602cb0e5c3470b99112ad63da3f112b503569e6bab21738f2be014705212974a3a824c9f91acd98fa33632e7bc8bf2057f51d75 linux-sourceparts-pocketpc-81a7953afc5cd1001b727701dc99625ec656160a.tar.gz
68001a7fdc022b4ff82e3f1762a00369c2be18a4c9f5ea2074e3e9248678c48525f4bcec47ef0c4678d6a0b6aef031eb52cac9a9811f3291a73e00cb33fb5c85 1b6ddd544b4a829ed2b7feb32575359b6443cd3d.tar.gz
75af8bd55fc006b8f208fec57bce612112ff066fa71f1cfe6d4a0904e201e54d574dbf13ae8913ec570f790ac360f4b87ac26e7dac19f641a7f4c403a5df938b 0001-rtl8723ds.patch
d637fc8c40971b7b5587039bddd8103fda5559e3055fe9ec7b2d0b40f62b213d04e70f165f50e2eca0cd25874e32352a9b62f490964a09a5755f013aebfcc61a config-sourceparts-pocketpc.aarch64
"