From 81cd1c580c30974568e5cf8e5ce39f22cad53268 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Fri, 3 Sep 2021 19:17:39 +0200 Subject: gnu: 0xffff: Prepare for cross-compilation. * gnu/packages/flashing-tools.scm (0xffff)[arguments]: Use CC-FOR-TARGET for cross compilation. --- gnu/packages/flashing-tools.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index 371bbb7ccb..32c17b5ddd 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2016, 2019 Efraim Flashner ;;; Copyright © 2017 Jonathan Brielmaier ;;; Copyright © 2017 Julien Lepiller -;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice +;;; Copyright © 2018–2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 Ricardo Wurmus ;;; ;;; This file is part of GNU Guix. @@ -29,6 +29,7 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) + #:use-module (guix utils) #:use-module (gnu packages) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) @@ -111,13 +112,16 @@ programmer devices.") (base32 "0rl1xzbxl991pm2is98zbryac1lgjrc3zphmbd8agv07av0r6r6n")))) (build-system gnu-build-system) (inputs - `(("libusb" ,libusb-0.1))) ; doesn't work with libusb-compat + ;; Building with libusb-compat will succeed but the result will be broken. + ;; See . + `(("libusb" ,libusb-0.1))) (arguments - '(#:phases + `(#:phases (modify-phases %standard-phases (delete 'configure)) ; no configure #:make-flags - (list "CC=gcc" + (list (string-append "CC=" ,(cc-for-target)) + "HOST_CC=gcc" "BUILD_DATE=GNU Guix" (string-append "PREFIX=" %output)) #:tests? #f)) ; no 'check' target -- cgit 1.4.1