summaryrefslogtreecommitdiffstats
path: root/recipes-ti/ti-pdk-build/ti-pdk-build-rtos/0001-comp_mk-Allow-doxygen-support-to-be-overridden.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-ti/ti-pdk-build/ti-pdk-build-rtos/0001-comp_mk-Allow-doxygen-support-to-be-overridden.patch')
-rw-r--r--recipes-ti/ti-pdk-build/ti-pdk-build-rtos/0001-comp_mk-Allow-doxygen-support-to-be-overridden.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes-ti/ti-pdk-build/ti-pdk-build-rtos/0001-comp_mk-Allow-doxygen-support-to-be-overridden.patch b/recipes-ti/ti-pdk-build/ti-pdk-build-rtos/0001-comp_mk-Allow-doxygen-support-to-be-overridden.patch
new file mode 100644
index 00000000..2a10d37e
--- /dev/null
+++ b/recipes-ti/ti-pdk-build/ti-pdk-build-rtos/0001-comp_mk-Allow-doxygen-support-to-be-overridden.patch
@@ -0,0 +1,50 @@
1From e5dfce58161aaee80ca45c3e992a059efac459d7 Mon Sep 17 00:00:00 2001
2From: Joshua Watt <JPEWhacker@gmail.com>
3Date: Wed, 21 Feb 2018 13:38:35 -0600
4Subject: [PATCH] comp_mk: Allow doxygen support to be overridden
5
6Support for Doxygen can be globally disabled by setting the
7DOXYGEN_SUPPORT environment variable to "no"
8
9Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
10---
11 comp_top.mk | 9 +++++++--
12 1 file changed, 7 insertions(+), 2 deletions(-)
13
14diff --git a/comp_top.mk b/comp_top.mk
15index 28700ba..e331132 100644
16--- a/comp_top.mk
17+++ b/comp_top.mk
18@@ -114,6 +114,11 @@ comp_FIRM_LIST_CLEAN = $(addsuffix _clean, $($(COMP)_FIRM_LIST))
19 comp_PKG_LIST_ALL_CLEAN = $(addsuffix _clean, $(comp_PKG_LIST_ALL))
20 comp_PKG_LIST_PACKAGE = $(addsuffix _package, $(comp_PKG_LIST_ALL))
21
22+# If the component enables doxygen, this will evaluate to "yesyes" and doxygen
23+# will be built. If this value is overridden by the user to any other value, or
24+# $(COMP)_DOXYGEN_SUPPORT is not "yes", doxygen is not built.
25+DOXYGEN_SUPPORT ?= yes$($(COMP)_DOXYGEN_SUPPORT)
26+
27 .PHONY : apps appcores app_clean clean_appcores \
28 lib libcores lib_allendians lib_clean clean_libcores clean_lib_allendians \
29 all comp_libs comp_libs_clean examples examples_clean clean package $(comp_PKG_LIST_ALL) \
30@@ -230,7 +235,7 @@ xdc_meta_clean:
31 $(XDC) clean XDCBUILDCFG=config_mk.bld
32
33 doxygen:
34-ifeq ($($(COMP)_DOXYGEN_SUPPORT),yes)
35+ifeq ($(DOXYGEN_SUPPORT),yesyes)
36 $(ECHO) Creating Doxygen API guide ...
37 @doxygen docs/Doxyfile
38 else
39@@ -238,7 +243,7 @@ else
40 endif
41
42 clean_doxygen:
43-ifeq ($($(COMP)_DOXYGEN_SUPPORT),yes)
44+ifeq ($(DOXYGEN_SUPPORT),yesyes)
45 $(ECHO) cleaned Doxygen API guide ...
46 $(RM) -rf docs/doxygen
47 else
48--
492.14.3
50