mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 04:28:41 +04:00
A target defines more than 100 devices, and the image Makefile expands the kernel, image and artifact rules of every one of them. The rules of a device that is not selected are only reachable through install-disabled and compile-disabled, so nothing uses them. The image Makefile is parsed twice per build, 0.3 s each for mediatek. Only expand Device/Build for selected devices, and for all devices if CONFIG_IB is set, as the ImageBuilder compiles them all. Signed-off-by: John Crispin <john@phrozen.org>