about summary refs log tree commit diff stats
path: root/core/ports/linux-libre/Pkgfile
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-03-08 18:23:50 +0000
committerSilvino Silva <silvino@bk.ru>2018-03-08 18:23:50 +0000
commit0583a720dc23686c65245b06269a209a936d44c3 (patch)
treede96c91696966f048d83a2b4f3445f4d3f4897db /core/ports/linux-libre/Pkgfile
parentd2a0dfc5173d2a28dab2dde89280c154755f876c (diff)
downloaddoc-0583a720dc23686c65245b06269a209a936d44c3.tar.gz
core linux-gnu port updated
Diffstat (limited to 'core/ports/linux-libre/Pkgfile')
-rw-r--r--core/ports/linux-libre/Pkgfile67
1 files changed, 0 insertions, 67 deletions
diff --git a/core/ports/linux-libre/Pkgfile b/core/ports/linux-libre/Pkgfile
deleted file mode 100644
index e7f824d..0000000
--- a/core/ports/linux-libre/Pkgfile
+++ /dev/null
@@ -1,67 +0,0 @@
-# Description:  Linux libre kernel that comes without blobs
-# URL:          http://linux-libre.fsfla.org
-# Maintainer:   Silvino, silvino at bk dot ru
-# Depends on:   grub2 dracut
-
-name=linux-libre
-version=4.9.12
-release=1
-source=(http://linux-libre.fsfla.org/pub/linux-libre/releases/$version-gnu/$name-$version-gnu.tar.xz \
-    https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v4.9%2B_kernel_v3.15%2B.patch \
-    http://grsecurity.net/test/grsecurity-3.1-4.9.12-201702231830.patch \
-    port-libre-grsecurity.patch \
-    port-libre-cpu.patch \
-    port-libre-make.patch \
-    config-c9)
-
-build() {
-
-    mkdir -p $PKG/usr/src
-
-    # /usr/src/version-libre-config
-
-    # /usr/src/version-cpu_optimizations.patch
-    install -m 0644  $SRC/enable_additional_cpu_optimizations_for_gcc_v4.9%2B_kernel_v3.15%2B.patch $PKG/usr/src/${version}-cpu_optimizations.patch
-
-    # /usr/src/grsecurity-version.patch
-    install -m 0644  $SRC/grsecurity-3.1-4.9.12-201702231830.patch $PKG/usr/src/
-    install -m 0644  $SRC/port-libre-grsecurity.patch $PKG/usr/src/
-    install -m 0644  $SRC/port-libre-cpu.patch $PKG/usr/src/
-    install -m 0644  $SRC/port-libre-make.patch $PKG/usr/src/
-
-    patch < port-libre-grsecurity.patch
-    patch < port-libre-cpu.patch
-
-    # fix to build under tpe
-    chmod -R go-w linux-$version
-
-    cd linux-$version
-
-    patch < ${SRC}/port-libre-make.patch
-
-    make distclean
-
-    patch -p1 < $SRC/grsecurity-3.1-4.9.12-201702231830.patch
-    patch -p1 < $SRC/enable_additional_cpu_optimizations_for_gcc_v4.9%2B_kernel_v3.15%2B.patch
-
-    cp $SRC/config-c9 .config
-
-    make silentoldconfig
-    # make nconfig
-    # make localmodconfig
-
-    install -m 0644  .config $PKG/usr/src/${version}-libre-config
-
-    make LOCALVERSION= bzImage modules
-    make INSTALL_MOD_PATH=$PKG modules_install
-
-    install -m 0644 -D arch/x86_64/boot/bzImage $PKG/boot/vmlinuz-$version-grsec
-    install -m 0644  System.map $PKG/boot/System.map-$version-grsec
-    install -m 0644 .config $PKG/boot/config-$version-grsec
-
-    rm ${PKG}/lib/modules/${version}-grsec/source
-    rm ${PKG}/lib/modules/${version}-grsec/build
-
-    ln -s /usr/src/linux-${version} $PKG/lib/modules/${version}-grsec/source
-    ln -s /usr/src/linux-${version} $PKG/lib/modules/${version}-grsec/build
-}