-
Notifications
You must be signed in to change notification settings - Fork 79
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
*added version info and build time info #69
base: master
Are you sure you want to change the base?
Conversation
*added vscode settings to exclude *max_payload_size to more clear size
couple points:
thanks! |
@@ -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") |
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.
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 ;-)
@@ -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 comment
The 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.
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.
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.
@@ -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") |
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.
@@ -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 comment
The 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.
@@ -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; |
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.
Unrelated 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); |
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.
I'd like to make the tool less noisy... How about instead adding a --version argument which prints the version and exits?
*added vscode settings to exclude
*max_payload_size to more clear size