From e098267b6e85a8d48423629340d2c4e6147f8616 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 30 Sep 2024 18:44:57 +0200 Subject: Merging upstream version 20240709. Signed-off-by: Daniel Baumann --- Makefile | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 50a4c29..ac43c97 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,33 @@ FIRMWAREDIR = /lib/firmware all: check: - @./check_whence.py + @if ! command -v 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 + +deb: + ./build_packages.py --deb + +rpm: + ./build_packages.py --rpm install: install -d $(DESTDIR)$(FIRMWAREDIR) - ./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR) + ./copy-firmware.sh $(COPYOPTS) $(DESTDIR)$(FIRMWAREDIR) + +install-nodedup: + install -d $(DESTDIR)$(FIRMWAREDIR) + ./copy-firmware.sh --ignore-duplicates $(DESTDIR)$(FIRMWAREDIR) install-xz: install -d $(DESTDIR)$(FIRMWAREDIR) @@ -19,3 +41,6 @@ install-xz: install-zst: install -d $(DESTDIR)$(FIRMWAREDIR) ./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR) + +clean: + rm -rf release dist -- cgit v1.2.3