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

Add build information to the beginning of the binary #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KrasnikovEugene
Copy link

With this commit both htc_9271.fw and htc_7010.fw will have build
information in the beginning of the file. Driver can read this
information even before loading fw to the chip.

Build information format:
u32 major;
u32 minor;
u32 tag;
char commit_id[40];
char user_name[32];

Signed-off-by: Eugene Krasnikov [email protected]

With this commit both htc_9271.fw and htc_7010.fw will have build
information in the beginning of the file. Driver can read this
information even before loading fw to the chip.

Build information format:
	u32	major;
	u32	minor;
	u32	tag;
	char	commit_id[40];
	char	user_name[32];

Signed-off-by: Eugene Krasnikov <[email protected]>
@KrasnikovEugene
Copy link
Author

the driver will read the firmware from harddrive , cut build information from the binary and then will send firmware to the dongle already without build information. That's the beauty of this solution;) firmware code is not affected by this change, only build system.

@olerem
Copy link
Contributor

olerem commented Sep 21, 2016

After this patch https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=e904cf6fe23022cde4e0ea9d41601411a315a3dc (kernel v4.4-rc1) we use filename as FW version.
So i assume we can close this issue.

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.

3 participants