wip
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
{ 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.stdenv.system == "aarch64-linux" then pkgs else pkgsCross.aarch64-multiplatform;
|
||||
in (buildPkgs.buildUBoot rec {
|
||||
src = fetchFromGitHub {
|
||||
# tracking branch: https://github.com/AsahiLinux/u-boot/tree/releng/installer-release
|
||||
# tracking: https://github.com/AsahiLinux/PKGBUILDs/blob/stable/uboot-asahi/PKGBUILD
|
||||
owner = "AsahiLinux";
|
||||
repo = "u-boot";
|
||||
rev = "300817d324f73c30c998a10435d5d830b58df894";
|
||||
hash = "sha256-6q4l1gHAlaGM7ktlCBmehb/ZNvmpt1eah6tTdsQJfxM=";
|
||||
rev = "asahi-v2022.10-1";
|
||||
hash = "sha256-/dtTJ+GxC2GFlqduAa2WWPGwktLjM7tUKus6/aUyPNQ=";
|
||||
};
|
||||
version = "unstable-2022-07-11";
|
||||
version = "2022.10.asahi1-1";
|
||||
|
||||
defconfig = "apple_m1_defconfig";
|
||||
extraMeta.platforms = [ "aarch64-linux" ];
|
||||
@@ -32,4 +37,4 @@
|
||||
cat ${m1n1}/build/m1n1.macho arch/arm/dts/t[68]*.dtb u-boot-nodtb.bin.gz > m1n1-u-boot.macho
|
||||
cat ${m1n1}/build/m1n1.bin arch/arm/dts/t[68]*.dtb u-boot-nodtb.bin.gz > m1n1-u-boot.bin
|
||||
'';
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user