From bcc397d610896035bda38b228eea15af8051c55d Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Wed, 30 Aug 2023 22:50:40 -0500 Subject: [PATCH] Add new toplevel 'make dist' target. 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 --- .gitignore | 2 ++ Makefile | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index fcf54f43..a3876403 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ debian/ +dist/ +release/ diff --git a/Makefile b/Makefile index 75039ccb..b8ac3be8 100644 --- 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