doxygen: import from meta-arago
PATCH 3/4 openmp-rtos: depend on doxygen-native for documentation
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- recipes-ti/openmp-rtos/openmp-rtos_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-ti/openmp-rtos/openmp-rtos_git.bb +1 -1
@@ -19,7 +19,7 @@ SRCREV = "a2a518dcc9154a372b38bd5be8a483359123823c" LIC_FILES_CHKSUM = "file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7c056195d7ebafee" -DEPENDS = "common-csl-ip-rtos ti-xdctools ti-ipc-rtos ti-sysbios ti-cgt6x-native libulm zip-native" +DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools ti-ipc-rtos ti-sysbios ti-cgt6x-native zip-native" DEPENDS_append_k2hk = " qmss-lld-rtos cppi-lld-rtos" DEPENDS_append_k2e = " qmss-lld-rtos cppi-lld-rtos" DEPENDS_append_k2l-evm = " qmss-lld-rtos cppi-lld-rtos"
Signature · 1 line
2.7.4
PATCH 4/4 layer.conf: remove doxygen from HOSTTOOLS, depend on doxygen-native instead
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- conf/layer.conf | 3 --- 1 file changed, 3 deletions(-)
conf/layer.conf +0 -3
@@ -27,6 +27,3 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \ qmss-lld \ multiprocmgr \ " - -# Required by openmp-rtos "docs" target -HOSTTOOLS_NONFATAL += "doxygen"
Signature · 1 line
2.7.4
PATCH 1/4 doxygen: import from meta-arago
From: Denys Dmytriyenko <[email protected]>
Many LLD and RTOS components in meta-ti use doxygen during build.
--- .../doxygen/doxygen/patch-flex_2_6_0.diff | 66 ++++++++++++++++++++++ recipes-devtools/doxygen/doxygen_1.8.9.1.bb | 34 +++++++++++ 2 files changed, 100 insertions(+) create mode 100644 recipes-devtools/doxygen/doxygen/patch-flex_2_6_0.diff create mode 100644 recipes-devtools/doxygen/doxygen_1.8.9.1.bb
recipes-devtools/doxygen/doxygen/patch-flex_2_6_0.diff new file +66 -0
@@ -0,0 +1,66 @@ +--- src/code.l.orig ++++ src/code.l +@@ -3695,7 +3695,7 @@ void codeFreeScanner() + extern "C" { // some bogus code to keep the compiler happy + void codeYYdummy() { yy_flex_realloc(0,0); } + } +-#elif YY_FLEX_SUBMINOR_VERSION<33 ++#elif YY_FLEX_MAJOR_VERSION<=2 && YY_FLEX_MINOR_VERSION<=5 && YY_FLEX_SUBMINOR_VERSION<33 + #error "You seem to be using a version of flex newer than 2.5.4 but older than 2.5.33. These versions do NOT work with doxygen! Please use version <=2.5.4 or >=2.5.33 or expect things to be parsed wrongly!" + #endif + +--- src/commentscan.l.orig ++++ src/commentscan.l +@@ -1098,7 +1098,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$" + // but we need to know the position in the input buffer where this + // rule matched. + // for flex 2.5.33+ we should use YY_CURRENT_BUFFER_LVALUE +-#if YY_FLEX_MINOR_VERSION>=5 && YY_FLEX_SUBMINOR_VERSION>=33 ++#if YY_FLEX_MAJOR_VERSION>=2 && (YY_FLEX_MINOR_VERSION>5 || (YY_FLEX_MINOR_VERSION==5 && YY_FLEX_SUBMINOR_VERSION>=33)) + inputPosition=prevPosition + (int)(yy_bp - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf); + #else + inputPosition=prevPosition + (int)(yy_bp - yy_current_buffer->yy_ch_buf); +@@ -1160,7 +1160,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$" + g_memberGroupHeader.resize(0); + parseMore=TRUE; + needNewEntry = TRUE; +-#if YY_FLEX_MINOR_VERSION>=5 && YY_FLEX_SUBMINOR_VERSION>=33 ++#if YY_FLEX_MAJOR_VERSION>=2 && (YY_FLEX_MINOR_VERSION>5 || (YY_FLEX_MINOR_VERSION==5 && YY_FLEX_SUBMINOR_VERSION>=33)) + inputPosition=prevPosition + (int)(yy_bp - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf) + strlen(yytext); + #else + inputPosition=prevPosition + (int)(yy_bp - yy_current_buffer->yy_ch_buf) + strlen(yytext); + +--- src/fortrancode.l.orig ++++ src/fortrancode.l +@@ -1289,7 +1289,7 @@ void parseFortranCode(CodeOutputInterfac + extern "C" { // some bogus code to keep the compiler happy + void fortrancodeYYdummy() { yy_flex_realloc(0,0); } + } +-#elif YY_FLEX_SUBMINOR_VERSION<33 ++#elif YY_FLEX_MAJOR_VERSION<=2 && YY_FLEX_MINOR_VERSION<=5 && YY_FLEX_SUBMINOR_VERSION<33 + #error "You seem to be using a version of flex newer than 2.5.4 but older than 2.5.33. These versions do NOT work with doxygen! Please use version <=2.5.4 or >=2.5.33 or expect things to be parsed wrongly!" + #else + extern "C" { // some bogus code to keep the compiler happy + +--- src/pycode.l.orig ++++ src/pycode.l +@@ -1503,7 +1503,7 @@ void parsePythonCode(CodeOutputInterface + extern "C" { // some bogus code to keep the compiler happy + void pycodeYYdummy() { yy_flex_realloc(0,0); } + } +-#elif YY_FLEX_SUBMINOR_VERSION<33 ++#elif YY_FLEX_MAJOR_VERSION<=2 && YY_FLEX_MINOR_VERSION<=5 && YY_FLEX_SUBMINOR_VERSION<33 + #error "You seem to be using a version of flex newer than 2.5.4. These are currently incompatible with 2.5.4, and do NOT work with doxygen! Please use version 2.5.4 or expect things to be parsed wrongly! A bug report has been submitted (#732132)." + #endif + +--- src/vhdlcode.l ++++ src.a/vhdlcode.l +@@ -1613,7 +1613,7 @@ void codeFreeVhdlScanner() + extern "C" { // some bogus code to keep the compiler happy + void vhdlcodeYYdummy() { yy_flex_realloc(0,0); } + } +-#elif YY_FLEX_SUBMINOR_VERSION<33 ++#elif YY_FLEX_MAJOR_VERSION<=2 && YY_FLEX_MINOR_VERSION<=5 && YY_FLEX_SUBMINOR_VERSION<33 + #error "You seem to be using a version of flex newer than 2.5.4 but older than 2.5.33. These versions do NOT work with doxygen! Please use version <=2.5.4 or >=2.5.33 or expect things to be parsed wrongly!" + #endif +
recipes-devtools/doxygen/doxygen_1.8.9.1.bb new file +34 -0
@@ -0,0 +1,34 @@ +SUMMARY = "Utilities for generating documentation from source code" +HOMEPAGE = "http://www.doxygen.org/" +SECTION = "console/utils" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b380c86cea229fa42b9e543fc491f5eb" + +DEPENDS = "flex-native bison-native" + +SRC_URI = "http://ftp.stack.nl/pub/users/dimitri/${BP}.src.tar.gz \ + file://patch-flex_2_6_0.diff;striplevel=0" + +SRC_URI[md5sum] = "3d1a5c26bef358c10a3894f356a69fbc" +SRC_URI[sha256sum] = "d4ab6e28d4d45d8956cad17470aade3fbe2356e8f64b92167e738c1887feccec" + +EXTRA_OECONF = "--prefix ${prefix}" + +do_configure () { + ./configure ${EXTRA_OECONF} + + # TODO on rebuilds will repeatedly append. Change logic to include a + # separate file and overwrite that file? + echo "TMAKE_CC=${CC}" >> tmake/lib/linux-g++/tmake.conf + echo "TMAKE_CXX=${CXX}" >> tmake/lib/linux-g++/tmake.conf + echo "TMAKE_CFLAGS=${CFLAGS}" >> tmake/lib/linux-g++/tmake.conf + echo "TMAKE_CXXFLAGS=${CXXFLAGS}" >> tmake/lib/linux-g++/tmake.conf + echo "TMAKE_LINK=${CXX}" >> tmake/lib/linux-g++/tmake.conf + echo "TMAKE_LFLAGS=${LDFLAGS}" >> tmake/lib/linux-g++/tmake.conf +} + +do_install() { + oe_runmake install DESTDIR=${D} MAN1DIR=share/man/man1 +} + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4
PATCH 2/4 ti-pdk.bbclass: depend on doxygen native for documentation
From: Denys Dmytriyenko <[email protected]>
--- classes/ti-pdk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
classes/ti-pdk.bbclass +1 -1
@@ -3,7 +3,7 @@ require recipes-ti/includes/ti-staging.inc inherit perlnative -DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios common-csl-ip-rtos libxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-cgt-pru-native ti-pdk-build-rtos" +DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios common-csl-ip-rtos libxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-cgt-pru-native ti-pdk-build-rtos doxygen-native" DEPENDS_append_omap-a15 = " ti-cgt-arm-native" DEPENDS_remove_ti33x = "ti-cgt6x-native"
Signature · 1 line
2.7.4
Re: [rocko/master][PATCH 3/4] openmp-rtos: depend on doxygen-native for documentation
In reply to Denys DmytriyenkoQuoted 18 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- recipes-ti/openmp-rtos/openmp-rtos_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes- renamed from recipes-ti/openmp-rtos/openmp-rtos_git.bb +0
-0ti/openmp-rtos/openmp-rtos_git.bb
index f5bf476..df082ea 100644recipes-ti/openmp-rtos/openmp-rtos_git.bb +0
-0@@ -19,7 +19,7 @@ SRCREV = "a2a518dcc9154a372b38bd5be8a483359123823c" LIC_FILES_CHKSUM ="file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7
c056195d7ebafee"
Quoted 10 lines
-DEPENDS = "common-csl-ip-rtos ti-xdctools ti-ipc-rtos ti-sysbios ti- cgt6x-native libulm zip-native"
+DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools ti- ipc-rtos ti-sysbios ti-cgt6x-native zip-native"
DEPENDS_append_k2hk= " qmss-lld-rtos cppi-lld-rtos"DEPENDS_append_k2e= " qmss-lld-rtos cppi-lld-rtos" DEPENDS_append_k2l-evm = " qmss-lld-rtos cppi-lld-rtos"Signature · 1 line
2.7.4
Can we backport this to morty please?
Re: [rocko/master][PATCH 2/4] ti-pdk.bbclass: depend on doxygen native for documentation
In reply to Denys DmytriyenkoQuoted 22 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- classes/ti-pdk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)classes/ti-pdk.bbclass +0
-1@@ -3,7 +3,7 @@ require recipes-ti/includes/ti-staging.inc inherit perlnative -DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios common-csl-ip-rtos libxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x- native ti-cgt-pru-native ti-pdk-build-rtos"
+DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios common-csl-ip- rtos libxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x- native ti-cgt-pru-native ti-pdk-build-rtos doxygen-native"
Quoted 5 lines
DEPENDS_append_omap-a15 = " ti-cgt-arm-native"
DEPENDS_remove_ti33x= "ti-cgt6x-native"Signature · 1 line
2.7.4
Can we backport this to morty please?
Re: [rocko/master][PATCH 3/4] openmp-rtos: depend on doxygen-native for documentation
In reply to Joshua WattQuoted 19 lines · Joshua Watt
Quoted 18 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- recipes-ti/openmp-rtos/openmp-rtos_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes- renamed from recipes-ti/openmp-rtos/openmp-rtos_git.bb +0
-0ti/openmp-rtos/openmp-rtos_git.bb
index f5bf476..df082ea 100644recipes-ti/openmp-rtos/openmp-rtos_git.bb +0
-0@@ -19,7 +19,7 @@ SRCREV = "a2a518dcc9154a372b38bd5be8a483359123823c" LIC_FILES_CHKSUM ="file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7
c056195d7ebafee"
Quoted 11 lines
Quoted 10 lines
-DEPENDS = "common-csl-ip-rtos ti-xdctools ti-ipc-rtos ti-sysbios ti- cgt6x-native libulm zip-native"
+DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools ti- ipc-rtos ti-sysbios ti-cgt6x-native zip-native"
DEPENDS_append_k2hk= " qmss-lld-rtos cppi-lld-rtos"DEPENDS_append_k2e= " qmss-lld-rtos cppi-lld-rtos" DEPENDS_append_k2l-evm = " qmss-lld-rtos cppi-lld-rtos"Signature · 1 line
2.7.4Can we backport this to morty please?
This change requires adding doxygen recipe to meta-ti, which is a new feature and not a simple bugfix. It's probably too late for adding new stuff to morty.
Do you have specific issues with the way it used to work in morty? Since there weren't RSS or HOSTTOOLS restrictions in morty, host-wide doxygen install used to work just fine then.
Signature · 1 line
Denys
Re: [rocko/master][PATCH 3/4] openmp-rtos: depend on doxygen-native for documentation
Quoted 42 lines · Denys Dmytriyenko
Quoted 21 lines · Joshua Watt
Quoted 20 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- recipes-ti/openmp-rtos/openmp-rtos_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes- renamed from recipes-ti/openmp-rtos/openmp-rtos_git.bb +0
-0ti/openmp-rtos/openmp-rtos_git.bb
index f5bf476..df082ea 100644recipes-ti/openmp-rtos/openmp-rtos_git.bb +0
-0@@ -19,7 +19,7 @@ SRCREV ="
a2a518dcc9154a372b38bd5be8a483359123823c"
LIC_FILES_CHKSUM=
"file://docs/license/omp_manifest_template.html;md5=61a6972303c04 47b7c056195d7ebafee"Quoted 14 lines
Quoted 12 lines
-DEPENDS = "common-csl-ip-rtos ti-xdctools ti-ipc-rtos ti-sysbios ti-
cgt6x-native libulm zip-native"
+DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools ti-
ipc-rtos ti-sysbios ti-cgt6x-native zip-native"
DEPENDS_append_k2hk= " qmss-lld-rtos cppi-lld-rtos"DEPENDS_append_k2e= " qmss-lld-rtos cppi-lld-rtos" DEPENDS_append_k2l-evm = " qmss-lld-rtos cppi-lld-rtos"Signature · 1 line
2.7.4Can we backport this to morty please?
This change requires adding doxygen recipe to meta-ti, which is a new feature
and not a simple bugfix. It's probably too late for adding new stuff to morty.
Quoted 5 lines
Do you have specific issues with the way it used to work in morty? Since there
weren't RSS or HOSTTOOLS restrictions in morty, host-wide doxygen install used
to work just fine then.
Ya makes sense... We have been carrying around a bbappend that did the same thing as this patch, but we've always had a doxygen recipe in our layer setup. I missed/forgot that doxygen *wasn't* in meta-ti (on morty). We can just keep using the bbappend, sorry for the noise