mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 06:01:19 +00:00
rkbin: make passthru attributes use full paths, fix license, fix BL31_RK3568 path
This commit is contained in:
parent
0ebdaea977
commit
8502a2a6b5
@ -1,6 +1,7 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, rkbin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
@ -19,15 +20,16 @@ stdenv.mkDerivation {
|
||||
mv bin doc $out/
|
||||
'';
|
||||
|
||||
BL31_RK3568 = "bin/rk35/rk3568_ddr_1056MHz_v1.21.bin";
|
||||
ROCKCHIP_TPL_RK3568 = "bin/rk35/rk3568_ddr_1056MHz_v1.21.bin";
|
||||
|
||||
ROCKCHIP_TPL_RK3588 = "bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin";
|
||||
passthru = {
|
||||
BL31_RK3568 = "${rkbin}/bin/rk35/rk3568_bl31_v1.44.elf";
|
||||
TPL_RK3568 = "${rkbin}/bin/rk35/rk3568_ddr_1056MHz_v1.21.bin";
|
||||
TPL_RK3588 = "${rkbin}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rockchip proprietary bootloader blobs";
|
||||
homepage = "https://github.com/rockchip-linux/rkbin";
|
||||
license = licenses.unfree;
|
||||
license = licenses.unfreeRedistributable;
|
||||
maintainers = with maintainers; [ thefossguy ];
|
||||
platforms = [ "aarch64-linux" ];
|
||||
};
|
||||
|
@ -377,7 +377,7 @@ in {
|
||||
defconfig = "orangepi-5-rk3588s_defconfig";
|
||||
extraMeta.platforms = ["aarch64-linux"];
|
||||
BL31 = "${armTrustedFirmwareRK3588}/bl31.elf";
|
||||
ROCKCHIP_TPL = "${rkbin}/${rkbin.ROCKCHIP_TPL_RK3588}";
|
||||
ROCKCHIP_TPL = rkbin.TPL_RK3588;
|
||||
filesToInstall = [ "u-boot.itb" "idbloader.img" "u-boot-rockchip.bin" ];
|
||||
};
|
||||
|
||||
@ -529,7 +529,7 @@ in {
|
||||
defconfig = "rock5b-rk3588_defconfig";
|
||||
extraMeta.platforms = ["aarch64-linux"];
|
||||
BL31 = "${armTrustedFirmwareRK3588}/bl31.elf";
|
||||
ROCKCHIP_TPL = "${rkbin}/${rkbin.ROCKCHIP_TPL_RK3588}";
|
||||
ROCKCHIP_TPL = rkbin.TPL_RK3588;
|
||||
filesToInstall = [ "u-boot.itb" "idbloader.img" "u-boot-rockchip.bin" "u-boot-rockchip-spi.bin" ];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user