mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ath9k-htc-firmware: Build with binutils@2.33.1.
* gnu/packages/base.scm (binutils-2.33): New public variable. * gnu/packages/cross-base.scm (cross-binutils): Add optional BINUTILS argument. * gnu/packages/firmware.scm (ath9k-htc-firmware)[native-inputs]: Build the xtensa-elf toolchain with BINUTILS-2.33.
This commit is contained in:
parent
3e3a37b2bc
commit
a493a52646
3 changed files with 29 additions and 5 deletions
|
@ -466,6 +466,25 @@ included.")
|
||||||
((#:make-flags _ ''()) ''())))
|
((#:make-flags _ ''()) ''())))
|
||||||
(properties '())))
|
(properties '())))
|
||||||
|
|
||||||
|
;; FIXME: ath9k-firmware-htc-binutils.patch do not apply on 2.34 because of a
|
||||||
|
;; big refactoring of xtensa-modules.c (commit 567607c11fbf7105 upstream).
|
||||||
|
;; Keep this version around until the patch is updated.
|
||||||
|
(define-public binutils-2.33
|
||||||
|
(package/inherit
|
||||||
|
binutils
|
||||||
|
(version "2.33.1")
|
||||||
|
(source (origin
|
||||||
|
(inherit (package-source binutils))
|
||||||
|
(uri (string-append "mirror://gnu/binutils/binutils-"
|
||||||
|
version ".tar.bz2"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1cmd0riv37bqy9mwbg6n3523qgr8b3bbm5kwj19sjrasl4yq9d0c"))))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments binutils)
|
||||||
|
((#:make-flags _ ''()) ''())))
|
||||||
|
(properties '())))
|
||||||
|
|
||||||
(define-public binutils-gold
|
(define-public binutils-gold
|
||||||
(package
|
(package
|
||||||
(inherit binutils)
|
(inherit binutils)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
;;; Copyright © 2016, 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
;;; Copyright © 2016, 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
|
;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
|
||||||
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;; Copyright © 2019 Carl Dong <contact@carldong.me>
|
;;; Copyright © 2019 Carl Dong <contact@carldong.me>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -79,8 +79,8 @@
|
||||||
(source (origin (inherit (package-source original))
|
(source (origin (inherit (package-source original))
|
||||||
(patches (list patch))))))
|
(patches (list patch))))))
|
||||||
|
|
||||||
(define (cross-binutils target)
|
(define* (cross-binutils target #:optional (binutils binutils))
|
||||||
"Return a cross-Binutils for TARGET."
|
"Return a cross-Binutils for TARGET using BINUTILS."
|
||||||
(let ((binutils (package (inherit binutils)
|
(let ((binutils (package (inherit binutils)
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments
|
(substitute-keyword-arguments (package-arguments
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
|
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
|
||||||
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
|
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -32,6 +33,7 @@
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages admin)
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages assembly)
|
#:use-module (gnu packages assembly)
|
||||||
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages bison)
|
#:use-module (gnu packages bison)
|
||||||
#:use-module (gnu packages cmake)
|
#:use-module (gnu packages cmake)
|
||||||
#:use-module (gnu packages cross-base)
|
#:use-module (gnu packages cross-base)
|
||||||
|
@ -83,8 +85,11 @@
|
||||||
|
|
||||||
;; The firmware is cross-compiled using a "bare bones" compiler (no libc.)
|
;; The firmware is cross-compiled using a "bare bones" compiler (no libc.)
|
||||||
;; Use our own tool chain for that.
|
;; Use our own tool chain for that.
|
||||||
(native-inputs `(("cross-gcc" ,(cross-gcc "xtensa-elf"))
|
(native-inputs `(("cross-gcc" ,(cross-gcc
|
||||||
("cross-binutils" ,(cross-binutils "xtensa-elf"))
|
"xtensa-elf"
|
||||||
|
#:xbinutils (cross-binutils "xtensa-elf"
|
||||||
|
binutils-2.33)))
|
||||||
|
("cross-binutils" ,(cross-binutils "xtensa-elf" binutils-2.33))
|
||||||
("cmake" ,cmake-minimal)
|
("cmake" ,cmake-minimal)
|
||||||
("perl" ,perl)))
|
("perl" ,perl)))
|
||||||
(home-page "http://wireless.kernel.org/en/users/Drivers/ath9k_htc")
|
(home-page "http://wireless.kernel.org/en/users/Drivers/ath9k_htc")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue