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

Upload:: Honor OUTPUT_EXT #331

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

ccli8
Copy link

@ccli8 ccli8 commented Aug 23, 2024

Summary of changes

This PR changes upload method gen_upload_target signature from:

function(gen_upload_target TARGET_NAME BIN_FILE HEX_FILE)

To:

function(gen_upload_target TARGET_NAME BINARY_FILE)

If OUTPUT_EXT is undefined or defined to "bin", BINARY_FILE is .bin file, otherwise .hex file.

The update applies to all UploadMethodXxx files.

Replace #329


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

@multiplemonomials
Copy link
Collaborator

This is a good start but we will also need to update all of the UploadMethodXXXX files under mbed-os/tools/cmake/upload_methods to use this new signature.

@ccli8 ccli8 force-pushed the upload_honor_output_ext branch from 33a6fc1 to da69a17 Compare August 23, 2024 08:41
@ccli8
Copy link
Author

ccli8 commented Aug 23, 2024

Apply the gen_upload_target signature change to all upload_methods/UploadMethodXxx files

@multiplemonomials
Copy link
Collaborator

Looks good just one fix ^

Change signature from:
function(gen_upload_target TARGET_NAME BIN_FILE HEX_FILE)
To:
function(gen_upload_target TARGET_NAME BINARY_FILE)

If OUTPUT_EXT is undefined or defined to "bin", BINARY_FILE is .bin file,
otherwise .hex file.

The update applies to all UploadMethodXxx files.
@ccli8 ccli8 force-pushed the upload_honor_output_ext branch from da69a17 to 54a6efb Compare August 26, 2024 01:27
@multiplemonomials multiplemonomials merged commit de273ee into mbed-ce:master Aug 26, 2024
10 checks passed
@ccli8 ccli8 deleted the upload_honor_output_ext branch August 26, 2024 06:57
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.

2 participants