Please make sure you have followed the instructions here: source.sierrawireless.com/resour … kit_linux/
(Typically there are some dependencies you need to install; including ninja)
By the way, please note that Legato related questions should be posted at forum.legato.io/