mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
synced 2024-12-25 16:32:48 +00:00
bcc397d610
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>
37 lines
804 B
Makefile
37 lines
804 B
Makefile
# This file implements the GNOME Build API:
|
|
# http://people.gnome.org/~walters/docs/build-api.txt
|
|
|
|
FIRMWAREDIR = /lib/firmware
|
|
|
|
all:
|
|
|
|
check:
|
|
@if ! which pre-commit >/dev/null; then \
|
|
echo "Install pre-commit to check files"; \
|
|
exit 1; \
|
|
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)
|
|
|
|
install-xz:
|
|
install -d $(DESTDIR)$(FIRMWAREDIR)
|
|
./copy-firmware.sh --xz $(DESTDIR)$(FIRMWAREDIR)
|
|
|
|
install-zst:
|
|
install -d $(DESTDIR)$(FIRMWAREDIR)
|
|
./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR)
|
|
|
|
clean:
|
|
rm -rf release dist
|