forked from dan/liminix
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:
parent
6cd5b90678
commit
ede8f12d2b
@ -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;
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user