Adapt ncros to handle multiple targets.

Signed-off-by: Thiago Farina <tfarina@chromium.org>