Skip to content
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

flash-from-device: workaround build failure for mtdutils #279

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

danielfullmer
Copy link
Collaborator

@danielfullmer danielfullmer commented Feb 20, 2025

Description of changes

pkgsStatic.mtdutils fails to build natively in NixOS 24.11 due to the cmoka dependency not being found for package tests. However, the cross-compiled static mtdutils does build successfully due to the tests being disabled in that case upstream. This leads to initrd flash scripts building in some cases, and others not, depending on if the NixOS system they're based on is cross-compiled or natively-compiled. Concretely, the initrd-flash-* flake package outputs all currently work (since they are cross-compile firmware), but the .config.system.build.initrdFlashScript from a natively-built NixOS system does not.

Testing

Built the initrdFlashScript from a natively-built NixOS system.

@danielfullmer danielfullmer merged commit c434043 into anduril:master Feb 20, 2025
1 check passed
@danielfullmer danielfullmer deleted the mtdutils-2411 branch February 20, 2025 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant