aboutsummaryrefslogtreecommitdiffstats
path: root/meta-cgl-common/classes/cgl-calc.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-cgl-common/classes/cgl-calc.bbclass')
-rw-r--r--meta-cgl-common/classes/cgl-calc.bbclass21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-cgl-common/classes/cgl-calc.bbclass b/meta-cgl-common/classes/cgl-calc.bbclass
new file mode 100644
index 0000000..81660d6
--- /dev/null
+++ b/meta-cgl-common/classes/cgl-calc.bbclass
@@ -0,0 +1,21 @@
+
+do_cgl_calc() {
+ NO_COMPLY="NO"
+ if [ -z "${CGL_ID}" ]; then
+ echo "${NO_COMPLY}" > calculator.txt
+ else
+ echo "${CGL_ID}" > calculator.txt
+ fi
+ if [ -z "${PRIORITY}" ]; then
+ echo "${NO_COMPLY}" >> calculator.txt
+ else
+ echo "${PRIORITY}" >> calculator.txt
+ fi
+ if [ -z "${DISCLOSURE}" ]; then
+ echo "${NO_COMPLY}" >> calculator.txt
+ else
+ echo "${DISCLOSURE}" >> calculator.txt
+ fi
+}
+
+addtask cgl_calc after do_fetch before do_build