diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-30 16:44:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-30 16:44:52 +0000 |
commit | 1ae1ce35210e35559848b88ecd07206cdffd5f94 (patch) | |
tree | d0bfb00539f99b9026d387607ad594f507383bf3 /Makefile | |
parent | Adding upstream version 20230625. (diff) | |
download | firmware-nonfree-upstream.tar.xz firmware-nonfree-upstream.zip |
Adding upstream version 20240709.upstream/20240709upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 27 insertions, 2 deletions
@@ -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 |