about summary refs log tree commit diff stats
path: root/core/ports/linux-gnu/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'core/ports/linux-gnu/Pkgfile')
-rw-r--r--core/ports/linux-gnu/Pkgfile25
1 files changed, 9 insertions, 16 deletions
diff --git a/core/ports/linux-gnu/Pkgfile b/core/ports/linux-gnu/Pkgfile
index efc201b..d96ee1b 100644
--- a/core/ports/linux-gnu/Pkgfile
+++ b/core/ports/linux-gnu/Pkgfile
@@ -1,45 +1,38 @@
-# Description:  Linux libre kernel that comes without blobs
+# 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.86
-release=3
+release=8
 source=(http://linux-libre.fsfla.org/pub/linux-libre/releases/$version-gnu/linux-libre-$version-gnu.tar.xz \
     cpu_optimizations.patch \
-    port-cpu.patch \
     config-crux)
 
 build() {
 
-    mkdir -p $PKG/usr/src
-
-    # /usr/src/version-cpu_optimizations.patch
-    install -m 0644  $SRC/cpu_optimizations.patch $PKG/usr/src/${version}-cpu_optimizations.patch
-
     cd linux-$version
 
-    make distclean
-
     patch -p1 < $SRC/cpu_optimizations.patch
 
+    make distclean
+
     cp $SRC/config-crux .config
 
-    make silentoldconfig
+    make olddefconfig
     # make nconfig
     # make localmodconfig
 
-    make prepare
-
-    #make LOCALVERSION= bzImage modules
-    make LOCALVERSION= all
+    # 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 .config $PKG/usr/src/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