-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.rkt
28 lines (22 loc) · 916 Bytes
/
params.rkt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#lang racket
;;;; Configuration and runtime parameters
;; FIXME: %kpefix%:
;; calculate the infix "-ghost-" from $KNAME in /etc/genkernel.conf
(provide %indent% %kname% %kdbdir% %kprefixes% %modules% %modnames%
%supported-kpkg-prefixes%
stderr
)
(define stderr (current-error-port))
;;; Recognizing kernel names
(define %kname% "ghost")
(define kern-prefix (string-append "kernel-" %kname% "-x86_64-"))
(define vm-prefix "vmlinuz-" )
(define %kprefixes% (list vm-prefix kern-prefix))
(define %modules% '("loop" "zfs" "spl" "vboxnetadp"
"vboxnetflt" "vboxdrv" ))
(define %modnames% (map (lambda(s)(string-append s ".ko")) %modules%))
;;; Locating kernel package metadata
(define %kdbdir% "/var/db/repos/gentoo/metadata/md5-cache/sys-kernel")
(define %supported-kpkg-prefixes% '("gentoo-sources" "rt-sources"))
;;; Formattion output
(define %indent% " ")