summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/dspdce-fw
diff options
context:
space:
mode:
authorGou, Hongmei <h-gou@ti.com>2015-10-20 03:02:25 +0000
committerDenys Dmytriyenko <denys@ti.com>2015-10-22 12:57:26 -0400
commit5f12d9f826344a8a27d9d77a4d1cb614ad4b8f2c (patch)
tree5bcc67dd270421b48ebb262f71606010f15d42c0 /recipes-bsp/dspdce-fw
parent78a9eb7bec7e72eda822dbcace262f9c44c8e412 (diff)
downloadmeta-ti-5f12d9f826344a8a27d9d77a4d1cb614ad4b8f2c.tar.gz
dspdce-fw: update recipe to build dspdce-fw from git source
Signed-off-by: Hongmei Gou <h-gou@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/dspdce-fw')
-rw-r--r--recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb26
-rw-r--r--recipes-bsp/dspdce-fw/dspdce-fw_git.bb61
2 files changed, 61 insertions, 26 deletions
diff --git a/recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb b/recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb
deleted file mode 100644
index 777c221c..00000000
--- a/recipes-bsp/dspdce-fw/dspdce-fw_1.00.00.05.bb
+++ /dev/null
@@ -1,26 +0,0 @@
1DESCRIPTION = "Firmware for DSP for an example application called copycodectest"
2LICENSE = "TI-TSPA"
3LIC_FILES_CHKSUM = "file://DSPDCE-${PV}-Manifest.doc;md5=386d1802eefc2fcf00ab01a5b4556277"
4
5COMPATIBLE_MACHINE = "dra7xx-evm"
6PACKAGE_ARCH = "${MACHINE_ARCH}"
7
8SRC_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"
9
10S = "${WORKDIR}/dspdce-${MACHINE}-${PV}"
11
12SRC_URI[md5sum] = "4f3d5c6ef088019aa4804eaaedc8e949"
13SRC_URI[sha256sum] = "8d99c4f149613448a6d72c62a18cc7445c63c687b786658da1762c4e1c03a6a0"
14
15TARGET = "dra7-dsp1-fw.xe66"
16
17do_install() {
18 mkdir -p ${D}${base_libdir}/firmware
19 cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
20}
21
22FILES_${PN} += "${base_libdir}/firmware/${TARGET}"
23
24INSANE_SKIP_${PN} = "arch"
25
26PR = "r1"
diff --git a/recipes-bsp/dspdce-fw/dspdce-fw_git.bb b/recipes-bsp/dspdce-fw/dspdce-fw_git.bb
new file mode 100644
index 00000000..3beb4fbe
--- /dev/null
+++ b/recipes-bsp/dspdce-fw/dspdce-fw_git.bb
@@ -0,0 +1,61 @@
1DESCRIPTION = "Firmware for DSP for an example application called copycodectest"
2LICENSE = "TI-TSPA"
3LIC_FILES_CHKSUM = "file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6ed75f22b1a2b7544b1c809d"
4
5COMPATIBLE_MACHINE = "dra7xx"
6
7SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git"
8
9SRCREV = "71e8fbf8e4f91b60680cf18a0c202a222e9ae3ba"
10
11PV = "1.00.00.06"
12
13S = "${WORKDIR}/git"
14
15require recipes-ti/includes/ti-paths.inc
16require recipes-ti/includes/ti-staging.inc
17
18PR = "r0"
19inherit update-alternatives
20
21DEPENDS = "ti-xdctools ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native"
22
23export HWVERSION = "ES10"
24export BIOSTOOLSROOT = "${STAGING_DIR_TARGET}/usr/share/ti"
25
26export XDCVERSION = "ti-xdctools-tree"
27export BIOSVERSION = "ti-sysbios-tree"
28export IPCVERSION = "ti-ipc-tree"
29export CEVERSION = "ti-codec-engine-tree"
30export FCVERSION = "ti-framework-components-tree"
31export XDAISVERSION = "ti-xdais-tree"
32export OSALVERSION = "ti-osal-tree"
33
34export IPCSRC = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
35export C66XCGTOOLSPATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
36
37do_configure() {
38 cd ${S}
39 make unconfig
40 make vayu_config
41}
42
43do_compile() {
44 cd ${S}
45 make dspbin
46}
47
48TARGET = "dra7-dsp1-fw.xe66"
49
50do_install() {
51 mkdir -p ${D}${base_libdir}/firmware
52 cp ${S}/dra7xx-c66x-dsp.xe66 ${D}${base_libdir}/firmware/${TARGET}
53}
54
55ALTERNATIVE_${PN} = "dra7-dsp1-fw.xe66"
56ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "/lib/firmware/${TARGET}"
57ALTERNATIVE_PRIORITY = "10"
58
59INSANE_SKIP_${PN} = "arch"
60
61FILES_${PN} += "${base_libdir}/firmware/*"