-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qdl: Implement sparse image flashing using libsparse
Extend XML with the optional "sparse" tag. If sparse is true the file is interpreted as sparse file and only non "Don't Care" Sections are flashed. Signed-off-by: Maximilian Blenk <[email protected]>
- Loading branch information
Maximilian Blenk
authored and
Maximilian Blenk
committed
Nov 7, 2019
1 parent
4f237c2
commit d9949c8
Showing
5 changed files
with
228 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
OUT := qdl | ||
|
||
CFLAGS := -O2 -Wall -g `xml2-config --cflags` | ||
LDFLAGS := `xml2-config --libs` -ludev | ||
CFLAGS := -O2 -Wall -g `xml2-config --cflags` -I libsparse/include | ||
LDFLAGS := `xml2-config --libs` -ludev -lz | ||
prefix := /usr/local | ||
|
||
SRCS := firehose.c qdl.c sahara.c util.c patch.c program.c ufs.c | ||
OBJS := $(SRCS:.c=.o) | ||
|
||
$(OUT): $(OBJS) | ||
$(CC) -o $@ $^ $(LDFLAGS) | ||
$(OUT): $(OBJS) libsparse/libsparse.a | ||
$(CXX) -o $@ $^ $(LDFLAGS) | ||
|
||
libsparse/libsparse.a: | ||
$(MAKE) -C libsparse | ||
|
||
clean: | ||
rm -f $(OUT) $(OBJS) | ||
$(MAKE) -C libsparse clean | ||
|
||
install: $(OUT) | ||
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters