From 0faf978c3dec53f62c0b1624e883e9ee03b9c788 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 17 Jun 2021 11:56:10 -0400 Subject: build: Add an 'xz' target to generate a .tar.xz image Improve the tarball generation a bit too Change-Id: Ie68bea4e876bad5cd101dd396ec2247127b1b390 --- tools/root.make | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tools') 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: 7zip: $(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) -tar: +ifdef NODEPS +$(BUILDDIR)/rockbox.tar: +else +$(BUILDDIR)/rockbox.tar: build +endif $(SILENT)rm -f rockbox.tar + $(call PRINTS,TAR $(notdir $@)) $(SILENT)$(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) --app=$(APPLICATION) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -o "rockbox.tar" -z "tar -cf" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" $(TARGET) $(BINARY) +tar: $(BUILDDIR)/rockbox.tar + bzip2: tar $(SILENT)bzip2 -f9 rockbox.tar gzip: tar $(SILENT)gzip -f9 rockbox.tar +xz: tar + $(SILENT)xz -f rockbox.tar + manual manual-pdf: $(SILENT)$(MAKE) -C $(MANUALDIR) OBJDIR=$(BUILDDIR)/manual manual-pdf manual-html: @@ -403,6 +413,7 @@ help: @echo "zip - creates a rockbox.zip of your build (no fonts)" @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)" @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)" + @echo "xz - creates a rockbox.tar.xz of your build (no fonts)" @echo "7zip - creates a rockbox.7z of your build (no fonts)" @echo "fontzip - creates rockbox-fonts.zip" @echo "mapzip - creates rockbox-maps.zip with all .map files" -- cgit