travitch / build-bom

Dynamically discover the commands used to create a piece of software
Apache License 2.0
45 stars 8 forks source link

Objcopy override #50

Closed kquick closed 4 months ago

kquick commented 1 year ago

[NOTE: this PR is actually based on PR #49 and if that PR is updated, I will rebase this branch and update this PR]

The objcopy tool is used by build-bom for both generate-bitcode and extract-bitcode, but a specific objcopy might be needed (e.g. for cross-compiling: --objcopy=aarch64-linux-gnu-objcopy).

Also standardizes some of the path handling and defaulting to simplify the uses.