summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormovo987 <me@movo987.0x0f.dev>2026-11-28 10:09:53 +0000
committermovo987 <me@movo987.0x0f.dev>2026-11-28 10:09:53 +0000
commitcd226ee119ba1d565cf94af97b865a0ee30e1247 (patch)
tree2fdcbd4637780a50f803f058f7294fdcbca01303
parentAdd linux-zako (diff)
Build with the Clang toolchain
* movo987/packages/linux.scm (%linux-zako-commit): Update to 2a0bbb9. (linux-zako)[arguments]: Set LLVM in the environment before 'configure', and LD_LIBRARY_PATH before 'build'. Signed-off-by: movo987 <me@movo987.0x0f.dev>
-rw-r--r--movo987/packages/linux.scm15
1 files changed, 13 insertions, 2 deletions
diff --git a/movo987/packages/linux.scm b/movo987/packages/linux.scm
index 775dd9b..0cb2738 100644
--- a/movo987/packages/linux.scm
+++ b/movo987/packages/linux.scm
@@ -15,7 +15,7 @@
(define %linux-zako-version "7.3.6")
(define %linux-zako-commit
- "b536efbd1506a9d3bae64779013f9cfff887109b")
+ "2a0bbb9f5911c9895dc18f811cd344faf78da84b")
(define %linux-zako-zen-patch
(origin
@@ -57,7 +57,7 @@
%linux-zako-commit))
(file-name "linux-zako-defconfig")
(sha256
- (base32 "1izkz16vkz19pfh16rghdadk6030q1d5rdry4qdi93z6vmhzzp8p"))))
+ (base32 "18ab9ynsmyyaaza2p1m09983pka8hf6cwqnn18nb5ym9v7r5l8gp"))))
(define %linux-zako-base
(customize-linux
@@ -76,6 +76,17 @@
(prepend clang lld llvm)))
(arguments
(substitute-keyword-arguments (package-arguments %linux-zako-base)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-before 'configure 'set-llvm
+ (lambda _ (setenv "LLVM" "1")))
+ (add-before 'build 'set-ld-library-path
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (let ((openssl (assoc-ref (or native-inputs inputs)
+ "openssl")))
+ (when openssl
+ (setenv "LD_LIBRARY_PATH"
+ (string-append openssl "/lib"))))))))
((#:make-flags make-flags '())
#~(list "LLVM=1"))))
(synopsis "Linux-libre kernel with Zen patches and BORE")