2022-03-07 14:26:15 +00:00
|
|
|
final: prev: let
|
|
|
|
platform =
|
|
|
|
final.lib.systems.examples.aarch64-multiplatform
|
|
|
|
// {
|
|
|
|
gcc = {arch = "armv8-a+crypto";};
|
|
|
|
};
|
2021-10-20 06:22:09 +00:00
|
|
|
arm64 = final.pkgsCross.aarch64-embedded;
|
|
|
|
arm = final.pkgsCross.arm-embedded;
|
2021-11-16 04:57:23 +00:00
|
|
|
uboot-hardkernel =
|
2022-03-07 14:26:15 +00:00
|
|
|
arm64.callPackage ./hardkernel.nix {arm-gcc49 = arm.buildPackages.gcc49;};
|
|
|
|
with-crypto = import final.path {crossSystem = platform;};
|
|
|
|
meson64-tools = with-crypto.buildPackages.callPackage ./meson64-tools.nix {};
|
|
|
|
blx_fix = arm64.buildPackages.callPackage ./blx_fix.nix {};
|
2021-10-20 06:22:09 +00:00
|
|
|
uboot = arm64.callPackage ./u-boot.nix {
|
|
|
|
inherit uboot-hardkernel meson64-tools blx_fix;
|
|
|
|
};
|
2021-11-16 04:57:23 +00:00
|
|
|
in {
|
2021-10-20 06:22:09 +00:00
|
|
|
uboot-hardkernel = uboot;
|
|
|
|
ubootTools-hardkernel = final.buildPackages.ubootTools;
|
2022-03-07 14:26:15 +00:00
|
|
|
buildPackages =
|
|
|
|
prev.buildPackages
|
|
|
|
// {
|
|
|
|
ubootTools-hardkernel = final.buildPackages.buildPackages.ubootTools;
|
|
|
|
};
|
2021-10-20 06:22:09 +00:00
|
|
|
}
|