From 7ac8fe6e2aaa1e93db6d916fbadcfb40d6ecac73 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 23 May 2025 13:37:29 +0800 Subject: nongnu: corrupt-linux: Add nonguix_defconfig. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a follow-up to commit f9fedea132fc146c0ad692deb1f3d840acc4a967. * nongnu/packages/linux.scm (corrupt-linux) Use "nonguix_defconfig". [arguments]<#:phases>: In ‘nonguix-configure’, save modified defconfig as "nonguix_defconfig". --- nongnu/packages/linux.scm | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'nongnu/packages/linux.scm') diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm index a6c3944..e23f824 100644 --- a/nongnu/packages/linux.scm +++ b/nongnu/packages/linux.scm @@ -104,7 +104,7 @@ some freedo package or an output of package-version procedure." #:key (name "linux") (configs "") - (defconfig #f) + (defconfig "nonguix_defconfig") (get-extra-configs nonguix-extra-linux-options)) ;; TODO: This very directly depends on guix internals. @@ -152,16 +152,14 @@ some freedo package or an output of package-version procedure." ;; ‘customize-linux’. (add-before 'configure 'nonguix-configure (lambda _ - (unless #$defconfig - (let ((guix_defconfig - (format #f "arch/~a/configs/guix_defconfig" - #$(linux-srcarch)))) - (invoke "make" "defconfig") - (modify-defconfig - ".config" - '#$(get-extra-configs (package-version this-package))) - (invoke "make" "savedefconfig") - (rename-file "defconfig" guix_defconfig))))))))) + (let ((defconfig + (format #f "arch/~a/configs/nonguix_defconfig" + #$(linux-srcarch)))) + (invoke "make" "defconfig") + (modify-defconfig + ".config" '#$(get-extra-configs this-package)) + (invoke "make" "savedefconfig") + (rename-file "defconfig" defconfig)))))))) (home-page "https://www.kernel.org/") (synopsis "Linux kernel with nonfree binary blobs included") (description -- cgit v1.2.3