77 lines
2.4 KiB
Scheme
77 lines
2.4 KiB
Scheme
(define-module (oerv packages rvck)
|
|
#:use-module (guix git)
|
|
#:use-module (gnu packages)
|
|
#:use-module (gnu packages linux)
|
|
#:use-module (gnu packages cpio)
|
|
#:use-module (guix git-download)
|
|
#:use-module (guix packages)
|
|
#:use-module (guix gexp)
|
|
#:use-module (guix utils)
|
|
#:export (make-linux-rvck))
|
|
|
|
(define make-linux-libre* (@@ (gnu packages linux) make-linux-libre*))
|
|
|
|
(define* (make-linux-rvck
|
|
#:key
|
|
(version "6.6.101")
|
|
(commit
|
|
(getenv "RVCK_COMMIT"))
|
|
(hash #f)
|
|
(name "linux-rvck")
|
|
(defconfig "defconfig")
|
|
(branch (if hash
|
|
#f
|
|
(or (getenv "RVCK_BRANCH")
|
|
(begin
|
|
(display "RVCK_BRANCH is missing! use rvck-6.6\n")
|
|
"rvck-6.6"))))
|
|
(url "https://github.com/rvck-project/rvck"))
|
|
(let* ((commit (or commit
|
|
(error "RVCK_COMMIT is missing!")))
|
|
(gversion (git-version version "0" commit))
|
|
(base
|
|
(make-linux-libre*
|
|
gversion
|
|
"rvck"
|
|
(if hash
|
|
|
|
(origin
|
|
(method git-fetch)
|
|
(uri (git-reference
|
|
(url url)
|
|
(commit commit)))
|
|
(file-name (url+commit->name url commit))
|
|
(sha256
|
|
(base32 hash)))
|
|
|
|
(git-checkout
|
|
(url url)
|
|
(branch branch)
|
|
(commit commit)))
|
|
(list "riscv64-linux")
|
|
#:defconfig defconfig
|
|
#:extra-options
|
|
`(("CONFIG_DRM_POWERVR_ROGUE". #f)
|
|
("CONFIG_SECURITY_LOCKDOWN_LSM" . #f)
|
|
("CONFIG_MODULE_SIG" . #f)))))
|
|
(package
|
|
(inherit base)
|
|
(name name)
|
|
(native-inputs
|
|
(modify-inputs (package-native-inputs base)
|
|
(append cpio))))))
|
|
|
|
(define-public linux-rvck
|
|
(make-linux-rvck
|
|
#:commit "b2214529735a61b93960f43e4235706329cdbe09"
|
|
#:hash "061nq1cnm31zdmqd269ic4w5bvhy6gs61gi1303k579kd4hfirlr"))
|
|
|
|
(define-public linux-rvck-olk
|
|
(make-linux-rvck
|
|
#:name "linux-rvck-olk"
|
|
#:defconfig "openeuler_defconfig"
|
|
#:commit "15dc5133182c248a56684ad5b3164617ad734fcd"
|
|
#:url "https://github.com/RVCK-Project/rvck-olk"
|
|
#:hash "0vrpfvwk5ddqdgsynq899f9q8x6wi45h2wjv97rjnnx95h9jrymk"))
|
|
linux-rvck
|