mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
synced 2024-12-18 05:04:51 +00:00
4f397306dc
Since https://gitlab.com/kernel-firmware/linux-firmware/-/merge_requests/319 and https://gitlab.com/kernel-firmware/linux-firmware/-/merge_requests/331 , doing `make COPYOPTS="blahblah" install` does not fail, but does not do what it did before. This is a surprising and possibly undesired result (in Fedora, it led to our firmware suddenly taking up 500MB more space on disk, and that led to a bunch of live image builds failing). To make the change more apparent, let's just fail out with an explanatory message if invoked with COPYOPTS set. Signed-off-by: Adam Williamson <awilliam@redhat.com> Co-authored by: Emil Velikov <emil.l.velikov@gmail.com>
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
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
|
|
|
|
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"
|
|
|
|
install-xz:
|
|
install -d $(DESTDIR)$(FIRMWAREDIR)
|
|
./copy-firmware.sh --xz $(DESTDIR)$(FIRMWAREDIR)
|
|
@echo "Now run \"make dedup\" to de-duplicate any firmware files"
|
|
|
|
install-zst:
|
|
install -d $(DESTDIR)$(FIRMWAREDIR)
|
|
./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR)
|
|
@echo "Now run \"make dedup\" to de-duplicate any firmware files"
|
|
|
|
clean:
|
|
rm -rf release dist
|