Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions firehose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 9 additions & 0 deletions patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down