summaryrefslogtreecommitdiffstats
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
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 ab730a90..540a665c 100644
--- a/classes/ti-pdk.bbclass
+++ b/classes/ti-pdk.bbclass
@@ -59,17 +59,24 @@ TI_PDK_LIMIT_SOCS ?= ""
59TI_PDK_LIMIT_BOARDS ?= "" 59TI_PDK_LIMIT_BOARDS ?= ""
60TI_PDK_MAKE_TARGET ?= "release" 60TI_PDK_MAKE_TARGET ?= "release"
61TI_PDK_EXTRA_MAKE ?= "" 61TI_PDK_EXTRA_MAKE ?= ""
62TI_PDK_DOXYGEN_SUPPORT ?= "1"
62 63
63TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" 64TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}"
64 65
65PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" 66PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}"
66PARALLEL_MAKE = "" 67PARALLEL_MAKE = ""
67 68
69def get_doxygen_support(d):
70 if d.getVar('TI_PDK_DOXYGEN_SUPPORT', True) == '1':
71 return ''
72 return 'DOXYGEN_SUPPORT=no'
73
68EXTRA_OEMAKE = " \ 74EXTRA_OEMAKE = " \
69 LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ 75 LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \
70 LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ 76 LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \
71 LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ 77 LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \
72 ${TI_PDK_EXTRA_MAKE} \ 78 ${TI_PDK_EXTRA_MAKE} \
79 ${@get_doxygen_support(d)} \
73" 80"
74 81
75do_configure() { 82do_configure() {