Subject: bug#60056: [PATCH RFC 6/6] gnu: u-boot: Fix cross-compilation by using gnu-build-system2.

From: Maxim Cournoyer <[email-masked]>
Date: Wed, 14 Dec 2022 22:23:28 -0500

* gnu/packages/bootloaders.scm (make-u-boot-package) [build-system]: Use
gnu-build-system2.
---
 gnu/packages/bootloaders.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 32625bb799..f4c1cb729c 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -69,6 +69,7 @@ (define-module (gnu packages bootloaders)
   #:use-module (gnu packages virtualization)
   #:use-module (gnu packages xorg)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system gnu2)
   #:use-module (guix build-system trivial)
   #:use-module (guix download)
   #:use-module (guix gexp)
@@ -811,18 +812,19 @@ (define*-public (make-u-boot-package board triplet
                `(("cross-gcc" ,(cross-gcc triplet))
                  ("cross-binutils" ,(cross-binutils triplet)))
                `())))
+      (build-system gnu-build-system2)
       (arguments
        (substitute-keyword-arguments (package-arguments u-boot)
          ((#:modules modules '())
           `((ice-9 ftw)
             (srfi srfi-1)
-            (guix build gnu-build-system)
+            (guix build gnu-build-system2)
             (guix build kconfig)
             (guix build utils)
             ,@modules))
          ((#:imported-modules imported-modules '())
           `((guix build kconfig)
-            ,@%gnu-build-system-modules
+            ,@%gnu-build-system-modules2
             ,@imported-modules))
          ((#:test-target _ "test")
           "test")
-- 
2.38.1