Undefined reference when using mksys, but not mkapp

how about embed the application to legato.cwe?