mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
synced 2024-12-21 22:50:27 +00:00
d9f6088f7e
The copy-firmware.sh script continues to grow new options and adding bespoke make targets for them all isn't really sustainable. This introduces a COPYOPTS variable that can be set to pass arguments directly to the script via a make invocation. For now we just include it on the 'install' target to preserve the existing behavior of the rest. Signed-off-by: Josh Boyer <jwboyer@kernel.org>
47 lines
1007 B
Makefile
47 lines
1007 B
Makefile
# This file implements the GNOME Build API:
|
|
# http://people.gnome.org/~walters/docs/build-api.txt
|
|
|
|
FIRMWAREDIR = /lib/firmware
|
|
|
|
all:
|
|
|
|
check:
|
|
@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 $(COPYOPTS) $(DESTDIR)$(FIRMWAREDIR)
|
|
|
|
install-nodedup:
|
|
install -d $(DESTDIR)$(FIRMWAREDIR)
|
|
./copy-firmware.sh --ignore-duplicates $(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
|