diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-06-17 11:56:10 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-06-17 11:56:59 -0400 |
commit | 0faf978c3dec53f62c0b1624e883e9ee03b9c788 (patch) | |
tree | e235b316081b8a678ad29de8d1d773a88af5ee3d /tools/root.make | |
parent | 3831051c478d18f19978529261761802f3c9eebc (diff) | |
download | rockbox-0faf978c3dec53f62c0b1624e883e9ee03b9c788.tar.gz rockbox-0faf978c3dec53f62c0b1624e883e9ee03b9c788.zip |
build: Add an 'xz' target to generate a .tar.xz image
Improve the tarball generation a bit too
Change-Id: Ie68bea4e876bad5cd101dd396ec2247127b1b390
Diffstat (limited to 'tools/root.make')
-rw-r--r-- | tools/root.make | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/root.make b/tools/root.make index 22834b3324..f1bd14b827 100644 --- a/tools/root.make +++ b/tools/root.make | |||
@@ -333,16 +333,26 @@ fullzip: | |||
333 | 7zip: | 333 | 7zip: |
334 | $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -o "rockbox.7z" -z "7za a -mx=9" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" $(TARGET) $(BINARY) | 334 | $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -o "rockbox.7z" -z "7za a -mx=9" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" $(TARGET) $(BINARY) |
335 | 335 | ||
336 | tar: | 336 | ifdef NODEPS |
337 | $(BUILDDIR)/rockbox.tar: | ||
338 | else | ||
339 | $(BUILDDIR)/rockbox.tar: build | ||
340 | endif | ||
337 | $(SILENT)rm -f rockbox.tar | 341 | $(SILENT)rm -f rockbox.tar |
342 | $(call PRINTS,TAR $(notdir $@)) | ||
338 | $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -o "rockbox.tar" -z "tar -cf" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" $(TARGET) $(BINARY) | 343 | $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -o "rockbox.tar" -z "tar -cf" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" $(TARGET) $(BINARY) |
339 | 344 | ||
345 | tar: $(BUILDDIR)/rockbox.tar | ||
346 | |||
340 | bzip2: tar | 347 | bzip2: tar |
341 | $(SILENT)bzip2 -f9 rockbox.tar | 348 | $(SILENT)bzip2 -f9 rockbox.tar |
342 | 349 | ||
343 | gzip: tar | 350 | gzip: tar |
344 | $(SILENT)gzip -f9 rockbox.tar | 351 | $(SILENT)gzip -f9 rockbox.tar |
345 | 352 | ||
353 | xz: tar | ||
354 | $(SILENT)xz -f rockbox.tar | ||
355 | |||
346 | manual manual-pdf: | 356 | manual manual-pdf: |
347 | $(SILENT)$(MAKE) -C $(MANUALDIR) OBJDIR=$(BUILDDIR)/manual manual-pdf | 357 | $(SILENT)$(MAKE) -C $(MANUALDIR) OBJDIR=$(BUILDDIR)/manual manual-pdf |
348 | manual-html: | 358 | manual-html: |
@@ -403,6 +413,7 @@ help: | |||
403 | @echo "zip - creates a rockbox.zip of your build (no fonts)" | 413 | @echo "zip - creates a rockbox.zip of your build (no fonts)" |
404 | @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)" | 414 | @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)" |
405 | @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)" | 415 | @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)" |
416 | @echo "xz - creates a rockbox.tar.xz of your build (no fonts)" | ||
406 | @echo "7zip - creates a rockbox.7z of your build (no fonts)" | 417 | @echo "7zip - creates a rockbox.7z of your build (no fonts)" |
407 | @echo "fontzip - creates rockbox-fonts.zip" | 418 | @echo "fontzip - creates rockbox-fonts.zip" |
408 | @echo "mapzip - creates rockbox-maps.zip with all .map files" | 419 | @echo "mapzip - creates rockbox-maps.zip with all .map files" |