diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2023-07-20 23:49:48 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-07-20 23:49:48 +0200 |
| commit | 0ab46ef3f9719f03d9b191a16e5aa91619e95451 (patch) | |
| tree | 96fdf7e351190997081eccededb7b5578d82e526 /gnu/packages | |
| parent | a4038c4f783b05040cfdb262d9f4c0119b612371 (diff) | |
gnu: bootloaders: Avoid top-level circular references.
Fixes <https://issues.guix.gnu.org/64745>.
The regression was introduced in
ed5dc3a25d858a394bb7db937a51d866c3cdc6ed: at the top level,
bootloaders.scm and firmware.scm would depend on each other, leading to
unbound variables when loaded, depending on the order in which they got
loaded.
* gnu/packages/bootloaders.scm (make-u-boot-sunxi64-package): Expect
'scp-firmware' to be a promise; force it in 'native-inputs'.
(u-boot-pine64-plus, u-boot-pine64-lts, u-boot-pinebook): Wrap the 3rd
argument to 'make-u-boot-sunxi64-package' into 'delay'.
Reported-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/bootloaders.scm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 30ef673f7dc..38eb1d104f1 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2021 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2013-2019, 2021, 2023 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2015, 2018 Mark H Weaver <mhw@netris.org> | 3 | ;;; Copyright © 2015, 2018 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; Copyright © 2015 Leo Famulari <leo@famulari.name> | 4 | ;;; Copyright © 2015 Leo Famulari <leo@famulari.name> |
| 5 | ;;; Copyright © 2016, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 5 | ;;; Copyright © 2016, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> |
| @@ -1051,22 +1051,22 @@ removed so that it fits within common partitioning schemes."))) | |||
| 1051 | (setenv "BL31" (search-input-file inputs "bl31.bin")))))))) | 1051 | (setenv "BL31" (search-input-file inputs "bl31.bin")))))))) |
| 1052 | (native-inputs | 1052 | (native-inputs |
| 1053 | (modify-inputs (package-native-inputs base) | 1053 | (modify-inputs (package-native-inputs base) |
| 1054 | (append scp-firmware))) | 1054 | (append (force scp-firmware)))) |
| 1055 | (inputs | 1055 | (inputs |
| 1056 | (modify-inputs (package-inputs base) | 1056 | (modify-inputs (package-inputs base) |
| 1057 | (append arm-trusted-firmware-sun50i-a64)))))) | 1057 | (append arm-trusted-firmware-sun50i-a64)))))) |
| 1058 | 1058 | ||
| 1059 | (define-public u-boot-pine64-plus | 1059 | (define-public u-boot-pine64-plus |
| 1060 | (make-u-boot-sunxi64-package "pine64_plus" "aarch64-linux-gnu" | 1060 | (make-u-boot-sunxi64-package "pine64_plus" "aarch64-linux-gnu" |
| 1061 | crust-pine64-plus)) | 1061 | (delay crust-pine64-plus))) |
| 1062 | 1062 | ||
| 1063 | (define-public u-boot-pine64-lts | 1063 | (define-public u-boot-pine64-lts |
| 1064 | (make-u-boot-sunxi64-package "pine64-lts" "aarch64-linux-gnu" | 1064 | (make-u-boot-sunxi64-package "pine64-lts" "aarch64-linux-gnu" |
| 1065 | crust-pine64-plus)) | 1065 | (delay crust-pine64-plus))) |
| 1066 | 1066 | ||
| 1067 | (define-public u-boot-pinebook | 1067 | (define-public u-boot-pinebook |
| 1068 | (make-u-boot-sunxi64-package | 1068 | (make-u-boot-sunxi64-package |
| 1069 | "pinebook" "aarch64-linux-gnu" crust-pinebook | 1069 | "pinebook" "aarch64-linux-gnu" (delay crust-pinebook) |
| 1070 | ;; Fix regression with LCD video output introduced in 2020.01 | 1070 | ;; Fix regression with LCD video output introduced in 2020.01 |
| 1071 | ;; https://patchwork.ozlabs.org/patch/1225130/ | 1071 | ;; https://patchwork.ozlabs.org/patch/1225130/ |
| 1072 | #:configs '("CONFIG_VIDEO_BPP32=y"))) | 1072 | #:configs '("CONFIG_VIDEO_BPP32=y"))) |
