dspdce-fw: add recipe to build dspdce-fw from git source and remove recipe which uses prebuilt firmware
PATCH v4 1/1 dspdce-fw: add recipe to build dspdce-fw from git source and remove recipe which uses prebuilt firmware
v4 changes:
1) Remove recipe which uses prebuilt firmware
2) Update PV to use version number only, "git+[commit]" is not needed any more
--- recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb | 26 ------------- recipes-bsp/dspdce-fw/dspdce-fw_git.bb | 56 +++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 26 deletions(-) delete mode 100644 recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb create mode 100644 recipes-bsp/dspdce-fw/dspdce-fw_git.bb
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0 -26
@@ -1,26 +0,0 @@ -DESCRIPTION = "Firmware for DSP for an example application called copycodectest" -LICENSE = "TI-TSPA" -LIC_FILES_CHKSUM = "file://DSPDCE-${PV}-Manifest.doc;md5=386d1802eefc2fcf00ab01a5b4556277" - -COMPATIBLE_MACHINE = "dra7xx-evm" -PACKAGE_ARCH = "${MACHINE_ARCH}" - -SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/dspdce/1_00_00_05/exports/dspdce-${MACHINE}-1.00.00.05.tar.gz;protocol=ftp" - -S = "${WORKDIR}/dspdce-${MACHINE}-${PV}" - -SRC_URI[md5sum] = "4f3d5c6ef088019aa4804eaaedc8e949" -SRC_URI[sha256sum] = "8d99c4f149613448a6d72c62a18cc7445c63c687b786658da1762c4e1c03a6a0" - -TARGET = "dra7-dsp1-fw.xe66" - -do_install() { - mkdir -p ${D}${base_libdir}/firmware - cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET} -} - -FILES_${PN} += "${base_libdir}/firmware/${TARGET}" - -INSANE_SKIP_${PN} = "arch" - -PR = "r1"
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
1.9.1
Can you use "update-alternatives" here?
Quoted 107 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>v4 changes:
1) Remove recipe which uses prebuilt firmware
2) Update PV to use version number only, "git+[commit]" is not needed any more--- recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb | 26 ------------- recipes-bsp/dspdce-fw/dspdce-fw_git.bb | 56 +++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 26 deletions(-)delete mode 100644 recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb create mode 100644 recipes-bsp/dspdce-fw/dspdce-fw_git.bb
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0
-26@@ -1,26 +0,0 @@ -DESCRIPTION = "Firmware for DSP for an example application called copycodectest" -LICENSE = "TI-TSPA" -LIC_FILES_CHKSUM = "file://DSPDCE-${PV}-Manifest.doc;md5=386d1802eefc2fcf00ab01a5b4556277" - -COMPATIBLE_MACHINE = "dra7xx-evm" -PACKAGE_ARCH = "${MACHINE_ARCH}" - -SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/dspdce/1_00_00_05/exports/dspdce-${MACHINE}-1.00.00.05.tar.gz;protocol=ftp" - -S = "${WORKDIR}/dspdce-${MACHINE}-${PV}" - -SRC_URI[md5sum] = "4f3d5c6ef088019aa4804eaaedc8e949" -SRC_URI[sha256sum] = "8d99c4f149613448a6d72c62a18cc7445c63c687b786658da1762c4e1c03a6a0" - -TARGET = "dra7-dsp1-fw.xe66" - -do_install() { - mkdir -p ${D}${base_libdir}/firmware - cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET} -} - -FILES_${PN} += "${base_libdir}/firmware/${TARGET}" - -INSANE_SKIP_${PN} = "arch" - -PR = "r1"recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +56
-0@@ -0,0 +1,56 @@ +DESCRIPTION = "Firmware for DSP for an example application called copycodectest" +LICENSE = "TI-TSPA" +LIC_FILES_CHKSUM = "file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6ed75f22b1a2b7544b1c809d" + +COMPATIBLE_MACHINE = "dra7xx" + +SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git" + +SRCREV = "71e8fbf8e4f91b60680cf18a0c202a222e9ae3ba" + +PV = "1.00.00.06" + +S = "${WORKDIR}/git" + +require recipes-ti/includes/ti-paths.inc +require recipes-ti/includes/ti-staging.inc + +PR = "r0" + +DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native" + +export HWVERSION="ES10" +export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti" + +export XDCVERSION="ti-xdctools-tree" +export BIOSVERSION="ti-sysbios-tree" +export IPCVERSION="ti-ipc-tree" +export CEVERSION="ti-codec-engine-tree" +export FCVERSION="ti-framework-components-tree" +export XDAISVERSION="ti-xdais-tree" +export OSALVERSION="ti-osal-tree" + +export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" +export C66XCGTOOLSPATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" + +do_configure() { + cd ${S} + make unconfig + make vayu_config +} + +do_compile() { + cd ${S} + make dspbin +} + +TARGET = "dra7-dsp1-fw.xe66.dce" + +do_install() { + mkdir -p ${D}${base_libdir}/firmware + cp ${S}/dra7xx-c66x-dsp.xe66 ${D}${base_libdir}/firmware/${TARGET} +} + +INSANE_SKIP_${PN} = "arch" + +FILES_${PN} += "${base_libdir}/firmware/${TARGET}"
Also, please show the difference between the old and the new recipes. You may need to lower the threshold, as it seems the new recipe grew almost 50% in size.
Quoted 116 lines · Jacob Stiffler
Can you use "update-alternatives" here?
Quoted 107 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>v4 changes:
1) Remove recipe which uses prebuilt firmware
2) Update PV to use version number only, "git+[commit]" is not needed any more--- recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb | 26 ------------- recipes-bsp/dspdce-fw/dspdce-fw_git.bb | 56 +++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 26 deletions(-) delete mode 100644 recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb create mode 100644 recipes-bsp/dspdce-fw/dspdce-fw_git.bbrecipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0
-26@@ -1,26 +0,0 @@ -DESCRIPTION = "Firmware for DSP for an example application called copycodectest" -LICENSE = "TI-TSPA" -LIC_FILES_CHKSUM = "file://DSPDCE-${PV}-Manifest.doc;md5=386d1802eefc2fcf00ab01a5b4556277" - -COMPATIBLE_MACHINE = "dra7xx-evm" -PACKAGE_ARCH = "${MACHINE_ARCH}" - -SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/dspdce/1_00_00_05/exports/dspdce-${MACHINE}-1.00.00.05.tar.gz;protocol=ftp" - -S = "${WORKDIR}/dspdce-${MACHINE}-${PV}" - -SRC_URI[md5sum] = "4f3d5c6ef088019aa4804eaaedc8e949" -SRC_URI[sha256sum] = "8d99c4f149613448a6d72c62a18cc7445c63c687b786658da1762c4e1c03a6a0" - -TARGET = "dra7-dsp1-fw.xe66" - -do_install() { - mkdir -p ${D}${base_libdir}/firmware - cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET} -} - -FILES_${PN} += "${base_libdir}/firmware/${TARGET}" - -INSANE_SKIP_${PN} = "arch" - -PR = "r1"recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +56
-0@@ -0,0 +1,56 @@ +DESCRIPTION = "Firmware for DSP for an example application called copycodectest" +LICENSE = "TI-TSPA" +LIC_FILES_CHKSUM = "file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6ed75f22b1a2b7544b1c809d" + +COMPATIBLE_MACHINE = "dra7xx" + +SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git" + +SRCREV = "71e8fbf8e4f91b60680cf18a0c202a222e9ae3ba" + +PV = "1.00.00.06" + +S = "${WORKDIR}/git" + +require recipes-ti/includes/ti-paths.inc +require recipes-ti/includes/ti-staging.inc + +PR = "r0" + +DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native" + +export HWVERSION="ES10" +export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti" + +export XDCVERSION="ti-xdctools-tree" +export BIOSVERSION="ti-sysbios-tree" +export IPCVERSION="ti-ipc-tree" +export CEVERSION="ti-codec-engine-tree" +export FCVERSION="ti-framework-components-tree" +export XDAISVERSION="ti-xdais-tree" +export OSALVERSION="ti-osal-tree" + +export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" +export C66XCGTOOLSPATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" + +do_configure() { + cd ${S} + make unconfig + make vayu_config +} + +do_compile() { + cd ${S} + make dspbin +} + +TARGET = "dra7-dsp1-fw.xe66.dce" + +do_install() { + mkdir -p ${D}${base_libdir}/firmware + cp ${S}/dra7xx-c66x-dsp.xe66 ${D}${base_libdir}/firmware/${TARGET} +} + +INSANE_SKIP_${PN} = "arch" + +FILES_${PN} += "${base_libdir}/firmware/${TARGET}"Signature · 4 lines
_______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
The v5 patch was submitted to use "update-alternatives", and the difference from the old recipe is summarized under "v5 changes".
The ~50% size change of the v4 patch comes from deleting the old recipe, which was summarized under " v4 changes" in the v4 patch.
Quoted 145 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, October 19, 2015 2:40 PM
To: Stiffler, Jacob
Cc: Gou, Hongmei; [email protected]
Subject: Re: [meta-ti] [PATCH v4] dspdce-fw: add recipe to build dspdce-fw from git source and remove recipe which uses prebuilt firmwareAlso, please show the difference between the old and the new recipes. You may need to lower the threshold, as it seems the new recipe grew almost 50% in size.
Quoted 8 lines · Jacob Stiffler
Can you use "update-alternatives" here?
Quoted 5 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>v4 changes:
1) Remove recipe which uses prebuilt firmware
2) Update PV to use version number only, "git+[commit]" is not neededany more
Quoted 4 lines
Quoted 4 lines
--- recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb | 26 ------------- recipes-bsp/dspdce-fw/dspdce-fw_git.bb | 56+++++++++++++++++++++++++++
Quoted 5 lines
recipes-
Quoted 5 lines
2 files changed, 56 insertions(+), 26 deletions(-) delete mode 100644 recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb create mode 100644 recipes-bsp/dspdce-fw/dspdce-fw_git.bbrecipes- renamed from recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb +0
-0bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb
Quoted 6 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb line 1
Quoted 6 lines
deleted file mode 100644
index 777c221..0000000recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0
-1@@ -1,26 +0,0 @@ -DESCRIPTION = "Firmware for DSP for an example application calledcopycodectest"
Quoted 2 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb line 3
Quoted 2 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0
-2-LICENSE = "TI-TSPA" -LIC_FILES_CHKSUM = "file://DSPDCE-${PV}-Manifest.doc;md5=386d1802eefc2fcf00ab01a5b4556277"
Quoted 5 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb
Quoted 5 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0
-5- -COMPATIBLE_MACHINE = "dra7xx-evm" -PACKAGE_ARCH = "${MACHINE_ARCH}" - -SRC_URI ="http://downloads.ti.com/dsps/dsps_public_sw/glsdk/dspdce/1_00_00_05/ exports/dspdce-${MACHINE}-1.00.00.05.tar.gz;protocol=ftp"
Quoted 5 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb
Quoted 5 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0
-5- -S = "${WORKDIR}/dspdce-${MACHINE}-${PV}" - -SRC_URI[md5sum] = "4f3d5c6ef088019aa4804eaaedc8e949" -SRC_URI[sha256sum] ="
8d99c4f149613448a6d72c62a18cc7445c63c687b786658da1762c4e1c03a6a0"Quoted 6 lines
Quoted 6 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0
-6- -TARGET = "dra7-dsp1-fw.xe66" - -do_install() { - mkdir -p ${D}${base_libdir}/firmware - cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET}Quoted 8 lines
recipes-
Quoted 8 lines
recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb deleted +0
-7-} - -FILES_${PN} += "${base_libdir}/firmware/${TARGET}" - -INSANE_SKIP_${PN} = "arch" - -PR = "r1"recipes- renamed from recipes-bsp/dspdce-fw/dspdce-fw_git.bb +0
-0bsp/dspdce-fw/dspdce-fw_git.bb
Quoted 6 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb line 1
Quoted 6 lines
new file mode 100644
index 0000000..594f330recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +1
-0@@ -0,0 +1,56 @@ +DESCRIPTION = "Firmware for DSP for an example application calledcopycodectest"
Quoted 2 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb line 3
Quoted 2 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +2
-0+LICENSE = "TI-TSPA" +LIC_FILES_CHKSUM ="file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6e
d75f22b1a2b7544b1c809d"Quoted 9 lines
Quoted 9 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +9
-0+ +COMPATIBLE_MACHINE = "dra7xx" + +SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git" + +SRCREV = "71e8fbf8e4f91b60680cf18a0c202a222e9ae3ba" + +PV = "1.00.00.06" +Quoted 8 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb
Quoted 8 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +8
-0+S = "${WORKDIR}/git" + +require recipes-ti/includes/ti-paths.inc +require recipes-ti/includes/ti-staging.inc + +PR = "r0" + +DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native"
Quoted 6 lines
Quoted 6 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +6
-0+ +export HWVERSION="ES10" +export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti" + +export XDCVERSION="ti-xdctools-tree" +export BIOSVERSION="ti-sysbios-tree"Quoted 8 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb
Quoted 8 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +8
-0+export IPCVERSION="ti-ipc-tree" +export CEVERSION="ti-codec-engine-tree" +export FCVERSION="ti-framework-components-tree" +export XDAISVERSION="ti-xdais-tree" +export OSALVERSION="ti-osal-tree" + +export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" +exportC66XCGTOOLSPATH="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
Quoted 9 lines
Quoted 9 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +9
-0+ +do_configure() { + cd ${S} + make unconfig + make vayu_config +} + +do_compile() { + cd ${S}Quoted 8 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb
Quoted 8 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +8
-0+ make dspbin +} + +TARGET = "dra7-dsp1-fw.xe66.dce" + +do_install() { + mkdir -p ${D}${base_libdir}/firmware + cp ${S}/dra7xx-c66x-dsp.xe66${D}${base_libdir}/firmware/${TARGET}
Quoted 11 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb line 56
Quoted 5 lines
recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file +5
-0+} + +INSANE_SKIP_${PN} = "arch" + +FILES_${PN} += "${base_libdir}/firmware/${TARGET}"--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti