rockchip/rk3399: init

This commit is contained in:
ZHANG Yuntian authored and mergify[bot] committed 2025-02-06 04:19:59 +00:00
1 parent c5666d9cd6
commit 52047449bf
4 files changed
+129

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
{ lib
, pkgs
, config
, ...
}:
let
cfg = config.hardware.rockchip.rk3399;
in {
imports = [
../.
];
options.hardware.rockchip.rk3399 = {
enable = lib.mkEnableOption "Rockchip RK3399 support";
};
config = lib.mkIf cfg.enable {
hardware.rockchip.enable = true;
};
}
+14
View File
@@ -0,0 +1,14 @@
{ lib
, pkgs
, config
, ...
}:
let
cfg = config.hardware.rockchip.rk3399;
in {
config = lib.mkIf cfg.enable {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"arm-trusted-firmware-rk3399"
];
};
}