Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] dkms: fix `make scripts` for crosscompiled kernels in kernel.d hook
@ 2020-05-31 14:10 Piraty
  2020-05-31 16:00 ` [PR PATCH] [Updated] " Piraty
  0 siblings, 1 reply; 2+ messages in thread
From: Piraty @ 2020-05-31 14:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

There is a new pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages dkms-yes
https://github.com/void-linux/void-packages/pull/22465

dkms: fix `make scripts` for crosscompiled kernels in kernel.d hook
* make use of all cores
* don't prompt during `make scripts`.

When building dkms for crosscompiled kernels, .config misses 'GCC_PLUGINS'
so `make scripts` prompts for it.

The same was applied already to xbps-triggers/dkms in
f609f7e76bcceef2d3db2e470ac60e548290e0fd

A patch file from https://github.com/void-linux/void-packages/pull/22465.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dkms-yes-22465.patch --]
[-- Type: text/x-diff, Size: 1549 bytes --]

From 78f9bf7dcb5961815bdb4c95005abcb927dcb19a Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sun, 31 May 2020 16:00:08 +0200
Subject: [PATCH] dkms: fix `make scripts` for crosscompiled kernels in
 kernel.d hook

* make use of all cores
* don't prompt during `make scripts`.

When building dkms for crosscompiled kernels, .config misses 'GCC_PLUGINS'
so `make scripts` prompts for it.

The same was applied already to xbps-triggers/dkms in
f609f7e76bcceef2d3db2e470ac60e548290e0fd
---
 srcpkgs/dkms/files/kernel.d/dkms.postinst | 2 +-
 srcpkgs/dkms/template                     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dkms/files/kernel.d/dkms.postinst b/srcpkgs/dkms/files/kernel.d/dkms.postinst
index 314f2454bda..bfeaf34fccf 100644
--- a/srcpkgs/dkms/files/kernel.d/dkms.postinst
+++ b/srcpkgs/dkms/files/kernel.d/dkms.postinst
@@ -20,7 +20,7 @@ fi
 export IGNORE_CC_MISMATCH=1
 
 if [ ! -f /lib/modules/${VERSION}/build/scripts/basic/fixdep ] ; then
-	make -C /lib/modules/${VERSION}/build scripts
+	yes "" | make -j $(nproc) -C /lib/modules/${VERSION}/build scripts
 fi
 
 # Check available DKMS modules
diff --git a/srcpkgs/dkms/template b/srcpkgs/dkms/template
index c8958a0d07d..6f6a9c3da30 100644
--- a/srcpkgs/dkms/template
+++ b/srcpkgs/dkms/template
@@ -1,7 +1,7 @@
 # Template file for 'dkms'
 pkgname=dkms
 version=2.8.1
-revision=1
+revision=2
 conf_files="/etc/dkms/framework.conf"
 depends="bash kmod gcc make coreutils linux-headers"
 short_desc="Dynamic Kernel Modules System"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Updated] dkms: fix `make scripts` for crosscompiled kernels in kernel.d hook
  2020-05-31 14:10 [PR PATCH] dkms: fix `make scripts` for crosscompiled kernels in kernel.d hook Piraty
@ 2020-05-31 16:00 ` Piraty
  0 siblings, 0 replies; 2+ messages in thread
From: Piraty @ 2020-05-31 16:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 634 bytes --]

There is an updated pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages dkms-yes
https://github.com/void-linux/void-packages/pull/22465

dkms: fix `make scripts` for crosscompiled kernels in kernel.d hook
* make use of all cores
* don't prompt during `make scripts`.

When building dkms for crosscompiled rpi kernels, .config misses 'GCC_PLUGINS'
so `make scripts` prompts for it.

The same was applied already to xbps-triggers/dkms in
f609f7e76bcceef2d3db2e470ac60e548290e0fd

A patch file from https://github.com/void-linux/void-packages/pull/22465.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dkms-yes-22465.patch --]
[-- Type: text/x-diff, Size: 1654 bytes --]

From a3f2cc28ba78f62859b45e742b96c6962936faad Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sun, 31 May 2020 16:00:08 +0200
Subject: [PATCH] dkms: fix `make scripts` for crosscompiled kernels in
 kernel.d hook

* make use of all cores
* don't prompt during `make scripts`.

It was found that when building dkms on rpi using crosscompiled kernels
(which is the default), .config misses 'GCC_PLUGINS' so `make scripts`
prompts for it during update.

The same was applied already to xbps-triggers/dkms in
6dc2654685035825cec6deb528270cb85be08ce9 f609f7e76bcceef2d3db2e470ac60e548290e0fd
---
 srcpkgs/dkms/files/kernel.d/dkms.postinst | 2 +-
 srcpkgs/dkms/template                     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/dkms/files/kernel.d/dkms.postinst b/srcpkgs/dkms/files/kernel.d/dkms.postinst
index 314f2454bda..bfeaf34fccf 100644
--- a/srcpkgs/dkms/files/kernel.d/dkms.postinst
+++ b/srcpkgs/dkms/files/kernel.d/dkms.postinst
@@ -20,7 +20,7 @@ fi
 export IGNORE_CC_MISMATCH=1
 
 if [ ! -f /lib/modules/${VERSION}/build/scripts/basic/fixdep ] ; then
-	make -C /lib/modules/${VERSION}/build scripts
+	yes "" | make -j $(nproc) -C /lib/modules/${VERSION}/build scripts
 fi
 
 # Check available DKMS modules
diff --git a/srcpkgs/dkms/template b/srcpkgs/dkms/template
index c8958a0d07d..6f6a9c3da30 100644
--- a/srcpkgs/dkms/template
+++ b/srcpkgs/dkms/template
@@ -1,7 +1,7 @@
 # Template file for 'dkms'
 pkgname=dkms
 version=2.8.1
-revision=1
+revision=2
 conf_files="/etc/dkms/framework.conf"
 depends="bash kmod gcc make coreutils linux-headers"
 short_desc="Dynamic Kernel Modules System"

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-31 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-31 14:10 [PR PATCH] dkms: fix `make scripts` for crosscompiled kernels in kernel.d hook Piraty
2020-05-31 16:00 ` [PR PATCH] [Updated] " Piraty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).