diff options
author | Silvino Silva <silvino@bk.ru> | 2021-02-12 03:59:34 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2021-02-12 03:59:34 +0000 |
commit | a3628fc49db4d88ff3e4067268650710d1da3f6f (patch) | |
tree | 8fdac6dfc8cabb9f85a2db3a3bd628cfe44438cd /linux/ports/linux-gnu/Pkgfile | |
parent | 0a6b0fc9769daf0932cb207c3285baa31547b489 (diff) | |
download | doc-a3628fc49db4d88ff3e4067268650710d1da3f6f.tar.gz |
initial openbsd support
Diffstat (limited to 'linux/ports/linux-gnu/Pkgfile')
-rw-r--r-- | linux/ports/linux-gnu/Pkgfile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/linux/ports/linux-gnu/Pkgfile b/linux/ports/linux-gnu/Pkgfile new file mode 100644 index 0000000..ea8868f --- /dev/null +++ b/linux/ports/linux-gnu/Pkgfile @@ -0,0 +1,42 @@ +# Description: Gnu linux kernel that comes without blobs +# URL: http://linux-libre.fsfla.org +# Maintainer: Silvino, silvino at bk dot ru +# Depends on: dracut grub2 grub2-efi + +name=linux-gnu +version=4.9.111 +release=12 +source=(https://linux-libre.fsfla.org/pub/linux-libre/releases/$version-gnu/linux-libre-$version-gnu.tar.xz \ + cpu_optimizations.patch \ + config-crux) + +build() { + + cd linux-$version + + patch -p1 < $SRC/cpu_optimizations.patch + + make distclean + + cp $SRC/config-crux .config + + make olddefconfig + # make nconfig + # make localmodconfig + + # make LOCALVERSION= all + make LOCALVERSION= bzImage modules + make INSTALL_MOD_PATH=$PKG modules_install + + install -m 0644 -D arch/x86_64/boot/bzImage $PKG/boot/vmlinuz-$version-gnu + install -m 0644 System.map $PKG/boot/System.map-$version-gnu + install -m 0644 .config $PKG/boot/config-$version-gnu + install -m 0644 -D .config $PKG/usr/src/config-${version}-gnu + install -m 0644 $SRC/cpu_optimizations.patch $PKG/usr/src/cpu_optimizations-${version}.patch + + rm ${PKG}/lib/modules/${version}-gnu/source + rm ${PKG}/lib/modules/${version}-gnu/build + + ln -s /usr/src/linux-${version} $PKG/lib/modules/${version}-gnu/source + ln -s /usr/src/linux-${version} $PKG/lib/modules/${version}-gnu/build +} |