gnu: u-boot-ts7970-q-2g-1000mhz-c: Fix build.

* gnu/packages/bootloaders.scm (u-boot-ts-mx6) [arguments]: Replace
adjust-for-gcc10 phase with adjust-for-current-gcc.
This commit is contained in:
Maxim Cournoyer 2023-07-07 13:35:18 -04:00
parent 55d5771ff0
commit 14888e5b25
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -17,7 +17,7 @@
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
;;; Copyright © 2021 Stefan <stefan-guix@vodafonemail.de>
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -1484,10 +1484,13 @@ (define u-boot-ts-mx6
"U_BOOT_DATE \"Jan 01 1969\"")
(("U_BOOT_TIME \"%T\"")
"U_BOOT_TIME \"00:00:00\""))))
(add-before 'build 'adjust-for-gcc10
(add-before 'build 'adjust-for-current-gcc
(lambda _
(copy-file "include/linux/compiler-gcc6.h"
"include/linux/compiler-gcc10.h")
(let ((gcc-major-version #$(version-major
(package-version gcc))))
(copy-file "include/linux/compiler-gcc6.h"
(string-append "include/linux/compiler-gcc"
gcc-major-version ".h")))
(substitute* "arch/arm/Makefile"
(("march=armv5")
"march=armv5te"))))