]> git.ipfire.org Git - thirdparty/linux-firmware.git/commitdiff
Add new toplevel 'make dist' target.
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 31 Aug 2023 03:50:40 +0000 (22:50 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 31 Aug 2023 15:15:45 +0000 (10:15 -0500)
This target produces a tarball following the most recent git tag.
The tarball contains firmware binaries that have been de-duped.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
.gitignore
Makefile

index fcf54f43df0d8f374956f22a2c225db38c7bb742..a3876403aa7cda0e93ccea060fa48e7742098fd9 100644 (file)
@@ -1 +1,3 @@
 debian/
+dist/
+release/
index 75039ccb4ce1c931dfc7c8a2e50a6e8270d96bc2..b8ac3be82f3058abeeee6463a37e770236816cde 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,14 @@ check:
        fi
        @pre-commit run --all-files
 
+dist:
+       @mkdir -p release dist
+       ./copy-firmware.sh release
+       @TARGET=linux-firmware_`git describe`.tar.gz; \
+       cd release && tar -czf ../dist/$${TARGET} *; \
+       echo "Created dist/$${TARGET}"
+       @rm -rf release
+
 install:
        install -d $(DESTDIR)$(FIRMWAREDIR)
        ./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
@@ -23,3 +31,6 @@ install-xz:
 install-zst:
        install -d $(DESTDIR)$(FIRMWAREDIR)
        ./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR)
+
+clean:
+       rm -rf release dist