New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/hardware.deviceTree: Allow use of dtmerge #67989
Conversation
63b9546
to
ac827c9
Compare
ac827c9
to
b7a4ede
Compare
b7a4ede
to
7869074
Compare
7869074
to
6069e4d
Compare
3c952f7
to
f09307f
Compare
f09307f
to
e30dfb0
Compare
e30dfb0
to
18ef96f
Compare
18ef96f
to
275d129
Compare
Some raspberry pi overlays don't build with fdtoverlay (github.com/raspberrypi/linux/issues/3198). Also, dtmerge supports setting overlay parameters. However, dtmerge is only available on ARM, so we can't use it everywhere.
These device trees are incompatible with the mainline kernel, as well as linux_rpi. linux_rpi now bundles its own device-tree files and overlays, so there is no use for these anymore.
275d129
to
2507748
Compare
device-tree. | ||
''; | ||
example = literalExample "[\"\${pkgs.linuxPackages_rpi.kernel}/dtbs/overlays/w1-gpio.dtbo\"]"; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like linuxPackages_rpi
is no more and you need to say which one e.g. linuxPackages_rpi4
Closing this in favour of #79370 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cross-compiling-problem-with-devicetree-on-armv6/9254/5 |
Some raspberry pi overlays don't build with
fdtoverlay
(raspberrypi/linux/issues/3198). Also,dtmerge
supports setting overlay parameters. However, dtmerge is only available on ARM, so we can't use it everywhere, hence adding the option to select which tool to use for combining device trees.This also modifies the format of the
overlays
option to accept both an overlay path and an optional list of parameters, though the latter must be empty for thedtc
builder.Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @samueldr