Add CSL RTOS package.
cover Add CSL RTOS package.
* and restructure common-csl-ip so that a common file may be used to specify source and version.
Jacob Stiffler (4):
ti-paths: Add PDK_INSTALL_DIR for RTOS drivers.
common-csl-ip: Seperate source and version into include file. common-csl-ip.inc: Add source revision for dra7xx.
common-csl-ip-rtos: Add CSL RTOS package.
.../common-csl-ip/common-csl-ip-rtos_git.bb | 33 ++++++++++++++++++++ recipes-bsp/common-csl-ip/common-csl-ip.inc | 18 +++++++++++ recipes-bsp/common-csl-ip/common-csl-ip_git.bb | 13 ++------ recipes-ti/includes/ti-paths.inc | 3 +- 4 files changed, 56 insertions(+), 11 deletions(-) create mode 100644 recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb create mode 100644 recipes-bsp/common-csl-ip/common-csl-ip.inc
Signature · 1 line
1.7.9.5
PATCH 1/4 ti-paths: Add PDK_INSTALL_DIR for RTOS drivers.
--- recipes-ti/includes/ti-paths.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-ti/includes/ti-paths.inc +2 -1
@@ -43,6 +43,7 @@ export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree" export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree" export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree" export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree" +export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree" # This is where the tools will end up in sysroot export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"
@@ -76,10 +77,10 @@ export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECI export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}" export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}" export XDC_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDC_INSTALL_DIR_RECIPE}" +export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}" DSPSUFFIX_omapl137 = "x674" DSPSUFFIX_omapl138 = "x674" DSPSUFFIX_ti816x = "xe674" DSPSUFFIX_ti814x = "xe674" DSPSUFFIX ?= "x64P" -
Signature · 1 line
1.7.9.5
Re: [PATCH 1/4] ti-paths: Add PDK_INSTALL_DIR for RTOS drivers.
Ack
Quoted 37 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-ti/includes/ti-paths.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)recipes-ti/includes/ti-paths.inc +2
-1@@ -43,6 +43,7 @@ export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree" export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree" export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree" export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree" +export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree" # This is where the tools will end up in sysroot export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"@@ -76,10 +77,10 @@ export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECI export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}" export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}" export XDC_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDC_INSTALL_DIR_RECIPE}" +export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}" DSPSUFFIX_omapl137 = "x674" DSPSUFFIX_omapl138 = "x674" DSPSUFFIX_ti816x = "xe674" DSPSUFFIX_ti814x = "xe674" DSPSUFFIX ?= "x64P" -Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
PATCH 2/4 common-csl-ip: Seperate source and version into include file.
In reply to Jacob Stiffler--- recipes-bsp/common-csl-ip/common-csl-ip.inc | 10 ++++++++++ recipes-bsp/common-csl-ip/common-csl-ip_git.bb | 13 +++---------- 2 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 recipes-bsp/common-csl-ip/common-csl-ip.inc
recipes-bsp/common-csl-ip/common-csl-ip.inc new file +10 -0
@@ -0,0 +1,10 @@ +DESCRIPTION = "Chip support library low level interface" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21" + +COMPATIBLE_MACHINE = "keystone" + +BRANCH="master" +SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}" +# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.07A +SRCREV = "c78867df9165fdf8042fb692fcea776fc0102326"
recipes-bsp/common-csl-ip/common-csl-ip_git.bb +3 -10
@@ -1,15 +1,8 @@ -DESCRIPTION = "Chip support library low level interface" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21" - -COMPATIBLE_MACHINE = "keystone" -ALLOW_EMPTY_${PN} = "1" +require common-csl-ip.inc PR = "r3" -BRANCH="master" -SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}" -# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.07A -SRCREV = "c78867df9165fdf8042fb692fcea776fc0102326" + +ALLOW_EMPTY_${PN} = "1" S = "${WORKDIR}/git"
Signature · 1 line
1.7.9.5
Re: [PATCH 2/4] common-csl-ip: Seperate source and version into include file.
Ack
Quoted 54 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-bsp/common-csl-ip/common-csl-ip.inc | 10 ++++++++++ recipes-bsp/common-csl-ip/common-csl-ip_git.bb | 13 +++---------- 2 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 recipes-bsp/common-csl-ip/common-csl-ip.increcipes-bsp/common-csl-ip/common-csl-ip.inc new file +10
-0@@ -0,0 +1,10 @@ +DESCRIPTION = "Chip support library low level interface" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21" + +COMPATIBLE_MACHINE = "keystone" + +BRANCH="master" +SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}" +# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.07A +SRCREV = "c78867df9165fdf8042fb692fcea776fc0102326"recipes-bsp/common-csl-ip/common-csl-ip_git.bb +3
-10@@ -1,15 +1,8 @@ -DESCRIPTION = "Chip support library low level interface" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21" - -COMPATIBLE_MACHINE = "keystone" -ALLOW_EMPTY_${PN} = "1" +require common-csl-ip.inc PR = "r3" -BRANCH="master" -SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}" -# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.07A -SRCREV = "c78867df9165fdf8042fb692fcea776fc0102326" + +ALLOW_EMPTY_${PN} = "1" S = "${WORKDIR}/git"Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
PATCH 3/4 common-csl-ip.inc: Add source revision for dra7xx.
In reply to Jacob Stiffler--- recipes-bsp/common-csl-ip/common-csl-ip.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
recipes-bsp/common-csl-ip/common-csl-ip.inc +10 -2
@@ -2,9 +2,17 @@ DESCRIPTION = "Chip support library low level interface" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21" -COMPATIBLE_MACHINE = "keystone" +COMPATIBLE_MACHINE = "keystone|dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + BRANCH="master" -SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}" +BRANCH_dra7xx = "releases/PROCESSOR-SDK.01.00.00" + +SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH};destsuffix=${S}" + # commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.07A SRCREV = "c78867df9165fdf8042fb692fcea776fc0102326" + +# commit ID corresponds to PROCESSOR-SDK-ALPHA-1 +SRCREV_dra7xx = "37c5311ddf289f83b1432a9422816722d264bf55"
Signature · 1 line
1.7.9.5
Re: [PATCH 3/4] common-csl-ip.inc: Add source revision for dra7xx.
Ack, but please explain below.
Quoted 13 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-bsp/common-csl-ip/common-csl-ip.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)recipes-bsp/common-csl-ip/common-csl-ip.inc +0
-0@@ -2,9 +2,17 @@ DESCRIPTION = "Chip support library low level interface" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21"
recipes-bsp/common-csl-ip/common-csl-ip.inc DESCRIPTION = "Chip support library low level interface" · line 12
Quoted 10 lines
recipes-bsp/common-csl-ip/common-csl-ip.inc +6
-2-COMPATIBLE_MACHINE = "keystone" +COMPATIBLE_MACHINE = "keystone|dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + BRANCH="master" -SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}" +BRANCH_dra7xx = "releases/PROCESSOR-SDK.01.00.00" + +SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH};destsuffix=${S}"
Why do you need destsuffix?
Quoted 13 lines
recipes-bsp/common-csl-ip/common-csl-ip.inc +3
-0# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.07A SRCREV = "c78867df9165fdf8042fb692fcea776fc0102326" + +# commit ID corresponds to PROCESSOR-SDK-ALPHA-1 +SRCREV_dra7xx = "37c5311ddf289f83b1432a9422816722d264bf55"Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 3/4] common-csl-ip.inc: Add source revision for dra7xx.
Quoted 22 lines · Denys Dmytriyenko
Ack, but please explain below.
Quoted 18 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-bsp/common-csl-ip/common-csl-ip.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)recipes-bsp/common-csl-ip/common-csl-ip.inc +3
-1@@ -2,9 +2,17 @@ DESCRIPTION = "Chip support library low level interface" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21" -COMPATIBLE_MACHINE = "keystone" +COMPATIBLE_MACHINE = "keystone|dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" +
Quoted 7 lines
recipes-bsp/common-csl-ip/common-csl-ip.inc DESCRIPTION = "Chip support library low level interface" · line 12
Quoted 5 lines
recipes-bsp/common-csl-ip/common-csl-ip.inc +3
-1BRANCH="master" -SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}" +BRANCH_dra7xx = "releases/PROCESSOR-SDK.01.00.00" + +SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH};destsuffix=${S}"Why do you need destsuffix?
The RTOS package requires the sources to be extracted into "ti/csl" for the xdc build to succeed.
Quoted 13 lines
Quoted 13 lines
recipes-bsp/common-csl-ip/common-csl-ip.inc +3
-0# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.07A SRCREV = "c78867df9165fdf8042fb692fcea776fc0102326" + +# commit ID corresponds to PROCESSOR-SDK-ALPHA-1 +SRCREV_dra7xx = "37c5311ddf289f83b1432a9422816722d264bf55"Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
PATCH 4/4 common-csl-ip-rtos: Add CSL RTOS package.
In reply to Jacob Stiffler--- .../common-csl-ip/common-csl-ip-rtos_git.bb | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb new file +33 -0
@@ -0,0 +1,33 @@ +require common-csl-ip.inc + +require recipes-ti/includes/ti-paths.inc +require recipes-ti/includes/ti-staging.inc + +DEPENDS = "ti-xdctools ti-cgt6x-native ti-sysbios" + +S = "${WORKDIR}/ti/csl" + +export C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr" +export XDCCGROOT="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export XDCPATH="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages" + +do_configure() { + 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/" {} \; +} + +do_compile() { + ${XDC_INSTALL_DIR}/xdc .make + ${XDC_INSTALL_DIR}/xdc clean + ${XDC_INSTALL_DIR}/xdc release +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages \; +} + +FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
Signature · 1 line
1.7.9.5
Re: [PATCH 4/4] common-csl-ip-rtos: Add CSL RTOS package.
Ack
Are all the dependencies ready for this?
Should all the files be added to ${PN}-dev?
Quoted 53 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- .../common-csl-ip/common-csl-ip-rtos_git.bb | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bbrecipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb new file +33
-0@@ -0,0 +1,33 @@ +require common-csl-ip.inc + +require recipes-ti/includes/ti-paths.inc +require recipes-ti/includes/ti-staging.inc + +DEPENDS = "ti-xdctools ti-cgt6x-native ti-sysbios" + +S = "${WORKDIR}/ti/csl" + +export C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr" +export XDCCGROOT="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export XDCPATH="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages" + +do_configure() { + 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/" {} \; +} + +do_compile() { + ${XDC_INSTALL_DIR}/xdc .make + ${XDC_INSTALL_DIR}/xdc clean + ${XDC_INSTALL_DIR}/xdc release +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages \; +} + +FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 4/4] common-csl-ip-rtos: Add CSL RTOS package.
Quoted 3 lines · Denys Dmytriyenko
Ack
Are all the dependencies ready for this?
Yes.
Quoted 2 lines
Should all the files be added to ${PN}-dev?
And yes. If there are no other comments, I'll submit a v2 to add these files to the dev package.
Quoted 54 lines · Jacob Stiffler
Quoted 53 lines
Signed-off-by Jacob Stiffler <[email protected]>--- .../common-csl-ip/common-csl-ip-rtos_git.bb | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+)create mode 100644 recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb new file +33
-0@@ -0,0 +1,33 @@ +require common-csl-ip.inc + +require recipes-ti/includes/ti-paths.inc +require recipes-ti/includes/ti-staging.inc + +DEPENDS = "ti-xdctools ti-cgt6x-native ti-sysbios" + +S = "${WORKDIR}/ti/csl" + +export C6X_GEN_INSTALL_PATH="${STAGING_DIR_NATIVE}/usr" +export XDCCGROOT="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export XDCPATH="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages" + +do_configure() { + 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/" {} \; +} + +do_compile() { + ${XDC_INSTALL_DIR}/xdc .make + ${XDC_INSTALL_DIR}/xdc clean + ${XDC_INSTALL_DIR}/xdc release +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages \; +} + +FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti