-
Notifications
You must be signed in to change notification settings - Fork 123
*added version info and build time info #69
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,5 @@ qdl-ramdump | |
| ks | ||
| compile_commands.json | ||
| .cache | ||
|
|
||
| .vscode/settings.json | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| QDL := qdl | ||
| RAMDUMP := qdl-ramdump | ||
|
|
||
| CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0 libusb-1.0` | ||
| BUILD_TIME := $(shell date +"%c") | ||
| VERSION := "1.0.0" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably good to add git-version info (git describe) as well or instead.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the version information to be useful (e.g. for bug reports etc), we need to bump this version string on every commit. So, I think git describe provides much more value here. |
||
|
|
||
| CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0 libusb-1.0` -D "BUILD_TIME=\"$(BUILD_TIME)\"" -D "VERSION=\"$(VERSION)\"" | ||
| LDFLAGS += `pkg-config --libs libxml-2.0 libusb-1.0` | ||
| prefix := /usr/local | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -192,7 +192,7 @@ static int firehose_write(struct qdl_device *qdl, xmlDoc *doc) | |
| return ret < 0 ? -saved_errno : 0; | ||
| } | ||
|
|
||
| static size_t max_payload_size = 1048576; | ||
| static size_t max_payload_size = 1024*1024; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated change |
||
|
|
||
| /** | ||
| * firehose_configure_response_parser() - parse a configure response | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,6 +111,7 @@ int main(int argc, char **argv) | |
| int opt; | ||
| bool qdl_finalize_provisioning = false; | ||
|
|
||
| printf("QDL version %s %s\n", VERSION, BUILD_TIME); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to make the tool less noisy... How about instead adding a --version argument which prints the version and exits? |
||
|
|
||
| static struct option options[] = { | ||
| {"debug", no_argument, 0, 'd'}, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the build unreproducible. Should use SOURCE_DATE_EPOCH, see https://reproducible-builds.org/docs/source-date-epoch/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this information valuable. Please use the commit message to describe your motivation.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, next time, when I will debug non working qdl at the PC of my colleague may be I will return to this change ;-)