openwrt / docker

Docker containers of the ImageBuilder and SDK
GNU General Public License v2.0
463 stars 76 forks source link

fix TARGET_FILTER corner case for SDKs #122

Closed aparcar closed 11 months ago

aparcar commented 11 months ago

If a TARGET_FILTER is set only imagebuilder/sdk/rootfs for that target are created. In case of the SDK multiple valid targets are in the same row printed via dump-target-info.pl. With the previous logic the "first" target is used expecting all targets to be on the same commit. However when using TARGET_FILTER the specific target should be used for the SDK, not just one that supports the same architecture.

A logic is added that if TARGET_FILTER is set, it's used as the SDK target.