Add makefile support to ti-pdk.bbclass for RTOS components
PATCH 1/6 Add makefile support to ti-pdk.bbclass for RTOS components
Signed-off-by Justin Sobota <[email protected]>
--- classes/ti-pdk.bbclass | 59 ++++++++++++++++---- recipes-ti/ti-pdk-build/ti-pdk-build-rtos_git.bb | 65 ++++++++++++++++++++++ 2 files changed, 112 insertions(+), 12 deletions(-) create mode 100644 recipes-ti/ti-pdk-build/ti-pdk-build-rtos_git.bb
classes/ti-pdk.bbclass +47 -12
@@ -3,14 +3,26 @@ 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" +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-pdk-build-rtos" -DEPENDS_append_omap-a15 = " ti-cgt6x-native ti-ccsv6-native" -DEPENDS_append_keystone = " ti-cgt6x-native" +DEPENDS_append_omap-a15 = " ti-ccsv6-native" +DEPENDS_remove_ti33x = "ti-cgt6x-native" +DEPENDS_remove_ti43x = "ti-cgt6x-native" S = "${WORKDIR}/git" B = "${WORKDIR}/build" +# HTML hyperlink text +PDK_COMP_LINK_TEXT ?= "" + +DOC_FILE = "API_Documentation_${PN}.html" + +create_doc_link () { + PDK_COMP_DIR=`get_build_dir_bash` + + echo "<a href=\"${PDK_COMP_DIR}/docs/doxygen/html/index.html\">${PDK_COMP_LINK_TEXT}</a>" >> ${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc/${DOC_FILE} +} + get_build_dir_bash() { if [ -f ${S}/package.xdc ] then
@@ -36,6 +48,10 @@ export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" export XDCPATH = "${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_INSTALL_DIR}/packages" export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" +XDCMAKE ?= "1" +LIMSOCS ?= "" +LIMBOARDS ?= "" + PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" do_configure() {
@@ -43,24 +59,43 @@ do_configure() { mkdir -p ${BUILD_DIR} cp -r ${S}/* ${BUILD_DIR} - cd ${BUILD_DIR} - sed -i "s/\ \"\.\\\\\\\\\"\ +//" src/Module.xs - find -name "*.xs" -exec sed -i "s/ofd6x\.exe/ofd6x/" {} \; - find -name "*.xs" -exec sed -i "s/sectti\.exe/sectti/" {} \; - find -name "*.xs" -exec sed -i "/\.chm/d" {} \; - find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \; + if [ "${XDCMAKE}" == "1" ] + then + cd ${BUILD_DIR} + + sed -i "s/\ \"\.\\\\\\\\\"\ +//" src/Module.xs + find -name "*.xs" -exec sed -i "s/ofd6x\.exe/ofd6x/" {} \; + find -name "*.xs" -exec sed -i "s/sectti\.exe/sectti/" {} \; + find -name "*.xs" -exec sed -i "/\.chm/d" {} \; + find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \; + fi } do_compile() { - ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . - ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${XDCARGS}" ROOTDIR="${ROOTDIR}" -PR . - ${XDC_INSTALL_DIR}/xdc release XDCARGS="${XDCARGS}" -PR . + + if [ "${XDCMAKE}" == "1" ] + then + ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . + ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${XDCARGS}" ROOTDIR="${ROOTDIR}" -PR . + ${XDC_INSTALL_DIR}/xdc release XDCARGS="${XDCARGS}" -PR . + else + BUILD_DIR=${B}/`get_build_dir_bash` + cd ${BUILD_DIR} + + make release LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}" + fi } do_install () { install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages find -name "*.tar" -exec tar xf {} -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages \; + + if [ "${PDK_COMP_LINK_TEXT}" != "" ] + then + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc + create_doc_link + fi } FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
recipes-ti/ti-pdk-build/ti-pdk-build-rtos_git.bb new file +65 -0
65 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH 3/6 pa-lld: Bump version
Signed-off-by Justin Sobota <[email protected]>
--- recipes-bsp/pa-lld/pa-lld.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-bsp/pa-lld/pa-lld.inc +4 -4
@@ -9,16 +9,16 @@ PA_LLD_GIT_PROTOCOL = "git" PA_LLD_GIT_BRANCH = "master" PA_LLD_GIT_DESTSUFFIX = "git/ti/drv/pa" -# Below Commit ID corresponds to "DEV.PA_LLD.03.00.01.08A" -PA_LLD_SRCREV = "9294e42fd5763555c28e46b51246bab439fd552e" +# Below Commit ID corresponds to "DEV.PA_LLD.03.00.01.12" +PA_LLD_SRCREV = "d3f3f5d93d3febc24099974bbc77e67c80a83b1e" BRANCH = "${PA_LLD_GIT_BRANCH}" SRC_URI = "${PA_LLD_GIT_URI};destsuffix=${PA_LLD_GIT_DESTSUFFIX};protocol=${PA_LLD_GIT_PROTOCOL};branch=${BRANCH} \ file://0001-makefile_armv7-fix-missing-separator-error.patch" SRCREV = "${PA_LLD_SRCREV}" -PV = "03.00.01.08" -INC_PR = "r1" +PV = "03.00.01.12" +INC_PR = "r2" S = "${WORKDIR}/${PA_LLD_GIT_DESTSUFFIX}"
Signature · 1 line
1.7.10.4
PATCH 4/6 rm-lld: Bump version
In reply to Justin SobotaSigned-off-by Justin Sobota <[email protected]>
--- recipes-bsp/rm-lld/rm-lld.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-bsp/rm-lld/rm-lld.inc +4 -4
@@ -7,15 +7,15 @@ RM_LLD_GIT_PROTOCOL = "git" RM_LLD_GIT_BRANCH = "master" RM_LLD_GIT_DESTSUFFIX = "git/ti/drv/rm" -# Below commit ID corresponds to DEV.RM_LLD.02.02.00.01 -RM_LLD_SRCREV = "841f2df9726f456d6c026c0aa03095699962d048" +# Below commit ID corresponds to "DEV.RM_LLD.02.02.00.02" +RM_LLD_SRCREV = "6165053f88d1ccb5083f797d24800d5400804647" BRANCH = "${RM_LLD_GIT_BRANCH}" SRC_URI = "${RM_LLD_GIT_URI};destsuffix=${RM_LLD_GIT_DESTSUFFIX};protocol=${RM_LLD_GIT_PROTOCOL};branch=${BRANCH}" SRCREV = "${RM_LLD_SRCREV}" -PV = "02.02.00.01" -INC_PR = "r0" +PV = "02.02.00.02" +INC_PR = "r1" COMPATIBLE_MACHINE = "keystone"
Signature · 1 line
1.7.10.4
PATCH 6/6 srio-lld: Bump version
In reply to Justin SobotaSigned-off-by Justin Sobota <[email protected]>
--- recipes-bsp/srio-lld/srio-lld.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-bsp/srio-lld/srio-lld.inc +4 -4
@@ -8,15 +8,15 @@ SRIO_LLD_GIT_PROTOCOL = "git" SRIO_LLD_GIT_BRANCH = "master" SRIO_LLD_GIT_DESTSUFFIX = "git/ti/drv/srio" -# commit ID corresponding to DEV.SRIO_LLD.02.00.00.15 -SRIO_LLD_SRCREV = "b773a7d08225c30737abc45ebc92a186bac08797" +# commit ID corresponding to "DEV.SRIO_LLD.02.00.00.16" +SRIO_LLD_SRCREV = "70664382b7baf0fc52b3504cc58d6d0d720cc639" BRANCH = "${SRIO_LLD_GIT_BRANCH}" SRC_URI = "${SRIO_LLD_GIT_URI};destsuffix=${SRIO_LLD_GIT_DESTSUFFIX};protocol=${SRIO_LLD_GIT_PROTOCOL};branch=${BRANCH}" SRCREV = "${SRIO_LLD_SRCREV}" -PV = "02.00.00.15" -INC_PR = "r0" +PV = "02.00.00.16" +INC_PR = "r1" DEVICELIST = "k2h k2k"
Signature · 1 line
1.7.10.4
PATCH 2/6 common-csl-ip: Bump version common-csl-ip-rtos: Move to new makefile support provided in ti-pdk.bbclass
In reply to Justin SobotaSigned-off-by Justin Sobota <[email protected]>
--- .../common-csl-ip/common-csl-ip-rtos_git.bb | 28 +++++++++----------- recipes-bsp/common-csl-ip/common-csl-ip.inc | 8 +++--- 2 files changed, 16 insertions(+), 20 deletions(-)
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb +12 -16
@@ -1,5 +1,5 @@ require common-csl-ip.inc -PR = "${INC_PR}.2" +PR = "${INC_PR}.3" PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -7,20 +7,16 @@ inherit ti-pdk DEPENDS_remove = "${PN}" -XDCARGS_ti33x = "am335x" -XDCARGS_ti43x = "am437x" -XDCARGS_omap-a15 = "am571x am572x" -XDCARGS_k2hk-evm = "k2h k2k" -XDCARGS_k2l-evm = "k2l" -XDCARGS_k2e-evm = "k2e" -XDCARGS_k2g-evm = "k2g" +# Build with make instead of XDC +XDCMAKE = "0" -do_configure_append() { - # Create empty makefile - # If libraries are supported for this device, then this will be overwritten - cat > ${BUILD_DIR}/makefile << __EOF__ -# Nothing to do -all: +LIMSOCS_ti33x = "am335x" +LIMSOCS_ti43x = "am437x" +LIMSOCS_omap-a15 = "am571x am572x" +LIMSOCS_k2hk-evm = "k2h k2k" +LIMSOCS_k2l-evm = "k2l" +LIMSOCS_k2e-evm = "k2e" +LIMSOCS_k2g-evm = "k2g" -__EOF__ -} +export PDK_CSL_ROOT_PATH ="${WORKDIR}/build" +export DEST_ROOT="${S}"
recipes-bsp/common-csl-ip/common-csl-ip.inc +4 -4
@@ -4,16 +4,16 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21" COMPATIBLE_MACHINE = "keystone|dra7xx" -PV = "3.3.0.2C" -INC_PR = "r0" +PV = "3.3.0.3B" +INC_PR = "r1" CSL_GIT_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git" CSL_GIT_PROTOCOL ="git" CSL_GIT_BRANCH = "master" CSL_GIT_DESTSUFFIX = "git" -# commit ID corresponds to DEV.CSL_PROCESSOR-SDK.03.03.00.02C -CSL_SRCREV = "dc8aac00e86cd434865d750666ac551f2e238263" +# Below commit ID corresponds to "DEV.CSL_PROCESSOR-SDK.03.03.00.03B" +CSL_SRCREV = "a4ac2bb969096458a4cd9d21ff37073b513ff3b8" BRANCH="${CSL_GIT_BRANCH}" SRC_URI = "${CSL_GIT_URI};protocol=${CSL_GIT_PROTOCOL};branch=${BRANCH};destsuffix=${CSL_GIT_DESTSUFFIX}"
Signature · 1 line
1.7.10.4
PATCH 5/6 sa-lld: Bump version
In reply to Justin SobotaSigned-off-by Justin Sobota <[email protected]>
--- recipes-bsp/sa-lld/sa-lld.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-bsp/sa-lld/sa-lld.inc +4 -4
@@ -8,14 +8,14 @@ SA_LLD_GIT_PROTOCOL = "git" SA_LLD_GIT_BRANCH = "master" SA_LLD_GIT_DESTSUFFIX = "git/ti/drv/sa" -# Following commit DEV.SA_LLD.03.00.00.13A -SA_LLD_SRCREV = "5918d9a519789c34368388c49869cb857d6255f7" +# Below commit ID corresponds to "DEV.SA_LLD.03.00.00.14" +SA_LLD_SRCREV = "e0448f5172f9a4d945f9ad1b2a583574c378b5c7" BRANCH = "${SA_LLD_GIT_BRANCH}" SRC_URI = "${SA_LLD_GIT_URI};destsuffix=${SA_LLD_GIT_DESTSUFFIX};protocol=${SA_LLD_GIT_PROTOCOL};branch=${BRANCH}" SRCREV = "${SA_LLD_SRCREV}" -PV = "03.00.00.13" -INC_PR = "r1" +PV = "03.00.00.14" +INC_PR = "r2" S = "${WORKDIR}/${SA_LLD_GIT_DESTSUFFIX}"
Signature · 1 line
1.7.10.4
Re: [master/krogoth][PATCH 2/6] common-csl-ip: Bump version common-csl-ip-rtos: Move to new makefile support provided in ti-pdk.bbclass
In reply to Justin SobotaPlease fix the subject of this commit - it's too long.
Quoted 82 lines · Justin Sobota
Signed-off-by Justin Sobota <[email protected]>--- .../common-csl-ip/common-csl-ip-rtos_git.bb | 28 +++++++++----------- recipes-bsp/common-csl-ip/common-csl-ip.inc | 8 +++--- 2 files changed, 16 insertions(+), 20 deletions(-)recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb +12
-16@@ -1,5 +1,5 @@ require common-csl-ip.inc -PR = "${INC_PR}.2" +PR = "${INC_PR}.3" PACKAGE_ARCH = "${MACHINE_ARCH}"@@ -7,20 +7,16 @@ inherit ti-pdk DEPENDS_remove = "${PN}" -XDCARGS_ti33x = "am335x" -XDCARGS_ti43x = "am437x" -XDCARGS_omap-a15 = "am571x am572x" -XDCARGS_k2hk-evm = "k2h k2k" -XDCARGS_k2l-evm = "k2l" -XDCARGS_k2e-evm = "k2e" -XDCARGS_k2g-evm = "k2g" +# Build with make instead of XDC +XDCMAKE = "0" -do_configure_append() { - # Create empty makefile - # If libraries are supported for this device, then this will be overwritten - cat > ${BUILD_DIR}/makefile << __EOF__ -# Nothing to do -all: +LIMSOCS_ti33x = "am335x" +LIMSOCS_ti43x = "am437x" +LIMSOCS_omap-a15 = "am571x am572x" +LIMSOCS_k2hk-evm = "k2h k2k" +LIMSOCS_k2l-evm = "k2l" +LIMSOCS_k2e-evm = "k2e" +LIMSOCS_k2g-evm = "k2g" -__EOF__ -} +export PDK_CSL_ROOT_PATH ="${WORKDIR}/build" +export DEST_ROOT="${S}"recipes-bsp/common-csl-ip/common-csl-ip.inc +4
-4@@ -4,16 +4,16 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21" COMPATIBLE_MACHINE = "keystone|dra7xx" -PV = "3.3.0.2C" -INC_PR = "r0" +PV = "3.3.0.3B" +INC_PR = "r1" CSL_GIT_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git" CSL_GIT_PROTOCOL ="git" CSL_GIT_BRANCH = "master" CSL_GIT_DESTSUFFIX = "git" -# commit ID corresponds to DEV.CSL_PROCESSOR-SDK.03.03.00.02C -CSL_SRCREV = "dc8aac00e86cd434865d750666ac551f2e238263" +# Below commit ID corresponds to "DEV.CSL_PROCESSOR-SDK.03.03.00.03B" +CSL_SRCREV = "a4ac2bb969096458a4cd9d21ff37073b513ff3b8" BRANCH="${CSL_GIT_BRANCH}" SRC_URI = "${CSL_GIT_URI};protocol=${CSL_GIT_PROTOCOL};branch=${BRANCH};destsuffix=${CSL_GIT_DESTSUFFIX}"Signature · 7 lines
1.7.10.4 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti