gnu: edk2-tools: Enable submodules.

* gnu/packages/firmware.scm (edk2-tools)[source]: Checkout submodules.
[arguments]: Don't disable building brotli or xz compression.

Change-Id: I8b318373e38767e1a309e9e385f1626429bfbb20
This commit is contained in:
Efraim Flashner 2024-04-28 18:52:36 +03:00
parent 16e52098d1
commit e6eadcb136
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -833,11 +833,13 @@ after an operating system boots.")
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/tianocore/edk2") (url "https://github.com/tianocore/edk2")
(commit (string-append "edk2-stable" version)))) (commit (string-append "edk2-stable" version))
;; EDK2 makes extensive use of submodules.
(recursive? #t)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1x0h89cz3ihihcp4n93bw708q9r3icprb8cjsrrfcgq10clavdzx")))) "0y7jfpijgi099znhzjklnsczn0k0vm1d1qznq9x2a2sa0glydsin"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:make-flags (list #:make-flags
@ -849,15 +851,6 @@ after an operating system boots.")
(add-after 'unpack 'change-directory (add-after 'unpack 'change-directory
(lambda _ (lambda _
(chdir "BaseTools"))) (chdir "BaseTools")))
(add-after 'change-directory 'disable-some-tools
(lambda _
;; Disable building brotli and xz, since we package them
;; separately, and it would require fetching submodules.
(substitute* "Source/C/GNUmakefile"
(("^[[:blank:]]+BrotliCompress[[:blank:]]+\\\\")
"\\")
(("^[[:blank:]]+LzmaCompress[[:blank:]]+\\\\")
"\\"))))
(replace 'build (replace 'build
(lambda* (#:key (make-flags #~'()) #:allow-other-keys) (lambda* (#:key (make-flags #~'()) #:allow-other-keys)
;; The default build target also runs tests. ;; The default build target also runs tests.