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: remove extraneous dependencies on stdenv tools #281

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

danielfullmer
Copy link
Collaborator

Description of changes

The flash-from-device script was inadvertently bringing in all stdenv tools available in the runCommand itself. The $PATH here wasn't intended to be substituted in the runCommand, but rather when running the script itself! Consequently, the /nix/store output for flash-from-device had references to coreutils, gnused, gnugrep, etc. present in this line.

It turns out this $PATH wasn't necessary at all, since all required tools to run flash-from-device are already present in pkgsStatic.busybox and staticDeps, so I'm removing it.

This decreases the size of an Orin AGX devkit initrd from 47M down to 25M.

Testing

Flashed an Orin AGX devkit

@danielfullmer danielfullmer merged commit e1e8698 into anduril:master Feb 22, 2025
1 check passed
@danielfullmer danielfullmer deleted the initrd-flash-smaller branch February 22, 2025 03:49
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