Skip to content

Conversation

flit
Copy link
Collaborator

@flit flit commented Jan 10, 2020

The board_info_t::infoVersion member was intended to be used as the version number for the board_info_t struct itself, not the version of the board. This is important to ensure that board info added via post-processing a firmware binary has a known format. This PR clarifies and standardizes the usage of this version member.

Defined a kBoardInfoVersion constant (currently equal to 1), and set it as the current version in all defined board_info_t structures. Also renamed infoVersion to info_version. The interface main task asserts that g_board_info.info_version is valid.

(Extracted from #688.)

flit added 2 commits January 10, 2020 12:22
- Renamed board_info_t::infoVersion to info_version.
- Defined kBoardInfoVersion enum.
- Corrected info_version in default g_board_info.
- Set info_version on all boards to kBoardInfoVersion.

# Conflicts:
#	source/target/target_board.h
@flit
Copy link
Collaborator Author

flit commented Jan 10, 2020

/morph test

@flit
Copy link
Collaborator Author

flit commented Jan 10, 2020

Mac and Windows CI still have the unavailable board issue, but Linux passed so I'm merging.

@flit flit merged commit 6b0a9ea into ARMmbed:master Jan 10, 2020
@flit flit deleted the cleanup/board_info_version branch January 10, 2020 20:44
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