[meta-xilinx] [PATCH 1/7] xsctbase.bbclass: Add check for xsct compile failure
Manjukumar Harthikote Matha
manjukumar.harthikote-matha at xilinx.com
Fri Jul 7 14:05:57 PDT 2017
> -----Original Message-----
> From: Jean-Francois Dagenais [mailto:jeff.dagenais at gmail.com]
> Sent: Thursday, July 06, 2017 10:17 AM
> To: Manjukumar Harthikote Matha <MANJUKUM at xilinx.com>; Sai Pavan Boddu
> <saipava at xilinx.com>; Cyril Chemparathy <cyrilc at xilinx.com>
> Cc: git <git at xilinx.com>; michal.simek at xilinx.com; meta-xilinx at yoctoproject.org;
> Jean-Francois Dagenais <jeff.dagenais at gmail.com>
> Subject: [PATCH 1/7] xsctbase.bbclass: Add check for xsct compile failure
>
> From: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
>
> Check for executable to be present after xsct project compilation.
> If the executable is not preset, report error
>
> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
> Signed-off-by: Jean-Francois Dagenais <jeff.dagenais at gmail.com>
> ---
> 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
> }
ACK and applied
Thanks
Manju
> --
> 2.1.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.
More information about the meta-xilinx
mailing list