summaryrefslogtreecommitdiffstats
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-0faf978c3d.tar.gz
rockbox-0faf978c3d.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:
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"