21 lines
565 B
Makefile
21 lines
565 B
Makefile
BLOBS ?= $(wildcard /lib/firmware/mediatek/mt79*_wm.bin) \
|
|
$(wildcard /lib/firmware/mediatek/mt79*_wa.bin) \
|
|
$(wildcard /lib/firmware/mediatek/mt79*_rom_patch.bin)
|
|
|
|
.PHONY: help extract test elf fetch-fw
|
|
|
|
help:
|
|
@echo "make extract - carve all MediaTek Connac2 blobs found on this host"
|
|
@echo " (set BLOBS=... to override)"
|
|
|
|
extract:
|
|
python3 tools/mtk_fw_extract.py $(BLOBS)
|
|
|
|
test:
|
|
python3 -m unittest discover -s tests -v
|
|
|
|
elf:
|
|
python3 tools/mtk_fw_elf.py $(BLOBS) -o extracted
|
|
|
|
fetch-fw:
|
|
tools/fetch_blobs.sh firmware/mediatek
|