unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean-Pierre De Jesus DIAZ via Guix-patches via <guix-patches@gnu.org>
To: 69476@debbugs.gnu.org
Cc: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>,
	Efraim Flashner <efraim@flashner.co.il>,
	Vagrant Cascadian <vagrant@debian.org>
Subject: [bug#69476] [PATCH 0/8] guix: Add xtensa-ath9k-elf platform.
Date: Thu, 29 Feb 2024 16:19:17 +0100	[thread overview]
Message-ID: <cover.1709219325.git.jean@foundationdevices.com> (raw)

Hello,

As the ath9k-htc-firmware package requires a custom toolchain to build
the firmware I thought it was best to have a target for this specific
package as it modifies the default configuration of the Xtensa target in
GCC.

To work around this a new target is added: xtensa-ath9k-elf.

It uses binutils@2.33 and the patched version of GCC to properly compile
the firmware. So, as a result it allows using #:target keyword parameter
to cross-compile the firmware and avoids explicitly adding the cross
compiler in the NATIVE-INPUTS field.

As a result the ath9k-htc-firmware package was splitted into two and
uses the cmake-build-sytem now to use Guix's cross-compilation support
properly, so it removes the need for the ath9k-htc-firmware-objcopy.patch.

The [PATCH 7/8] contains a patch that was already sent to:

https://issues.guix.gnu.org/68366

I don't have the hardware to test this firmware but the build produces
the same hashes for the firmware so it's safe to say that the firmware
should keep working.

The hashes with this patch series:

a5481cc67d962b217de1300121a6c7584e847cbe215442553d24a2173ca9202e  /gnu/store/0i3zw28pvrr8l85fx79i8lq0f9vmgyjz-ath9k-htc-ar9271-firmware-1.4.0/lib/firmware/htc_9271.fw
eef84c16e3edad3fdec19c985d190b5ed3f5bd5bae20be5579681ab35f001406  /gnu/store/iqbd77grzy4sngkxz9lgyvk52apn8vzj-ath9k-htc-ar7010-firmware-1.4.0/lib/firmware/htc_7010.fw

And the hashes in master at commit 75bad75367fcf2c289fae3b40dbcc850f92177be:

a5481cc67d962b217de1300121a6c7584e847cbe215442553d24a2173ca9202e  /gnu/store/0m45gn74b5bavxq77158i3l593lh082r-ath9k-htc-firmware-1.4.0/lib/firmware/htc_9271.fw
eef84c16e3edad3fdec19c985d190b5ed3f5bd5bae20be5579681ab35f001406  /gnu/store/0m45gn74b5bavxq77158i3l593lh082r-ath9k-htc-firmware-1.4.0/lib/firmware/htc_7010.fw

Jean-Pierre De Jesus DIAZ (8):
  doc: Add documentation for x86_64-linux-gnux32.
  guix: Add xtensa-ath9k-elf platform.
  gnu: ath9k-htc-firmware: Remove binary blobs.
  gnu: ath9k-htc-firmware: Allow using other targets.
  gnu: ath9k-htc-firmware: Use xtensa-ath9k-elf.
  gnu: cross-binutils: Use binutils-2.33 for ath9k.
  guix: cmake-build-system: Handle unknown systems.
  gnu: ath9k-htc-firmware: Split package.

 Makefile.am                                   |  1 +
 doc/guix.texi                                 | 12 +++
 gnu/local.mk                                  |  1 -
 gnu/packages/cross-base.scm                   | 17 +++-
 gnu/packages/firmware.scm                     | 88 +++++++++----------
 .../patches/ath9k-htc-firmware-objcopy.patch  | 14 ---
 gnu/system.scm                                |  3 +-
 guix/build/cmake-build-system.scm             | 10 ++-
 guix/platforms/xtensa.scm                     | 28 ++++++
 9 files changed, 105 insertions(+), 69 deletions(-)
 delete mode 100644 gnu/packages/patches/ath9k-htc-firmware-objcopy.patch
 create mode 100644 guix/platforms/xtensa.scm


base-commit: 75bad75367fcf2c289fae3b40dbcc850f92177be
-- 
2.41.0





             reply	other threads:[~2024-02-29 15:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-29 15:19 Jean-Pierre De Jesus DIAZ via Guix-patches via [this message]
2024-02-29 15:20 ` [bug#69476] [PATCH 1/8] doc: Add documentation for x86_64-linux-gnux32 Jean-Pierre De Jesus DIAZ via Guix-patches via
2024-02-29 15:20 ` [bug#69476] [PATCH 2/8] guix: Add xtensa-ath9k-elf platform Jean-Pierre De Jesus DIAZ via Guix-patches via
2024-02-29 15:20 ` [bug#69476] [PATCH 3/8] gnu: ath9k-htc-firmware: Remove binary blobs Jean-Pierre De Jesus DIAZ via Guix-patches via
2024-02-29 15:20 ` [bug#69476] [PATCH 4/8] gnu: ath9k-htc-firmware: Allow using other targets Jean-Pierre De Jesus DIAZ via Guix-patches via
2024-02-29 15:20 ` [bug#69476] [PATCH 5/8] gnu: ath9k-htc-firmware: Use xtensa-ath9k-elf Jean-Pierre De Jesus DIAZ via Guix-patches via
2024-02-29 15:20 ` [bug#69476] [PATCH 6/8] gnu: cross-binutils: Use binutils-2.33 for ath9k Jean-Pierre De Jesus DIAZ via Guix-patches via
2024-02-29 15:20 ` [bug#69476] [PATCH 7/8] guix: cmake-build-system: Handle unknown systems Jean-Pierre De Jesus DIAZ via Guix-patches via
2024-04-17  9:54   ` Ludovic Courtès
2024-04-17 14:00     ` Jean-Pierre De Jesus Diaz
2024-02-29 15:20 ` [bug#69476] [PATCH 8/8] gnu: ath9k-htc-firmware: Split package Jean-Pierre De Jesus DIAZ via Guix-patches via
2024-03-26  6:17 ` [bug#69476] [PATCH 0/8] guix: Add xtensa-ath9k-elf platform Vagrant Cascadian
2024-04-17  9:22 ` bug#69476: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1709219325.git.jean@foundationdevices.com \
    --to=guix-patches@gnu.org \
    --cc=69476@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=jean@foundationdevices.com \
    --cc=vagrant@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).