ti-pdk.bbclass: added to enable the building of icss-emac firmware binaries
PATCH 1/1 ti-pdk.bbclass: added to enable the building of icss-emac firmware binaries
--- classes/ti-pdk.bbclass | 115 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 classes/ti-pdk.bbclass
classes/ti-pdk.bbclass new file +115 -0
@@ -0,0 +1,115 @@ +require recipes-ti/includes/ti-paths.inc +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-pdk-build-rtos" + +DEPENDS_append_omap-a15 = " ti-cgt-arm-native" +DEPENDS_remove_ti33x = "ti-cgt6x-native" +DEPENDS_remove_ti43x = "ti-cgt6x-native" +DEPENDS_append_omapl1 = " ti-cgt-arm-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 + grep '^package' ${S}/package.xdc | sed -e 's|\[.*$||' | awk '{ print $2 }' | sed -e 's|\.|/|g' + else + echo ${S} + return 1 + fi +} + +export CROSS_TOOL_PRFX="arm-none-eabi-" +export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A15 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_M4 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export TOOLCHAIN_PATH_Arm9 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export C6X_GEN_INSTALL_PATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export CL_PRU_INSTALL_PATH = "${TI_CGT_PRU_INSTALL_DIR}" + +export ROOTDIR = "${B}" +export BIOS_INSTALL_PATH = "${SYSBIOS_INSTALL_DIR}" +export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}" +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" + +TI_PDK_XDCMAKE ?= "1" + +# By default, only build the cores with available toolchains +TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 c66x c66xdsp_1 c66xdsp_2 arm9_0 c674x a9host a8host pru_0 pru_1" +TI_PDK_LIMIT_SOCS ?= "" +TI_PDK_LIMIT_BOARDS ?= "" +TI_PDK_MAKE_TARGET ?= "release" +TI_PDK_EXTRA_MAKE ?= "" + +TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" + +PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" + +do_configure() { + BUILD_DIR=${B}/`get_build_dir_bash` + + mkdir -p ${BUILD_DIR} + cp -r ${S}/* ${BUILD_DIR} + + if [ "${TI_PDK_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() { + + if [ "${TI_PDK_XDCMAKE}" == "1" ] + then + ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . + ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR . + ${XDC_INSTALL_DIR}/xdc release XDCARGS="${TI_PDK_XDC_ARGS}" -PR . + else + BUILD_DIR=${B}/`get_build_dir_bash` + cd ${BUILD_DIR} + + make ${TI_PDK_MAKE_TARGET} \ + LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ + LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ + LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ + ${TI_PDK_EXTRA_MAKE} + fi +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} --no-same-owner -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"
Signature · 1 line
1.9.1
Quoted 46 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- classes/ti-pdk.bbclass | 115 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+)create mode 100644 classes/ti-pdk.bbclass
classes/ti-pdk.bbclass new file +34
-0@@ -0,0 +1,115 @@ +require recipes-ti/includes/ti-paths.inc +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-pdk-build-rtos" + +DEPENDS_append_omap-a15 = " ti-cgt-arm-native" +DEPENDS_remove_ti33x = "ti-cgt6x-native" +DEPENDS_remove_ti43x = "ti-cgt6x-native" +DEPENDS_append_omapl1 = " ti-cgt-arm-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 + grep '^package' ${S}/package.xdc | sed -e 's|\[.*$||' | awk '{ print $2 }' | sed -e 's|\.|/|g' + else + echo ${S} + return 1 + fi
classes/ti-pdk.bbclass line 44
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+} + +export CROSS_TOOL_PRFX="arm-none-eabi-" +export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A15 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_M4 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export TOOLCHAIN_PATH_Arm9 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export C6X_GEN_INSTALL_PATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export CL_PRU_INSTALL_PATH = "${TI_CGT_PRU_INSTALL_DIR}"
It appears that there is a missing dependency for the PRU toolchain?
Quoted 71 lines
classes/ti-pdk.bbclass new file +71
-0+ +export ROOTDIR = "${B}" +export BIOS_INSTALL_PATH = "${SYSBIOS_INSTALL_DIR}" +export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}" +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" + +TI_PDK_XDCMAKE ?= "1" + +# By default, only build the cores with available toolchains +TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 c66x c66xdsp_1 c66xdsp_2 arm9_0 c674x a9host a8host pru_0 pru_1" +TI_PDK_LIMIT_SOCS ?= "" +TI_PDK_LIMIT_BOARDS ?= "" +TI_PDK_MAKE_TARGET ?= "release" +TI_PDK_EXTRA_MAKE ?= "" + +TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" + +PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" + +do_configure() { + BUILD_DIR=${B}/`get_build_dir_bash` + + mkdir -p ${BUILD_DIR} + cp -r ${S}/* ${BUILD_DIR} + + if [ "${TI_PDK_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() { + + if [ "${TI_PDK_XDCMAKE}" == "1" ] + then + ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . + ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC} XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR . + ${XDC_INSTALL_DIR}/xdc release XDCARGS="${TI_PDK_XDC_ARGS}" -PR . + else + BUILD_DIR=${B}/`get_build_dir_bash` + cd ${BUILD_DIR} + + make ${TI_PDK_MAKE_TARGET} \ + LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ + LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ + LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ + ${TI_PDK_EXTRA_MAKE} + fi +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} --no-same-owner -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"
Quoted 74 lines
-----Original Message-----
From: Stiffler, Jacob
Sent: Wednesday, September 20, 2017 4:19 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [meta-processsor-sdk] [PATCH] ti- pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 3 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- classes/ti-pdk.bbclass | 115+++++++++++++++++++++++++++++++++++++++++++++++++
Quoted 8 lines
1 file changed, 115 insertions(+)create mode 100644 classes/ti-pdk.bbclass
classes/ti-pdk.bbclass new file renamed from classes/ti-pdk.bbclass +0
-0mode 100644 index 0000000..1e3a7cb
classes/ti-pdk.bbclass line 6
Quoted 6 lines
classes/ti-pdk.bbclass new file +6
-0@@ -0,0 +1,115 @@ +require recipes-ti/includes/ti-paths.inc require +recipes-ti/includes/ti-staging.inc + +inherit perlnative + +DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios common-csl-ip-rtoslibxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-pdk- build-rtos"
Quoted 9 lines
classes/ti-pdk.bbclass new file +8
-0+ +DEPENDS_append_omap-a15 = " ti-cgt-arm-native" +DEPENDS_remove_ti33x = "ti-cgt6x-native" +DEPENDS_remove_ti43x = "ti-cgt6x-native" +DEPENDS_append_omapl1 = " ti-cgt-arm-native" + +S = "${WORKDIR}/git" +B = "${WORKDIR}/build"classes/ti-pdk.bbclass
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+ +# 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_COM
P_LINKclasses/ti-pdk.bbclass
Quoted 8 lines
classes/ti-pdk.bbclass new file +8
-0+_TEXT}</a>" >> +${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc/${DOC_FILE} +} + +get_build_dir_bash() { + if [ -f ${S}/package.xdc ] + then + grep '^package' ${S}/package.xdc | sed -e 's|\[.*$||' | awk '{ print $2 }' |sed -e 's|\.|/|g'
classes/ti-pdk.bbclass
Quoted 13 lines
classes/ti-pdk.bbclass new file +13
-0+ else + echo ${S} + return 1 + fi +} + +export CROSS_TOOL_PRFX="arm-none-eabi-" +export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A15 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_M4 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export TOOLCHAIN_PATH_Arm9 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export C6X_GEN_INSTALL_PATH ="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
Quoted 4 lines
classes/ti-pdk.bbclass line 44
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+export CL_PRU_INSTALL_PATH = "${TI_CGT_PRU_INSTALL_DIR}"It appears that there is a missing dependency for the PRU toolchain?
This is back ported from meta-ti: http://arago-project.org/git/?p=meta-ti.git;a=blob;f=classes/ti-pdk.bbclass;h=1e3a7cbb25136004962404e3987c17d56ceae17d;hb=a2743f55c36b90e92b2a9f4f684e2a67e2cbe3e0
Also TI_CGT_PRU_INSTALL_DIR has been defined in recipes-ti/includes/ti-paths.inc.
Quoted 77 lines
classes/ti-pdk.bbclass
Quoted 7 lines
classes/ti-pdk.bbclass new file +7
-0+ +export ROOTDIR = "${B}" +export BIOS_INSTALL_PATH = "${SYSBIOS_INSTALL_DIR}" +export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}" +export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" + +export XDCPATH ="${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_I NSTALL_DIR}/packages"
classes/ti-pdk.bbclass
Quoted 6 lines
classes/ti-pdk.bbclass new file +6
-0+export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" + +TI_PDK_XDCMAKE ?= "1" + +# By default, only build the cores with available toolchains +TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 c66x
c66xdsp_1c66xdsp_2arm9_0c674x a9host a8hostpru_0pru_1"Quoted 23 lines
classes/ti-pdk.bbclass new file +23
-0+TI_PDK_LIMIT_SOCS ?= "" +TI_PDK_LIMIT_BOARDS ?= "" +TI_PDK_MAKE_TARGET ?= "release" +TI_PDK_EXTRA_MAKE ?= "" + +TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" + +PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" + +do_configure() { + BUILD_DIR=${B}/`get_build_dir_bash` + + mkdir -p ${BUILD_DIR} + cp -r ${S}/* ${BUILD_DIR} + + if [ "${TI_PDK_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" {} \;classes/ti-pdk.bbclass
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+ find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \; + fi +} + +do_compile() { + + if [ "${TI_PDK_XDCMAKE}" == "1" ] + then + ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . + ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC}XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR .
classes/ti-pdk.bbclass line 93
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+ ${XDC_INSTALL_DIR}/xdc release XDCARGS="${TI_PDK_XDC_ARGS}"-PR .
Quoted 25 lines
classes/ti-pdk.bbclass new file +25
-0+ else + BUILD_DIR=${B}/`get_build_dir_bash` + cd ${BUILD_DIR} + + make ${TI_PDK_MAKE_TARGET} \ + LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ + LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ + LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ + ${TI_PDK_EXTRA_MAKE} + fi +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} --no-same-owner -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"
Quoted 74 lines · Hongmei
Quoted 74 lines
-----Original Message-----
From: Stiffler, Jacob
Sent: Wednesday, September 20, 2017 4:19 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [meta-processsor-sdk] [PATCH] ti- pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 3 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- classes/ti-pdk.bbclass | 115+++++++++++++++++++++++++++++++++++++++++++++++++
Quoted 8 lines
1 file changed, 115 insertions(+)create mode 100644 classes/ti-pdk.bbclass
classes/ti-pdk.bbclass new file renamed from classes/ti-pdk.bbclass +0
-0mode 100644 index 0000000..1e3a7cb
classes/ti-pdk.bbclass line 6
Quoted 6 lines
classes/ti-pdk.bbclass new file +6
-0@@ -0,0 +1,115 @@ +require recipes-ti/includes/ti-paths.inc require +recipes-ti/includes/ti-staging.inc + +inherit perlnative + +DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios common-csl-ip-rtoslibxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-pdk- build-rtos"
Quoted 9 lines
classes/ti-pdk.bbclass new file +8
-0+ +DEPENDS_append_omap-a15 = " ti-cgt-arm-native" +DEPENDS_remove_ti33x = "ti-cgt6x-native" +DEPENDS_remove_ti43x = "ti-cgt6x-native" +DEPENDS_append_omapl1 = " ti-cgt-arm-native" + +S = "${WORKDIR}/git" +B = "${WORKDIR}/build"classes/ti-pdk.bbclass
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+ +# 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_COM
P_LINKclasses/ti-pdk.bbclass
Quoted 8 lines
classes/ti-pdk.bbclass new file +8
-0+_TEXT}</a>" >> +${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc/${DOC_FILE} +} + +get_build_dir_bash() { + if [ -f ${S}/package.xdc ] + then + grep '^package' ${S}/package.xdc | sed -e 's|\[.*$||' | awk '{ print $2 }' |sed -e 's|\.|/|g'
classes/ti-pdk.bbclass
Quoted 13 lines
classes/ti-pdk.bbclass new file +13
-0+ else + echo ${S} + return 1 + fi +} + +export CROSS_TOOL_PRFX="arm-none-eabi-" +export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A15 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_M4 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export TOOLCHAIN_PATH_Arm9 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export C6X_GEN_INSTALL_PATH ="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
Quoted 5 lines
Quoted 3 lines
classes/ti-pdk.bbclass line 44
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+export CL_PRU_INSTALL_PATH = "${TI_CGT_PRU_INSTALL_DIR}"It appears that there is a missing dependency for the PRU toolchain?
This is back ported from meta-ti: http://arago-project.org/git/?p=meta-ti.git;a=blob;f=classes/ti-pdk.bbclass;h=1e3a7cbb25136004962404e3987c17d56ceae17d;hb=a2743f55c36b90e92b2a9f4f684e2a67e2cbe3e0
AlsoTI_CGT_PRU_INSTALL_DIRhas been defined in recipes-ti/includes/ti-paths.inc.
The lack of a DEPENDS on ti-cgt-pru-native appears to be a gap. If directly building icss-emac-lld-rtos, it appears that the build will fail due to the missing toolchain as icss-emac-lld-rtos does not depend on it either.
Quoted 78 lines
Quoted 78 lines
classes/ti-pdk.bbclass
Quoted 8 lines
classes/ti-pdk.bbclass new file +7
-0+ +export ROOTDIR = "${B}" +export BIOS_INSTALL_PATH = "${SYSBIOS_INSTALL_DIR}" +export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}" +export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" + +export XDCPATH ="${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_I NSTALL_DIR}/packages"
classes/ti-pdk.bbclass
Quoted 6 lines
classes/ti-pdk.bbclass new file +6
-0+export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" + +TI_PDK_XDCMAKE ?= "1" + +# By default, only build the cores with available toolchains +TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 c66x
c66xdsp_1c66xdsp_2arm9_0c674x a9host a8hostpru_0pru_1"Quoted 23 lines
classes/ti-pdk.bbclass new file +23
-0+TI_PDK_LIMIT_SOCS ?= "" +TI_PDK_LIMIT_BOARDS ?= "" +TI_PDK_MAKE_TARGET ?= "release" +TI_PDK_EXTRA_MAKE ?= "" + +TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" + +PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" + +do_configure() { + BUILD_DIR=${B}/`get_build_dir_bash` + + mkdir -p ${BUILD_DIR} + cp -r ${S}/* ${BUILD_DIR} + + if [ "${TI_PDK_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" {} \;classes/ti-pdk.bbclass
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+ find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \; + fi +} + +do_compile() { + + if [ "${TI_PDK_XDCMAKE}" == "1" ] + then + ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . + ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC}XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR .
classes/ti-pdk.bbclass line 93
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+ ${XDC_INSTALL_DIR}/xdc release XDCARGS="${TI_PDK_XDC_ARGS}"-PR .
Quoted 25 lines
classes/ti-pdk.bbclass new file +25
-0+ else + BUILD_DIR=${B}/`get_build_dir_bash` + cd ${BUILD_DIR} + + make ${TI_PDK_MAKE_TARGET} \ + LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ + LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ + LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ + ${TI_PDK_EXTRA_MAKE} + fi +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} --no-same-owner -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"
Quoted 97 lines
-----Original Message-----
From: Stiffler, Jacob
Sent: Wednesday, September 20, 2017 5:12 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [meta-processsor-sdk] [PATCH] ti- pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 45 lines · Hongmei
Quoted 45 lines
-----Original Message-----
From: Stiffler, Jacob
Sent: Wednesday, September 20, 2017 4:19 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [meta-processsor-sdk] [PATCH] ti-
pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 3 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- classes/ti-pdk.bbclass | 115+++++++++++++++++++++++++++++++++++++++++++++++++
Quoted 8 lines
1 file changed, 115 insertions(+)create mode 100644 classes/ti-pdk.bbclass
classes/ti-pdk.bbclass new renamed from classes/ti-pdk.bbclass +0
-0file mode 100644 index 0000000..1e3a7cb
classes/ti-pdk.bbclass line 7
Quoted 7 lines
classes/ti-pdk.bbclass new file +7
-0@@ -0,0 +1,115 @@ +require recipes-ti/includes/ti-paths.inc require +recipes-ti/includes/ti-staging.inc + +inherit perlnative + +DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios +common-csl-ip-rtoslibxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-pdk- build-rtos"
Quoted 12 lines
classes/ti-pdk.bbclass new file +12
-0+ +DEPENDS_append_omap-a15 = " ti-cgt-arm-native" +DEPENDS_remove_ti33x = "ti-cgt6x-native" +DEPENDS_remove_ti43x = "ti-cgt6x-native" +DEPENDS_append_omapl1 = " ti-cgt-arm-native" + +S = "${WORKDIR}/git" +B = "${WORKDIR}/build" + +# HTML hyperlink text +PDK_COMP_LINK_TEXT ?= "" +Quoted 8 lines
Quoted 8 lines
classes/ti-pdk.bbclass
Quoted 7 lines
classes/ti-pdk.bbclass new file +6
-0+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_COM
Quoted 25 lines
Quoted 25 lines
P_LINKclasses/ti-pdk.bbclass
Quoted 9 lines
classes/ti-pdk.bbclass new file +9
-0+_TEXT}</a>" >> +${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc/${DOC_FILE} +} + +get_build_dir_bash() { + if [ -f ${S}/package.xdc ] + then + grep '^package' ${S}/package.xdc | sed -e 's|\[.*$||' | awk '{ +print $2 }' |sed -e 's|\.|/|g'
classes/ti-pdk.bbclass
Quoted 13 lines
classes/ti-pdk.bbclass new file +13
-0+ else + echo ${S} + return 1 + fi +} + +export CROSS_TOOL_PRFX="arm-none-eabi-" +export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A15 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_M4 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export TOOLCHAIN_PATH_Arm9 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export C6X_GEN_INSTALL_PATH ="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
Quoted 6 lines
Quoted 3 lines
classes/ti-pdk.bbclass line 44
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+export CL_PRU_INSTALL_PATH = "${TI_CGT_PRU_INSTALL_DIR}"It appears that there is a missing dependency for the PRU toolchain?
This is back ported from meta-ti:
http://arago-project.org/git/?p=meta-ti.git;a=blob;f=classes/ti-pdk.bbclass;h=1e3a7cbb25136004962404e3987c17d56ceae17d;hb=a2743f55c36b90e 92b
Quoted 8 lines
Quoted 1 line
2a9f4f684e2a67e2cbe3e0AlsoTI_CGT_PRU_INSTALL_DIRhas beendefined in
Quoted 1 line
recipes-ti/includes/ti-paths.inc.
The lack of a DEPENDS on ti-cgt-pru-native appears to be a gap. If directly building icss-emac-lld-rtos, it appears that the build will fail due to the missing toolchain as icss-emac-lld-rtos does not depend on it either.
Thanks for catching this.
pruss-lld-rtos_git.bb in my local build has DEPENDS on ti-cgt-pru-native:DEPENDS_append = " osal-rtos ti-cgt-pru-native"
icss-emac-lld-rtos has DEPENDS on pruss-lld-rtos.
Will submit a patch to add back the DEPENDS on ti-cgt-pru-native in pruss-lld-rtos_git.bb.
Quoted 80 lines
Quoted 9 lines
Quoted 9 lines
classes/ti-pdk.bbclass
Quoted 8 lines
classes/ti-pdk.bbclass new file +7
-0+ +export ROOTDIR = "${B}" +export BIOS_INSTALL_PATH = "${SYSBIOS_INSTALL_DIR}" +export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}" +export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" + +export XDCPATH ="${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_I
Quoted 42 lines
Quoted 42 lines
NSTALL_DIR}/packages"
classes/ti-pdk.bbclass
Quoted 6 lines
classes/ti-pdk.bbclass new file +6
-0+export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" + +TI_PDK_XDCMAKE ?= "1" + +# By default, only build the cores with available toolchains +TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 c66x
c66xdsp_1c66xdsp_2arm9_0c674x a9host a8hostpru_0pru_1"Quoted 23 lines
classes/ti-pdk.bbclass new file +23
-0+TI_PDK_LIMIT_SOCS ?= "" +TI_PDK_LIMIT_BOARDS ?= "" +TI_PDK_MAKE_TARGET ?= "release" +TI_PDK_EXTRA_MAKE ?= "" + +TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" + +PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" + +do_configure() { + BUILD_DIR=${B}/`get_build_dir_bash` + + mkdir -p ${BUILD_DIR} + cp -r ${S}/* ${BUILD_DIR} + + if [ "${TI_PDK_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" {} \;classes/ti-pdk.bbclass
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+ find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \; + fi +} + +do_compile() { + + if [ "${TI_PDK_XDCMAKE}" == "1" ] + then + ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . + ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC}XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR .
Quoted 1 line
Quoted 1 line
classes/ti-pdk.bbclass line 95
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+ ${XDC_INSTALL_DIR}/xdc releaseXDCARGS="${TI_PDK_XDC_ARGS}"
Quoted 26 lines
Quoted 26 lines
-PR .
Quoted 25 lines
classes/ti-pdk.bbclass new file +25
-0+ else + BUILD_DIR=${B}/`get_build_dir_bash` + cd ${BUILD_DIR} + + make ${TI_PDK_MAKE_TARGET} \ + LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ + LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ + LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ + ${TI_PDK_EXTRA_MAKE} + fi +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} --no-same-owner -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"
Quoted 103 lines · Hongmei
Quoted 94 lines
-----Original Message-----
From: Stiffler, Jacob
Sent: Wednesday, September 20, 2017 5:12 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [meta-processsor-sdk] [PATCH] ti- pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 44 lines · Hongmei
Quoted 44 lines
-----Original Message-----
From: Stiffler, Jacob
Sent: Wednesday, September 20, 2017 4:19 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [meta-processsor-sdk] [PATCH] ti-
pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 3 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- classes/ti-pdk.bbclass | 115+++++++++++++++++++++++++++++++++++++++++++++++++
Quoted 8 lines
1 file changed, 115 insertions(+)create mode 100644 classes/ti-pdk.bbclass
classes/ti-pdk.bbclass new renamed from classes/ti-pdk.bbclass +0
-0file mode 100644 index 0000000..1e3a7cb
classes/ti-pdk.bbclass line 7
Quoted 7 lines
classes/ti-pdk.bbclass new file +7
-0@@ -0,0 +1,115 @@ +require recipes-ti/includes/ti-paths.inc require +recipes-ti/includes/ti-staging.inc + +inherit perlnative + +DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios +common-csl-ip-rtoslibxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-pdk- build-rtos"
Quoted 11 lines
classes/ti-pdk.bbclass new file +11
-0+ +DEPENDS_append_omap-a15 = " ti-cgt-arm-native" +DEPENDS_remove_ti33x = "ti-cgt6x-native" +DEPENDS_remove_ti43x = "ti-cgt6x-native" +DEPENDS_append_omapl1 = " ti-cgt-arm-native" + +S = "${WORKDIR}/git" +B = "${WORKDIR}/build" + +# HTML hyperlink text +PDK_COMP_LINK_TEXT ?= ""Quoted 8 lines
Quoted 8 lines
classes/ti-pdk.bbclass
Quoted 8 lines
classes/ti-pdk.bbclass new file +7
-0+ +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_COM
Quoted 25 lines
Quoted 25 lines
P_LINKclasses/ti-pdk.bbclass
Quoted 9 lines
classes/ti-pdk.bbclass new file +9
-0+_TEXT}</a>" >> +${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc/${DOC_FILE} +} + +get_build_dir_bash() { + if [ -f ${S}/package.xdc ] + then + grep '^package' ${S}/package.xdc | sed -e 's|\[.*$||' | awk '{ +print $2 }' |sed -e 's|\.|/|g'
classes/ti-pdk.bbclass
Quoted 13 lines
classes/ti-pdk.bbclass new file +13
-0+ else + echo ${S} + return 1 + fi +} + +export CROSS_TOOL_PRFX="arm-none-eabi-" +export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A15 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_M4 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export TOOLCHAIN_PATH_Arm9 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export C6X_GEN_INSTALL_PATH ="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
Quoted 6 lines
Quoted 3 lines
classes/ti-pdk.bbclass line 44
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+export CL_PRU_INSTALL_PATH = "${TI_CGT_PRU_INSTALL_DIR}"It appears that there is a missing dependency for the PRU toolchain?
This is back ported from meta-ti:
http://arago-project.org/git/?p=meta-ti.git;a=blob;f=classes/ti-pdk.bbQuoted 9 lines
class;h=1e3a7cbb25136004962404e3987c17d56ceae17d;hb=a2743f55c36b90e 92b
Quoted 1 line
2a9f4f684e2a67e2cbe3e0AlsoTI_CGT_PRU_INSTALL_DIRhas beendefined in
Quoted 1 line
recipes-ti/includes/ti-paths.inc.
The lack of a DEPENDS on ti-cgt-pru-native appears to be a gap. If directly building icss-emac-lld-rtos, it appears that the build will fail due to the missing toolchain as icss-emac-lld-rtos does not depend on it either.
Quoted 8 lines
Thanks for catching this.
pruss-lld-rtos_git.bb in my local build has DEPENDS on ti-cgt-pru-native:
DEPENDS_append= " osal-rtos ti-cgt-pru-native"icss-emac-lld-rtos has DEPENDS on pruss-lld-rtos.
Will submit a patch to add back the DEPENDS on ti-cgt-pru-native in pruss-lld-rtos_git.bb.
I think the depends should go here because this is what is controlling whether or not the firmwares are build (via LIMIT_CORES). If not here, then it should be the recipe which actually produces the firmwares.
Quoted 79 lines
Quoted 79 lines
Quoted 8 lines
Quoted 8 lines
classes/ti-pdk.bbclass
Quoted 8 lines
classes/ti-pdk.bbclass new file +7
-0+ +export ROOTDIR = "${B}" +export BIOS_INSTALL_PATH = "${SYSBIOS_INSTALL_DIR}" +export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}" +export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" + +export XDCPATH ="${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_I
Quoted 42 lines
Quoted 42 lines
NSTALL_DIR}/packages"
classes/ti-pdk.bbclass
Quoted 6 lines
classes/ti-pdk.bbclass new file +6
-0+export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" + +TI_PDK_XDCMAKE ?= "1" + +# By default, only build the cores with available toolchains +TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 c66x
c66xdsp_1c66xdsp_2arm9_0c674x a9host a8hostpru_0pru_1"Quoted 23 lines
classes/ti-pdk.bbclass new file +23
-0+TI_PDK_LIMIT_SOCS ?= "" +TI_PDK_LIMIT_BOARDS ?= "" +TI_PDK_MAKE_TARGET ?= "release" +TI_PDK_EXTRA_MAKE ?= "" + +TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" + +PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" + +do_configure() { + BUILD_DIR=${B}/`get_build_dir_bash` + + mkdir -p ${BUILD_DIR} + cp -r ${S}/* ${BUILD_DIR} + + if [ "${TI_PDK_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" {} \;classes/ti-pdk.bbclass
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+ find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \; + fi +} + +do_compile() { + + if [ "${TI_PDK_XDCMAKE}" == "1" ] + then + ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . + ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC}XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR .
Quoted 1 line
Quoted 1 line
classes/ti-pdk.bbclass line 95
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+ ${XDC_INSTALL_DIR}/xdc releaseXDCARGS="${TI_PDK_XDC_ARGS}"
Quoted 26 lines
Quoted 26 lines
-PR .
Quoted 25 lines
classes/ti-pdk.bbclass new file +25
-0+ else + BUILD_DIR=${B}/`get_build_dir_bash` + cd ${BUILD_DIR} + + make ${TI_PDK_MAKE_TARGET} \ + LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ + LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ + LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ + ${TI_PDK_EXTRA_MAKE} + fi +} + +do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} --no-same-owner -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"
Pushed with a small fixup to added the ti-cgt-pru dependency.
Quoted 223 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Stiffler, Jacob
Sent: Wednesday, September 20, 2017 7:10 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [meta-arago] [EXTERNAL] [meta-processsor-sdk] [PATCH] ti- pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 57 lines · Hongmei
Quoted 57 lines
-----Original Message-----
From: Stiffler, Jacob
Sent: Wednesday, September 20, 2017 5:12 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [meta-processsor-sdk] [PATCH] ti-
pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 45 lines · Hongmei
Quoted 45 lines
-----Original Message-----
From: Stiffler, Jacob
Sent: Wednesday, September 20, 2017 4:19 PM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [meta-processsor-sdk] [PATCH] ti-
pdk.bbclass: added to enable the building of icss-emac firmware binariesQuoted 3 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- classes/ti-pdk.bbclass | 115+++++++++++++++++++++++++++++++++++++++++++++++++
Quoted 8 lines
1 file changed, 115 insertions(+)create mode 100644 classes/ti-pdk.bbclass
classes/ti-pdk.bbclass new renamed from classes/ti-pdk.bbclass +0
-0file mode 100644 index 0000000..1e3a7cb
classes/ti-pdk.bbclass line 7
Quoted 7 lines
classes/ti-pdk.bbclass new file +7
-0@@ -0,0 +1,115 @@ +require recipes-ti/includes/ti-paths.inc require +recipes-ti/includes/ti-staging.inc + +inherit perlnative + +DEPENDS = "ti-xdctools ti-cg-xml-native ti-sysbios +common-csl-ip-rtoslibxml-simple-perl-native gcc-arm-none-eabi-native ti-cgt6x-native ti-pdk- build-rtos"
Quoted 12 lines
classes/ti-pdk.bbclass new file +12
-0+ +DEPENDS_append_omap-a15 = " ti-cgt-arm-native" +DEPENDS_remove_ti33x = "ti-cgt6x-native" +DEPENDS_remove_ti43x = "ti-cgt6x-native" +DEPENDS_append_omapl1 = " ti-cgt-arm-native" + +S = "${WORKDIR}/git" +B = "${WORKDIR}/build" + +# HTML hyperlink text +PDK_COMP_LINK_TEXT ?= "" +Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
classes/ti-pdk.bbclass
Quoted 7 lines
classes/ti-pdk.bbclass new file +6
-0+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_COM
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
P_LINKQuoted 2 lines
classes/ti-pdk.bbclass new file +1
-0+_TEXT}</a>" >>+${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc/${DOC_FILE}
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
classes/ti-pdk.bbclass
Quoted 7 lines
classes/ti-pdk.bbclass new file +7
-0+} + +get_build_dir_bash() { + if [ -f ${S}/package.xdc ] + then + grep '^package' ${S}/package.xdc | sed -e 's|\[.*$||' | awk +'{ print $2 }' |sed -e 's|\.|/|g'
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
classes/ti-pdk.bbclass
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+ else + echo ${S} + return 1 + fi +} + +export CROSS_TOOL_PRFX="arm-none-eabi-" +export TOOLCHAIN_PATH_A8 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A9 = "${GCC_ARM_NONE_TOOLCHAIN}" +export TOOLCHAIN_PATH_A15 ="${GCC_ARM_NONE_TOOLCHAIN}"
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
classes/ti-pdk.bbclass line 45
Quoted 2 lines
classes/ti-pdk.bbclass new file +2
-0+export TOOLCHAIN_PATH_M4 = "${M4_TOOLCHAIN_INSTALL_DIR}" +export TOOLCHAIN_PATH_Arm9 ="${M4_TOOLCHAIN_INSTALL_DIR}"
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines
classes/ti-pdk.bbclass line 46
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+export C6X_GEN_INSTALL_PATH ="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
classes/ti-pdk.bbclass line 44
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+export CL_PRU_INSTALL_PATH = "${TI_CGT_PRU_INSTALL_DIR}"It appears that there is a missing dependency for the PRU toolchain?
This is back ported from meta-ti:
http://arago-project.org/git/?p=meta-ti.git;a=blob;f=classes/ti-pdk.
bbclass;h=1e3a7cbb25136004962404e3987c17d56ceae17d;hb=a2743f55c36b90e
Quoted 7 lines
Quoted 7 lines
92b
Quoted 1 line
2a9f4f684e2a67e2cbe3e0AlsoTI_CGT_PRU_INSTALL_DIRhas beendefined in
Quoted 1 line
recipes-ti/includes/ti-paths.inc.
The lack of a DEPENDS on ti-cgt-pru-native appears to be a gap. If directly building icss-emac-lld-rtos, it appears that the build will fail due to the missing toolchain as icss-emac-lld-rtos does not depend on
it either.
Quoted 9 lines
Quoted 1 line
Thanks for catching this.
pruss-lld-rtos_git.bb in my local build has DEPENDS on ti-cgt-pru-native:
DEPENDS_append= " osal-rtos ti-cgt-pru-native"icss-emac-lld-rtos has DEPENDS on pruss-lld-rtos.
Will submit a patch to add back the DEPENDS on ti-cgt-pru-native in pruss-
lld-rtos_git.bb.
I think the depends should go here because this is what is controlling whether or not the firmwares are build (via
LIMIT_CORES). If not here, then it should be the recipe which actually produces the firmwares.Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
classes/ti-pdk.bbclass
Quoted 8 lines
classes/ti-pdk.bbclass new file +7
-0+ +export ROOTDIR = "${B}" +export BIOS_INSTALL_PATH = "${SYSBIOS_INSTALL_DIR}" +export XDC_INSTALL_PATH = "${XDC_INSTALL_DIR}" +export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" + +export XDCPATH ="${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;${PDK_I
Quoted 57 lines
Quoted 57 lines
Quoted 42 lines
Quoted 42 lines
NSTALL_DIR}/packages"
classes/ti-pdk.bbclass
Quoted 6 lines
classes/ti-pdk.bbclass new file +6
-0+export SECTTI="perl ${CG_XML_INSTALL_DIR}/ofd/sectti.pl" + +TI_PDK_XDCMAKE ?= "1" + +# By default, only build the cores with available toolchains +TI_PDK_LIMIT_CORES ?= "a15_0 ipu1_0 ipu1_1 ipu2_0 ipu2_1 c66x
c66xdsp_1c66xdsp_2arm9_0c674x a9host a8hostpru_0pru_1"Quoted 23 lines
classes/ti-pdk.bbclass new file +23
-0+TI_PDK_LIMIT_SOCS ?= "" +TI_PDK_LIMIT_BOARDS ?= "" +TI_PDK_MAKE_TARGET ?= "release" +TI_PDK_EXTRA_MAKE ?= "" + +TI_PDK_XDC_ARGS ?= "${TI_PDK_LIMIT_SOCS}" + +PARALLEL_XDC = "--jobs=${BB_NUMBER_THREADS}" + +do_configure() { + BUILD_DIR=${B}/`get_build_dir_bash` + + mkdir -p ${BUILD_DIR} + cp -r ${S}/* ${BUILD_DIR} + + if [ "${TI_PDK_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" {} \;classes/ti-pdk.bbclass
Quoted 10 lines
classes/ti-pdk.bbclass new file +10
-0+ find -name "*.xs" -exec sed -i "s/pasm\_dos/pasm\_linux/" {} \; + fi +} + +do_compile() { + + if [ "${TI_PDK_XDCMAKE}" == "1" ] + then + ${XDC_INSTALL_DIR}/xdc clean ${PARALLEL_XDC} -PR . + ${XDC_INSTALL_DIR}/xdc all ${PARALLEL_XDC}XDCARGS="${TI_PDK_XDC_ARGS}" ROOTDIR="${ROOTDIR}" -PR .
Quoted 1 line
Quoted 1 line
classes/ti-pdk.bbclass line 94
Quoted 1 line
classes/ti-pdk.bbclass new file +1
-0+ ${XDC_INSTALL_DIR}/xdc releaseXDCARGS="${TI_PDK_XDC_ARGS}"
Quoted 13 lines
Quoted 13 lines
-PR .
Quoted 12 lines
classes/ti-pdk.bbclass new file +12
-0+ else + BUILD_DIR=${B}/`get_build_dir_bash` + cd ${BUILD_DIR} + + make ${TI_PDK_MAKE_TARGET} \ + LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" \ + LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" \ + LIMIT_CORES="${TI_PDK_LIMIT_CORES}" \ + ${TI_PDK_EXTRA_MAKE} + fi +} +Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
classes/ti-pdk.bbclass
Quoted 8 lines
classes/ti-pdk.bbclass new file +8
-0+do_install () { + install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages + find -name "*.tar" -exec tar xf {} --no-same-owner -C +${D}${PDK_INSTALL_DIR_RECIPE}/packages \; + + if [ "${PDK_COMP_LINK_TEXT}" != "" ] + then + install -d${D}${PDK_INSTALL_DIR_RECIPE}/packages/.extras/doc
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
classes/ti-pdk.bbclass line 115
Quoted 5 lines
classes/ti-pdk.bbclass new file +5
-0+ create_doc_link + fi +} + +FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago