build: Add an 'xz' target to generate a .tar.xz image

Improve the tarball generation a bit too

Change-Id: Ie68bea4e876bad5cd101dd396ec2247127b1b390
This commit is contained in:
Solomon Peachy 2021-06-17 11:56:10 -04:00
parent 3831051c47
commit 0faf978c3d

View file

@ -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"