Github messages for voidlinux
 help / color / mirror / Atom feed
From: Piraty <Piraty@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] dkms: fix `make scripts` for crosscompiled kernels in kernel.d hook
Date: Sun, 31 May 2020 16:10:50 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22465@inbox.vuxu.org> (raw)

[-- 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"

             reply	other threads:[~2020-05-31 14:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-31 14:10 Piraty [this message]
2020-05-31 16:00 ` [PR PATCH] [Updated] " Piraty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22465@inbox.vuxu.org \
    --to=piraty@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).