Merge branch 'make-error-on-copyopts' into 'main'

Makefile: error out of 'install' if COPYOPTS is set

See merge request kernel-firmware/linux-firmware!340
This commit is contained in:
Josh Boyer 2024-10-21 12:23:29 +00:00
commit 08bb5322f4
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ dedup:
./dedup-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
install:
@if [ -n "${COPYOPTS}" ]; then \
echo "COPYOPTS is not used since linux-firmware-20241017!"; \
echo "You may want to use install{-xz,-zst} and dedup targets instead"; \
false; \
fi
install -d $(DESTDIR)$(FIRMWAREDIR)
./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
@echo "Now run \"make dedup\" to de-duplicate any firmware files"