summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-06-17 11:56:10 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-06-17 11:56:59 -0400
commit0faf978c3dec53f62c0b1624e883e9ee03b9c788 (patch)
treee235b316081b8a678ad29de8d1d773a88af5ee3d
parent3831051c478d18f19978529261761802f3c9eebc (diff)
downloadrockbox-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
-rw-r--r--tools/root.make13
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:
3337zip: 3337zip:
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
336tar: 336ifdef NODEPS
337$(BUILDDIR)/rockbox.tar:
338else
339$(BUILDDIR)/rockbox.tar: build
340endif
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
345tar: $(BUILDDIR)/rockbox.tar
346
340bzip2: tar 347bzip2: tar
341 $(SILENT)bzip2 -f9 rockbox.tar 348 $(SILENT)bzip2 -f9 rockbox.tar
342 349
343gzip: tar 350gzip: tar
344 $(SILENT)gzip -f9 rockbox.tar 351 $(SILENT)gzip -f9 rockbox.tar
345 352
353xz: tar
354 $(SILENT)xz -f rockbox.tar
355
346manual manual-pdf: 356manual manual-pdf:
347 $(SILENT)$(MAKE) -C $(MANUALDIR) OBJDIR=$(BUILDDIR)/manual manual-pdf 357 $(SILENT)$(MAKE) -C $(MANUALDIR) OBJDIR=$(BUILDDIR)/manual manual-pdf
348manual-html: 358manual-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"