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

imgprod: Close .img before passing it to objcopy #353

Merged
merged 1 commit into from
Nov 19, 2019

Conversation

ccollins476ad
Copy link
Contributor

This fixes a bug in the Windows port of newt.

Newt produces a .hex file by running objcopy on the .img file. It was doing this immediately after creating the .img file, before closing it. In Windows, objcopy cannot open a file when it is already open by a different process, so the command fails.

The fix is to close the .img file before executing objcopy.

@ccollins476ad ccollins476ad changed the title imgprod: Close .img before pasing it to objcopy imgprod: Close .img before passing it to objcopy Nov 18, 2019
This fixes a bug in the Windows port of newt.

Newt produces a .hex file by running `objcopy` on the .img file.  It was
doing this immediately after creating the .img file, before closing it.
In Windows, objcopy cannot open a file when it is already open by a
different process, so the command fails.

The fix is to close the .img file before executing objcopy.
@ccollins476ad ccollins476ad merged commit 5e263c4 into apache:master Nov 19, 2019
@ccollins476ad ccollins476ad deleted the win-objcopy-fix branch November 19, 2019 15:40
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.

None yet

2 participants