> -----Original Message----- > From: Manjukumar Matha [mailto:[email protected]] > Sent: Monday, June 05, 2017 8:09 AM > To: [email protected] > Cc: Manjukumar Harthikote Matha <[email protected]> > Subject: [master][RFC] xsctbase.bbclass: Add check for xsct compile failure > > Check for executable to be present after xsct project compilation. > If the executable is not preset, report error >
Please ignore, subject line is incorrect Thanks Manju > Signed-off-by: Manjukumar Matha <[email protected]> > --- > classes/xsctbase.bbclass | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/classes/xsctbase.bbclass b/classes/xsctbase.bbclass index > 98dafde..fac7b8f 100644 > --- a/classes/xsctbase.bbclass > +++ b/classes/xsctbase.bbclass > @@ -15,6 +15,7 @@ XSCTH_PROJ ??= "${PN}" > XSCTH_WS ??= "${B}" > XSCTH_MISC ??= "" > XSCTH_SCRIPT ??= "" > +XSCTH_EXECUTABLE ??= "" > XSCTH_ARCH ?= "${@bb.utils.contains('XSCTH_PROC', 'psu_cortexa53_0', '64', > '32', > d)}" > > PROJ_ARG ??= "-ws ${XSCTH_WS} -pname ${XSCTH_PROJ} -rp ${XSCTH_REPO}" > @@ -55,4 +56,7 @@ do_compile() { > export RDI_PLATFORM=ln64 > export SWT_GTK3=0 > eval xsct ${XSCTH_SCRIPT} ${PROJ_ARG} -do_compile 1 > + if [ ! -e ${XSCTH_WS}/${XSCTH_PROJ}/${XSCTH_EXECUTABLE} ]; then > + bbfatal_log "${PN} compile failed." > + fi > } > -- > 2.7.4 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. -- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
