diff --git a/.gitignore b/.gitignore index 1a27379..6df8add 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ qdl-ramdump ks compile_commands.json .cache + +.vscode/settings.json diff --git a/Makefile b/Makefile index 4724858..b84b38c 100644 --- a/Makefile +++ b/Makefile @@ -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" + +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 diff --git a/firehose.c b/firehose.c index da3ed31..a20140c 100644 --- a/firehose.c +++ b/firehose.c @@ -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; /** * firehose_configure_response_parser() - parse a configure response diff --git a/qdl.c b/qdl.c index e15dcbd..e5ebef0 100644 --- a/qdl.c +++ b/qdl.c @@ -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); static struct option options[] = { {"debug", no_argument, 0, 'd'},