-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Add override function back to buildArmTrustedFirmware results for backward compatibility
#440077
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
Conversation
This ensures that the build of the derivation references the final, correct values for all custom ATF parameters.
This is just to allow for backward-compatibility of existing buildArmTrustedFirmware derivations. The downside of the original implementation was that you could not update `prevAttrs`, since `overrideAttrs` was not being used. This shim essentially provides the same functionality since it calls overrideAttrs without referencing `prevAttrs`, and thus it blindly overrides the derivation attrs.
|
@ofborg test optee |
This seems like a step in the wrong direction, from defined public API to monkey-patching internals. I would prefer to go the other way, as someone with an out-of-tree TF-A package. |
The other way, as in use overrideAttrs? If so, I agree 100%, however the original commit I made broke eval on atf derivations that used |
|
No, cc @alyssais |
Got it. Just read through the PR you linked, it's a super nuanced issue. I guess without getting too much into the weeds, the change in 1898fb4 is helpful because it allows for (IMO) nicer composition of options going into the ATF build without having the "extraThisOrThat" parameters for every single thing wrapping some underlying mkDerivation arg. It also properly allows for the dependencies of ATF itself to be overridden with |
The work done in 1898fb4 introduced a breaking change since the
overridefunction was removed. This adds back support for that, with an eval warning encouraging users to switch to the more extensibleoverrideAttrsfor ATF related build parameters.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.