diff --git a/Makefile b/Makefile index ddd06c9..5dd5c68 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,9 @@ $(KS_OUT): $(KS_OBJS) compile_commands.json: $(QDL_SRCS) $(KS_SRCS) @echo -n $^ | jq -snR "[inputs|split(\" \")[]|{directory:\"$(PWD)\", command: \"$(CC) $(CFLAGS) -c \(.)\", file:.}]" > $@ -version.h:: - @echo "#define VERSION \"$(VERSION)\"" > .version.h - @cmp -s .version.h version.h || cp .version.h version.h +# version.h:: +# @echo "#define VERSION \"$(VERSION)\"" > .version.h +# @cmp -s .version.h version.h || cp .version.h version.h util.o: version.h diff --git a/firehose.c b/firehose.c index 6745abe..acecf52 100644 --- a/firehose.c +++ b/firehose.c @@ -804,6 +804,7 @@ static int firehose_reset(struct qdl_device *qdl) node = xmlNewChild(root, NULL, (xmlChar *)"power", NULL); xml_setpropf(node, "value", "reset"); + xml_setpropf(node, "DelayInSeconds", "10"); // Add a delay to prevent reboot fail ret = firehose_write(qdl, doc); xmlFreeDoc(doc); diff --git a/patch.c b/patch.c index 5502a09..6b9a08e 100644 --- a/patch.c +++ b/patch.c @@ -81,11 +81,20 @@ int patch_execute(struct qdl_device *qdl, int (*apply)(struct qdl_device *qdl, s int ret; for (patch = patches; patch; patch = patch->next) { + if(!patch->filename){ + continue; + } + if (!strcmp(patch->filename, "DISK")) count++; } for (patch = patches; patch; patch = patch->next) { + + if(!patch->filename){ + continue; + } + if (strcmp(patch->filename, "DISK")) continue;