ti-cgt-pru: Add version 2.1.1
PATCH 1/2 ti-cgt-pru: Add version 2.1.1
* Require for integrating the PRU package into the SDK
--- recipes-ti/devtools/ti-cgt-pru_2.1.1.bb | 45 +++++++++++++++++++++++++++++++++ recipes-ti/includes/ti-paths.inc | 3 +++ 2 files changed, 48 insertions(+) create mode 100644 recipes-ti/devtools/ti-cgt-pru_2.1.1.bb
recipes-ti/devtools/ti-cgt-pru_2.1.1.bb new file +45 -0
@@ -0,0 +1,45 @@ +DESCRIPTION = "TI PRU Code Generation Tools" +HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" +LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD" + +LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" +LIC_FILES_CHKSUM_class-target = "file://usr/share/doc/ti/cgt-pru/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" + +require recipes-ti/includes/ti-paths.inc +require recipes-ti/includes/ti-unpack.inc + +BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin" +BINFILE_NAME = "cgt-pru-x86" +TI_BIN_UNPK_ARGS = "--prefix ${S}" +TI_BIN_UNPK_CMDS = "" + +BINFILE_class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh" +BINFILE_NAME_class-target = "cgt-pru-arm" + +SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}" + +SRC_URI[cgt-pru-x86.md5sum] = "d9923acea12dc41fc975c381804bd5ed" +SRC_URI[cgt-pru-x86.sha256sum] = "bbea68a6e793156cfb4874777bfd41a32b20172d3a8f61db6aed33a697a58e30" + +SRC_URI[cgt-pru-arm.md5sum] = "3b97df4966715bdb50f9a9fc58fe6b24" +SRC_URI[cgt-pru-arm.sha256sum] = "819a4680296fabf1ae0d4e0184276f8ab5324621d35388026d1b678ea71040c9" + +do_install() { + install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE} + cp -r ${S}/ti-cgt-pru_${PV}/. \ + ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/ +} + +do_install_class-target() { + ${WORKDIR}/${BINFILE} --prefix ${D} +} + +FILES_${PN} += "${datadir}/ti/*" + +FILES_${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \ + ${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \ +" + +INSANE_SKIP_${PN} += "arch staticdev" + +BBCLASSEXTEND = "native nativesdk"
recipes-ti/includes/ti-paths.inc +3 -0
@@ -48,6 +48,8 @@ export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" export CCSV6_INSTALL_DIR_RECIPE = "${installdir}/ccsv6" export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" +export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" + # This is where the tools will end up in sysroot export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"
@@ -86,6 +88,7 @@ export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE} export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" export CCSV6_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CCSV6_INSTALL_DIR_RECIPE}" export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" +export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" DSPSUFFIX_omapl137 = "x674" DSPSUFFIX_omapl138 = "x674"
Signature · 1 line
1.9.1
PATCH 2/2 pru-icss: Add PRU software package version 4.0.0.0
--- recipes-bsp/pru/pru-icss_git.bb | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 recipes-bsp/pru/pru-icss_git.bb
recipes-bsp/pru/pru-icss_git.bb new file +69 -0
@@ -0,0 +1,69 @@ +DESCRIPTION = "Programmable Real-time Unit Software Package" +HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" +LICENSE = "BSD-3-Clause & GPL-2.0 & PD" + +LIC_FILES_CHKSUM = "file://PRU-Package-v4.0-Manifest.html;md5=5ea937e4ff2c924a735d42e61ad8cbe3" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" +SRCREV = "476289eb7c3a91977bae84aea55c56f3120b48ea" + +BASE_PV = "4.0.0.0" +PV = "${BASE_PV}+git${SRCPV}" +PR = "r0" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +DEPENDS = "ti-cgt-pru-native" + +S = "${WORKDIR}/git" + +export PRU_CGT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-pru" + +SUBDIRS = "examples pru_cape/pru_fw lib/src labs" + +do_compile() { + for dir in ${SUBDIRS} + do + make -C ${S}/$dir + done +} + +# By default, do not install anything +do_install() { + : +} + +do_install_am335x-evm() { + install -d ${D}/lib/firmware + for i in 0 1 + do + install -m 0644 ${S}/examples/am335x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \ + ${D}/lib/firmware/am335x-pru${i}-fw + done +} + +do_install_am437x-evm() { + install -d ${D}/lib/firmware + for i in 0 1 + do + install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \ + ${D}/lib/firmware/am437x-pru1_${i}-fw + done +} + +do_install_am57xx-evm() { + install -d ${D}/lib/firmware + for i in 1 2 + do + for j in 0 1 + do + install -m 0644 ${S}/examples/am572x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ + ${D}/lib/firmware/am57xx-pru${i}_${j}-fw + done + done +} + +FILES_${PN} += "/lib/firmware" + +INSANE_SKIP_${PN} = "arch"
Signature · 1 line
1.9.1
Re: [PATCH 2/2] pru-icss: Add PRU software package version 4.0.0.0
Quoted 13 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-bsp/pru/pru-icss_git.bb | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 recipes-bsp/pru/pru-icss_git.bbrecipes-bsp/pru/pru-icss_git.bb new file +1
-0@@ -0,0 +1,69 @@ +DESCRIPTION = "Programmable Real-time Unit Software Package"
recipes-bsp/pru/pru-icss_git.bb line 11
Quoted 10 lines
recipes-bsp/pru/pru-icss_git.bb new file +10
-0+HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" +LICENSE = "BSD-3-Clause & GPL-2.0 & PD" + +LIC_FILES_CHKSUM = "file://PRU-Package-v4.0-Manifest.html;md5=5ea937e4ff2c924a735d42e61ad8cbe3" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" +SRCREV = "476289eb7c3a91977bae84aea55c56f3120b48ea" + +BASE_PV = "4.0.0.0"
Do you need this defined? I don't see it being used.
recipes-bsp/pru/pru-icss_git.bb line 21
Quoted 10 lines
recipes-bsp/pru/pru-icss_git.bb new file +10
-0+PV = "${BASE_PV}+git${SRCPV}" +PR = "r0" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +DEPENDS = "ti-cgt-pru-native" + +S = "${WORKDIR}/git" + +export PRU_CGT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-pru"
require ti-paths.inc
export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}"
recipes-bsp/pru/pru-icss_git.bb line 30
Quoted 9 lines
recipes-bsp/pru/pru-icss_git.bb new file +9
-0+ +SUBDIRS = "examples pru_cape/pru_fw lib/src labs" + +do_compile() { + for dir in ${SUBDIRS} + do + make -C ${S}/$dir + done +}
Does it build all the example FW images for all platforms, or are those already prebuilt?
Quoted 24 lines
recipes-bsp/pru/pru-icss_git.bb new file +24
-0+# By default, do not install anything +do_install() { + : +} + +do_install_am335x-evm() { + install -d ${D}/lib/firmware + for i in 0 1 + do + install -m 0644 ${S}/examples/am335x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \ + ${D}/lib/firmware/am335x-pru${i}-fw + done +} + +do_install_am437x-evm() { + install -d ${D}/lib/firmware + for i in 0 1 + do + install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \ + ${D}/lib/firmware/am437x-pru1_${i}-fw + done +} + +do_install_am57xx-evm() {
recipes-bsp/pru/pru-icss_git.bb line 65
Quoted 10 lines
recipes-bsp/pru/pru-icss_git.bb new file +10
-0+ install -d ${D}/lib/firmware + for i in 1 2 + do + for j in 0 1 + do + install -m 0644 ${S}/examples/am572x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ + ${D}/lib/firmware/am57xx-pru${i}_${j}-fw + done + done +}
What about PRU-less platforms? You don't set COMPATIBLE_MACHINE, so for example KS2 will try to build something, but won't install anything. Do we want to prevent that?
Quoted 11 lines
recipes-bsp/pru/pru-icss_git.bb new file +3
-0+FILES_${PN} += "/lib/firmware" + +INSANE_SKIP_${PN} = "arch"Signature · 7 lines
1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 2/2] pru-icss: Add PRU software package version 4.0.0.0
Quoted 17 lines · Denys Dmytriyenko
Quoted 16 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-bsp/pru/pru-icss_git.bb | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+)create mode 100644 recipes-bsp/pru/pru-icss_git.bb
recipes-bsp/pru/pru-icss_git.bb new file +4
-0@@ -0,0 +1,69 @@ +DESCRIPTION = "Programmable Real-time Unit Software Package" +HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" +LICENSE = "BSD-3-Clause & GPL-2.0 & PD" +
Quoted 8 lines
recipes-bsp/pru/pru-icss_git.bb line 11
Quoted 7 lines
recipes-bsp/pru/pru-icss_git.bb new file +7
-0+LIC_FILES_CHKSUM = "file://PRU-Package-v4.0-Manifest.html;md5=5ea937e4ff2c924a735d42e61ad8cbe3" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" +SRCREV = "476289eb7c3a91977bae84aea55c56f3120b48ea" + +BASE_PV = "4.0.0.0"Do you need this defined? I don't see it being used.
I was going to use this when creating the sourceipk. It is desired to not have the commit id fragment in the destination sourceipk location. I suppose I could just drop the SRCPV from the PV.
Quoted 13 lines
recipes-bsp/pru/pru-icss_git.bb line 21
Quoted 11 lines
recipes-bsp/pru/pru-icss_git.bb new file +10
-0+PV = "${BASE_PV}+git${SRCPV}" +PR = "r0" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +DEPENDS = "ti-cgt-pru-native" + +S = "${WORKDIR}/git" + +export PRU_CGT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-pru"require ti-paths.inc
exportPRU_CGT= "${TI_CGT_PRU_INSTALL_DIR}"
Thanks for pointing this out. I missed this when bringing the recipe over from meta-processor-sdk.
Quoted 12 lines
recipes-bsp/pru/pru-icss_git.bb line 30
Quoted 10 lines
recipes-bsp/pru/pru-icss_git.bb new file +9
-0+ +SUBDIRS = "examples pru_cape/pru_fw lib/src labs" + +do_compile() { + for dir in ${SUBDIRS} + do + make -C ${S}/$dir + done +}Does it build all the example FW images for all platforms, or are those already prebuilt?
This rebuilds all of the example firmware for all platforms.
Quoted 30 lines
Quoted 30 lines
recipes-bsp/pru/pru-icss_git.bb new file +29
-0+# By default, do not install anything +do_install() { + : +} + +do_install_am335x-evm() { + install -d ${D}/lib/firmware + for i in 0 1 + do + install -m 0644 ${S}/examples/am335x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \ + ${D}/lib/firmware/am335x-pru${i}-fw + done +} + +do_install_am437x-evm() { + install -d ${D}/lib/firmware + for i in 0 1 + do + install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \ + ${D}/lib/firmware/am437x-pru1_${i}-fw + done +} + +do_install_am57xx-evm() { + install -d ${D}/lib/firmware + for i in 1 2 + do + for j in 0 1 + do
Quoted 8 lines
recipes-bsp/pru/pru-icss_git.bb line 65
Quoted 5 lines
recipes-bsp/pru/pru-icss_git.bb new file +5
-0+ install -m 0644 ${S}/examples/am572x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ + ${D}/lib/firmware/am57xx-pru${i}_${j}-fw + done + done +}What about PRU-less platforms? You don't set
COMPATIBLE_MACHINE, so for example KS2 will try to build something, but won't install anything. Do we want to prevent that?
That makes sense. I will add this.
Quoted 12 lines
Quoted 12 lines
recipes-bsp/pru/pru-icss_git.bb new file +3
-0+FILES_${PN} += "/lib/firmware" + +INSANE_SKIP_${PN} = "arch"Signature · 7 lines
1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 1 line · Jacob Stiffler
* Require for integrating the PRU package into the SDK
You can drop this comment. Or you can just repeat the recipe DESCRIPTION here in the commit message...
The rest looks good.
Quoted 87 lines
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-ti/devtools/ti-cgt-pru_2.1.1.bb | 45 +++++++++++++++++++++++++++++++++ recipes-ti/includes/ti-paths.inc | 3 +++ 2 files changed, 48 insertions(+) create mode 100644 recipes-ti/devtools/ti-cgt-pru_2.1.1.bbrecipes-ti/devtools/ti-cgt-pru_2.1.1.bb new file +45
-0@@ -0,0 +1,45 @@ +DESCRIPTION = "TI PRU Code Generation Tools" +HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" +LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD" + +LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" +LIC_FILES_CHKSUM_class-target = "file://usr/share/doc/ti/cgt-pru/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" + +require recipes-ti/includes/ti-paths.inc +require recipes-ti/includes/ti-unpack.inc + +BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin" +BINFILE_NAME = "cgt-pru-x86" +TI_BIN_UNPK_ARGS = "--prefix ${S}" +TI_BIN_UNPK_CMDS = "" + +BINFILE_class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh" +BINFILE_NAME_class-target = "cgt-pru-arm" + +SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}" + +SRC_URI[cgt-pru-x86.md5sum] = "d9923acea12dc41fc975c381804bd5ed" +SRC_URI[cgt-pru-x86.sha256sum] = "bbea68a6e793156cfb4874777bfd41a32b20172d3a8f61db6aed33a697a58e30" + +SRC_URI[cgt-pru-arm.md5sum] = "3b97df4966715bdb50f9a9fc58fe6b24" +SRC_URI[cgt-pru-arm.sha256sum] = "819a4680296fabf1ae0d4e0184276f8ab5324621d35388026d1b678ea71040c9" + +do_install() { + install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE} + cp -r ${S}/ti-cgt-pru_${PV}/. \ + ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/ +} + +do_install_class-target() { + ${WORKDIR}/${BINFILE} --prefix ${D} +} + +FILES_${PN} += "${datadir}/ti/*" + +FILES_${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \ + ${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \ +" + +INSANE_SKIP_${PN} += "arch staticdev" + +BBCLASSEXTEND = "native nativesdk"recipes-ti/includes/ti-paths.inc +3
-0@@ -48,6 +48,8 @@ export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" export CCSV6_INSTALL_DIR_RECIPE = "${installdir}/ccsv6" export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" +export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" + # This is where the tools will end up in sysroot export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"@@ -86,6 +88,7 @@ export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE} export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" export CCSV6_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CCSV6_INSTALL_DIR_RECIPE}" export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" +export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" DSPSUFFIX_omapl137 = "x674" DSPSUFFIX_omapl138 = "x674"Signature · 7 lines
1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti