aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2018-02-22 03:53:05 +0000
committerDenys Dmytriyenko <denys@ti.com>2018-02-26 19:43:00 -0500
commitbd3bd8632e15424e14349634251c77823b6639d3 (patch)
tree2626fd7f9377f9da820e1294e45e6d31c6c30d9b /classes
parent32873763134dd341d02f0b2aa7c217b9e8764292 (diff)
downloadmeta-ti-bd3bd8632e15424e14349634251c77823b6639d3.tar.gz
meta-ti-bd3bd8632e15424e14349634251c77823b6639d3.tar.bz2
meta-ti-bd3bd8632e15424e14349634251c77823b6639d3.zip
ti-pdk: Allow Doxygen generation to be optional
Users can choose to completely disable doxygen generation in pdk recipes by setting TI_PDK_DOXYGEN_SUPPORT = "0" in local.conf Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/ti-pdk.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/ti-pdk.bbclass b/classes/ti-pdk.bbclass
index ab730a902..540a665c6 100644
--- a/classes/ti-pdk.bbclass
+++ b/classes/ti-pdk.bbclass
@@ -59,17 +59,24 @@ TI_PDK_LIMIT_SOCS ?= ""
TI_PDK_LIMIT_BOARDS ?= ""
TI_PDK_MAKE_TARGET ?= "release"
TI_PDK_EXTRA_MAKE ?= ""
+TI_PDK_DOXYGEN_SUPPORT ?= "1"
TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}"
PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}"
PARALLEL_MAKE = ""
+def get_doxygen_support(d):
+ if d.getVar('TI_PDK_DOXYGEN_SUPPORT', True) == '1':
+ return ''
+ return 'DOXYGEN_SUPPORT=no'
+
EXTRA_OEMAKE = " \
LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \
LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \
LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \
${TI_PDK_EXTRA_MAKE} \
+ ${@get_doxygen_support(d)} \
"
do_configure() {