aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
authorMario Limonciello <mario.limonciello@amd.com>2023-08-30 22:50:40 -0500
committerMario Limonciello <mario.limonciello@amd.com>2023-08-31 10:15:45 -0500
commitbcc397d610896035bda38b228eea15af8051c55d (patch)
treec07a9fe8a40e5e0ccfe2e079a8fd2097a13f210e /Makefile
parent3e79f6b83bd0d193bbf068b3c8da570f39acc6bb (diff)
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 <mario.limonciello@amd.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
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