From 34724f221eedda583e063154799531ea80fb0c3d Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 8 May 2022 01:31:06 -0700 Subject: [PATCH] ubootQemuRiscv64Smode: Fix build with binutils 2.38 --- pkgs/misc/uboot/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index d6e5e8a7bcb..fc874e3d3a8 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -362,6 +362,13 @@ in { ubootQemuRiscv64Smode = buildUBoot { defconfig = "qemu-riscv64_smode_defconfig"; + extraPatches = [ + # https://patchwork.ozlabs.org/project/uboot/patch/20220128134713.2322800-1-alexandre.ghiti@canonical.com/ + (fetchpatch { + url = "https://patchwork.ozlabs.org/series/283391/mbox/"; + sha256 = "sha256-V0jDpx6O4bFzuaOQejdrRnLiWb5LBTx47T0TZqNtMXk="; + }) + ]; extraMeta.platforms = ["riscv64-linux"]; filesToInstall = ["u-boot.bin"]; };