init
This commit is contained in:
68
modules/oerv/packages/rvck.scm
Normal file
68
modules/oerv/packages/rvck.scm
Normal file
@@ -0,0 +1,68 @@
|
||||
(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)
|
||||
(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))
|
||||
(pname "linux-rvck")
|
||||
(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 pname)
|
||||
(native-inputs
|
||||
(modify-inputs (package-native-inputs base)
|
||||
(append cpio))))))
|
||||
|
||||
(define-public linux-rvck
|
||||
(make-linux-rvck
|
||||
#:commit "b2214529735a61b93960f43e4235706329cdbe09"
|
||||
#:hash "061nq1cnm31zdmqd269ic4w5bvhy6gs61gi1303k579kd4hfirlr"))
|
||||
|
||||
linux-rvck
|
||||
Reference in New Issue
Block a user