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>
This commit is contained in:
Mario Limonciello 2023-08-30 22:50:40 -05:00
parent 3e79f6b83b
commit bcc397d610
2 changed files with 13 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
debian/
dist/
release/

View File

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