diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2018-02-22 03:53:05 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2018-02-26 19:43:00 -0500 |
commit | bd3bd8632e15424e14349634251c77823b6639d3 (patch) | |
tree | 2626fd7f9377f9da820e1294e45e6d31c6c30d9b /classes | |
parent | 32873763134dd341d02f0b2aa7c217b9e8764292 (diff) | |
download | meta-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.bbclass | 7 |
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 ?= "" | |||
59 | TI_PDK_LIMIT_BOARDS ?= "" | 59 | TI_PDK_LIMIT_BOARDS ?= "" |
60 | TI_PDK_MAKE_TARGET ?= "release" | 60 | TI_PDK_MAKE_TARGET ?= "release" |
61 | TI_PDK_EXTRA_MAKE ?= "" | 61 | TI_PDK_EXTRA_MAKE ?= "" |
62 | TI_PDK_DOXYGEN_SUPPORT ?= "1" | ||
62 | 63 | ||
63 | TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" | 64 | TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" |
64 | 65 | ||
65 | PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" | 66 | PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" |
66 | PARALLEL_MAKE = "" | 67 | PARALLEL_MAKE = "" |
67 | 68 | ||
69 | def get_doxygen_support(d): | ||
70 | if d.getVar('TI_PDK_DOXYGEN_SUPPORT', True) == '1': | ||
71 | return '' | ||
72 | return 'DOXYGEN_SUPPORT=no' | ||
73 | |||
68 | EXTRA_OEMAKE = " \ | 74 | EXTRA_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 | ||
75 | do_configure() { | 82 | do_configure() { |