gnu: efibootmgr: Fix cross compiling.
Fixes <https://issues.guix.gnu.org/55373>. * gnu/packages/linux.scm (efibootmgr)[arguments]: When cross-compiling add make-flags to find and use the correct binaries and libraries.
This commit is contained in:
parent
c54087a853
commit
00838bd41c
1 changed files with 16 additions and 8 deletions
|
@ -6805,14 +6805,22 @@ interface to the variable facility of UEFI boot firmware.")
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:tests? #f ;no tests
|
#:tests? #f ;no tests
|
||||||
#:make-flags #~(list (string-append "prefix=" #$output)
|
#:make-flags
|
||||||
(string-append "libdir=" #$output "/lib")
|
#~(append (list (string-append "prefix=" #$output)
|
||||||
;; EFIDIR denotes a subdirectory relative to the
|
(string-append "libdir=" #$output "/lib")
|
||||||
;; EFI System Partition where the loader will be
|
;; EFIDIR denotes a subdirectory relative to the
|
||||||
;; installed (known as OS_VENDOR in the code).
|
;; EFI System Partition where the loader will be
|
||||||
;; GRUB overrides this, as such it's only used if
|
;; installed (known as OS_VENDOR in the code).
|
||||||
;; nothing else is specified on the command line.
|
;; GRUB overrides this, as such it's only used if
|
||||||
"EFIDIR=gnu")
|
;; nothing else is specified on the command line.
|
||||||
|
"EFIDIR=gnu")
|
||||||
|
#$(if (%current-target-system)
|
||||||
|
#~(list
|
||||||
|
(string-append "CC=" #$(cc-for-target))
|
||||||
|
(string-append "PKG_CONFIG=" #$(pkg-config-for-target))
|
||||||
|
(string-append "EXTRAINCDIRS="
|
||||||
|
#$(this-package-input "efivar") "/include"))
|
||||||
|
#~'()))
|
||||||
#:phases #~(modify-phases %standard-phases (delete 'configure))))
|
#:phases #~(modify-phases %standard-phases (delete 'configure))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config))
|
(list pkg-config))
|
||||||
|
|
Reference in a new issue