mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: SeaBIOS: Remove pre-generated code.
* gnu/packages/firmware.scm (seabios)[source](modules, snippet): New fields. [native-inputs]: Add ACPICA. [arguments]: Add build-iasl phase.
This commit is contained in:
parent
6ea7d25396
commit
16f2cc5a8f
1 changed files with 13 additions and 2 deletions
|
@ -411,9 +411,14 @@ (define-public seabios
|
|||
(commit (string-append "rel-" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0gph1hf70jjpx55qc0lzx2yghkipg9dnsin07i4jajk0p1jpd2d0"))))
|
||||
(base32 "0gph1hf70jjpx55qc0lzx2yghkipg9dnsin07i4jajk0p1jpd2d0"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
#~(begin
|
||||
;; Delete IASL-generated files.
|
||||
(for-each delete-file (find-files "." "\\.hex$"))))))
|
||||
(build-system gnu-build-system)
|
||||
(native-inputs (list python-wrapper))
|
||||
(native-inputs (list acpica python-wrapper))
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ;no tests
|
||||
|
@ -433,6 +438,12 @@ (define-public seabios
|
|||
(lambda (port)
|
||||
(format port #$(package-version this-package))))
|
||||
(setenv "CC" "gcc")))
|
||||
(add-before 'build 'build-description-tables
|
||||
(lambda _
|
||||
;; Regenerate the ACPI description tables.
|
||||
(invoke "make" "iasl")
|
||||
;; Clear temporary files added by the iasl target.
|
||||
(invoke "make" "clean")))
|
||||
(add-after 'build 'build-vgabios
|
||||
(lambda* (#:key (make-flags #~'()) #:allow-other-keys)
|
||||
(for-each
|
||||
|
|
Loading…
Reference in a new issue