Skip to content

Commit

Permalink
fix cross logic when building u-boot (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpwrules committed Sep 21, 2022
1 parent 9311ef9 commit 523ec0b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nix/m1-support/u-boot/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{ lib
, fetchFromGitHub
, pkgs
, pkgsCross
, m1n1
}: (pkgsCross.aarch64-multiplatform.buildUBoot rec {
}: let
# u-boot's buildInputs get a different hash and don't build right if we try to
# cross-build for aarch64 on itself for whatever reason
buildPkgs = if pkgs.system == "aarch64-linux" then pkgs else pkgsCross.aarch64-multiplatform;
in (buildPkgs.buildUBoot rec {
src = fetchFromGitHub {
# tracking: https://github.com/AsahiLinux/PKGBUILDs/blob/main/uboot-asahi/PKGBUILD
owner = "AsahiLinux";
Expand Down

0 comments on commit 523ec0b

Please sign in to comment.