xsctbase class should just provide the configure, so that it can be used
by recipes where configuration is required to be done using xsct. If a
recipe needs to compile the xsct project, then use xsctapp class not
xsctbase.

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-ma...@xilinx.com>
---
 classes/xsctapp.bbclass  | 10 ++++++++++
 classes/xsctbase.bbclass | 10 ----------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/classes/xsctapp.bbclass b/classes/xsctapp.bbclass
index 1846c53..2df844f 100644
--- a/classes/xsctapp.bbclass
+++ b/classes/xsctapp.bbclass
@@ -32,6 +32,16 @@ XSCTH_APP_COMPILER_FLAGS ?= ""
 
 SYSROOT_DIRS += "/boot"
 
+do_compile[lockfiles] = "${TMPDIR}/xsct-invoke.lock"
+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
+}
+
 do_install() {
        install -Dm 0644 ${XSCTH_WS}/${XSCTH_PROJ}/${XSCTH_EXECUTABLE} 
${D}/boot/${PN}.elf
 }
diff --git a/classes/xsctbase.bbclass b/classes/xsctbase.bbclass
index 60898c8..574270d 100644
--- a/classes/xsctbase.bbclass
+++ b/classes/xsctbase.bbclass
@@ -49,13 +49,3 @@ do_configure() {
     eval xsct ${XSCTH_SCRIPT} ${PROJ_ARG} ${HW_ARG} ${APP_ARG} ${MISC_ARG}
 }
 
-
-do_compile[lockfiles] = "${TMPDIR}/xsct-invoke.lock"
-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

-- 
_______________________________________________
meta-xilinx mailing list
meta-xilinx@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to