mcu: fix extraCargoBuildArgs skipped on Stabilizer variants, & simplify optional args #61
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "harry/nix-scripts:fix-mcu"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes a bug where the
extraCargoBuildArgs
specified by the Stabilizer variants is not passed to the function call ofbuildStm32Firmware
. This is done using theUPDATE
(//
) operator.The second part of this PR also simplifies the optional arguments,
binaryName
andextraCargoBuildArgs
, ofbuildStm32Firmware
. As a result, variadic arguments are no longer used by the function, which also means errors will now be raised from unexpected arguments. Key changes:binaryName
now defaults to the package name, and must be used as the Cargo binary name when runningcargo build
. Before the introduction of multiple binaries for the same Cargo package, the package name is used by Cargo to name the output binary file anyway.extraCargoBuildArgs
defaults to simply the empty string.