mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 09:11:38 +01:00
little_endian.h uses __always_inline which is defined in stddef.h should fix build of linux-tools
63 lines
2.1 KiB
Plaintext
63 lines
2.1 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=linux-headers
|
|
pkgver=4.18.13
|
|
_kernver=${pkgver%.*}
|
|
pkgrel=1
|
|
pkgdesc="Linux system headers"
|
|
url="http://kernel.org"
|
|
arch="all"
|
|
license="GPL-2.0-only"
|
|
makedepends="perl"
|
|
options="!check !dbg !strip !tracedeps"
|
|
source="https://kernel.org/pub/linux/kernel/v4.x/linux-$_kernver.tar.xz
|
|
https://kernel.org/pub/linux/kernel/v4.x/patch-$pkgver.xz
|
|
revert-broken-uapi.patch
|
|
0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch
|
|
fix-aarch64-asm-ptrace.patch
|
|
"
|
|
|
|
prepare() {
|
|
cd "$srcdir"/linux-$_kernver
|
|
if [ "$_kernver" != "$pkgver" ]; then
|
|
unxz -c < "$srcdir"/patch-$pkgver.xz | patch -p1 || return 1
|
|
fi
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
return 0
|
|
}
|
|
|
|
package() {
|
|
local _carch=$CARCH
|
|
|
|
case "$_carch" in
|
|
aarch64*) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
mips*) _carch="mips" ;;
|
|
s390*) _carch="s390" ;;
|
|
ppc*) _carch="powerpc" ;;
|
|
# not sure about this -- ppc64*) _carch="powerpc64" ;;
|
|
esac
|
|
|
|
cd "$srcdir"/linux-$_kernver
|
|
mkdir -p "$pkgdir/usr"
|
|
make headers_install ARCH="${_carch}" INSTALL_HDR_PATH="$pkgdir/usr" || return 1
|
|
|
|
find "$pkgdir/usr" \( -name .install -o -name ..install.cmd \) -exec \
|
|
rm -f {} \;
|
|
|
|
# provided by libdrm
|
|
rm -rf "$pkgdir"/usr/include/drm
|
|
}
|
|
|
|
sha512sums="950eb85ac743b291afe9f21cd174d823e25f11883ee62cecfbfff8fe8c5672aae707654b1b8f29a133b1f2e3529e63b9f7fba4c45d6dacccc8000b3a9a9ae038 linux-4.18.tar.xz
|
|
169c232c1799eae10b5fa399fc2cb0567536681e8e17f59fe0c489c6186d368261ba45baf1b6f71a0d111895cbf4a44d93f7ee3e20d4842b699f75f5372c8d38 patch-4.18.13.xz
|
|
32597f2672d1ec365a936d15041a7cf219ef9353241d4a5c378244cf2fc155610443a19bbcd391c86099a0b08486c45e042ec7c90b0d04fe675c3ad0ffc36b53 revert-broken-uapi.patch
|
|
302283b1b5f560c850e24aad73febcf7f906ed62b4cad2d826bf140ffe59191631f3cd4ac29525c349cdfe61aba6a47886a0d76f1c6a4a16b744d59b94ea5df8 0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch
|
|
8b510dae7656ec9decee611773c21c0b379ccc8a776e4e0135cc28764fec611e9fc8bdee6a457d8df21f1399d3141659a20b70a0cb5efbb3e3b7aa7d5a5573ce fix-aarch64-asm-ptrace.patch"
|