summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChrister Solskogen2021-02-11 13:49:12 +0100
committerChrister Solskogen2021-02-11 13:49:12 +0100
commitd2ce4dcd1fc5546348dc3a2a2d6ec8b5ecfe263c (patch)
treef9bdc83db64233107acfcf445e29f5f7ee48fa2d
downloadaur-d2ce4dcd1fc5546348dc3a2a2d6ec8b5ecfe263c.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD39
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f799c15ef37
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = armv7l-linux-api-headers
+ pkgdesc = Kernel headers sanitized for use in userspace (armv7l-unknown-linux-gnueabihf)
+ pkgver = 5.10.15
+ pkgrel = 1
+ url = https://www.kernel.org
+ arch = any
+ license = GPL2
+ makedepends = rsync
+ options = !strip
+ source = https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.10.15.tar.xz
+ source = https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.10.15.tar.sign
+ validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
+ validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
+ sha256sums = d85287bcf1d51c4d0a32380ac0a5b2b487b321058a6923617f1613fbd10e6e01
+ sha256sums = SKIP
+
+pkgname = armv7l-linux-api-headers
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..77ce2bf61e3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Christer Solskogen <christer.solskogen@gmail.com>
+# Build order: armv7l-binutils -> armv7l-linux-api-headers -> armv7l-gcc-bootstrap -> armv7l-glibc -> armv7l-gcc -> armv7l-glibc (again)
+
+_arch=armv7l
+_kernel_arch=arm
+_target=$_arch-unknown-linux-gnueabihf
+pkgname=$_arch-linux-api-headers
+pkgver=5.10.15
+pkgrel=1
+pkgdesc="Kernel headers sanitized for use in userspace ($_target)"
+arch=(any)
+url='https://www.kernel.org'
+license=(GPL2)
+makedepends=(rsync)
+options=(!strip)
+source=(https://www.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.{xz,sign})
+sha256sums=('d85287bcf1d51c4d0a32380ac0a5b2b487b321058a6923617f1613fbd10e6e01'
+ 'SKIP')
+validpgpkeys=(
+ 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
+ '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
+)
+
+
+build() {
+ cd linux-$pkgver
+
+ make ARCH=$_kernel_arch mrproper
+ make ARCH=$_kernel_arch headers_check
+}
+
+package() {
+ cd linux-$pkgver
+
+ make INSTALL_HDR_PATH="$pkgdir/usr/$_target/sys-root/usr" ARCH=$_kernel_arch V=0 headers_install
+
+ # clean-up unnecessary files generated during install
+ find "$pkgdir" \( -name .install -or -name ..install.cmd \) -delete
+}