nixpkgs/pkgs/os-specific/linux/device-tree
Ivan Petkov bfd1c45e54
nixos/hardware/device-tree: fix application of overlays
Previously whenever an overlay was found to be incompatible with a base
device tree blob, the entire base dtb would be skipped in favor of
processing the next one. This had the unfortunate effect where overlays
would not fully be applied if any incompatibility was found. For
example, this is an issue with build device trees specific for one
flavor of raspberry pi if the overlay was not compatible _everywhere_.

The solution is to forego the `continue` keyword if an overlay is in
compatible and instead use a compound conditional statement to skip
incompatible overlays but continue trying to apply it to any remaining
dtbs.
2022-12-10 20:13:08 -08:00
..
default.nix nixos/hardware/device-tree: fix application of overlays 2022-12-10 20:13:08 -08:00
raspberrypi.nix