[PATCH 10/58] buildman: Move board-selection code into a function