From eff6d9628c9e0bae2096251f8e97789c0b9afe6f Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 15 Mar 2018 09:03:39 +0200 Subject: [PATCH] U-Boot: Add AArch64 QEMU build See https://github.com/u-boot/u-boot/blob/master/doc/README.qemu-arm on how to use it. (cherry picked from commit 6b069c656abf9704662317dc0173f18cdf4dfc91) --- pkgs/misc/uboot/default.nix | 6 ++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index dbb2bbef1a4e..b56ca2693570 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -158,6 +158,12 @@ in rec { filesToInstall = ["u-boot-sunxi-with-spl.bin"]; }; + ubootQemuAarch64 = buildUBoot rec { + defconfig = "qemu_arm64_defconfig"; + extraMeta.platforms = ["aarch64-linux"]; + filesToInstall = ["u-boot.bin"]; + }; + ubootQemuArm = buildUBoot rec { defconfig = "qemu_arm_defconfig"; extraMeta.platforms = ["armv7l-linux"]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b9f506263805..b61fac8435a2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13876,6 +13876,7 @@ with pkgs; ubootOdroidXU3 ubootOrangePiPc ubootPcduino3Nano + ubootQemuAarch64 ubootQemuArm ubootRaspberryPi ubootRaspberryPi2