declare options.hardware.ubi unconditionally

this is so it can be defined in device modules even when
ubifs is not included in the configuration
This commit is contained in:
Daniel Barlow committed 2024-12-23 22:37:07 +00:00
1 parent 6cd5b90678
commit ede8f12d2b
2 files changed
+6 -7

No files matched your search

+6
View File
@@ -13,6 +13,12 @@ in
options = {
boot = { };
hardware = {
ubi = {
minIOSize = mkOption { type = types.str; };
logicalEraseBlockSize = mkOption { type = types.str; }; # LEB
physicalEraseBlockSize = mkOption { type = types.str; }; # PEB
maxLEBcount = mkOption { type = types.str; }; # LEB
};
dts = {
src = mkOption {
type = types.nullOr types.path;
-7
View File
@@ -13,13 +13,6 @@ in
./initramfs.nix
];
options.hardware.ubi = {
minIOSize = mkOption { type = types.str; };
logicalEraseBlockSize = mkOption { type = types.str; }; # LEB
physicalEraseBlockSize = mkOption { type = types.str; }; # PEB
maxLEBcount = mkOption { type = types.str; }; # LEB
};
config = mkIf (config.rootfsType == "ubifs") {
kernel.config = {
MTD_UBI="y";