summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb75
1 files changed, 75 insertions, 0 deletions
diff --git a/recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb b/recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb
new file mode 100644
index 00000000..246d7a88
--- /dev/null
+++ b/recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb
@@ -0,0 +1,75 @@
1require edma3-lld.inc
2require recipes-ti/includes/ti-paths.inc
3require recipes-ti/includes/ti-staging.inc
4
5PR = "r0"
6
7DEPENDS = "ti-cgt6x-native ti-sysbios ti-xdctools"
8
9COMPATIBLE_MACHINE = "dra7xx|keystone"
10PACKAGE_ARCH = "${MACHINE_ARCH}"
11
12PLATFORMLIST = ""
13PLATFORMLIST_keystone = " \
14 tci6636k2h-evm \
15 tci6638k2k-evm \
16 tci6630k2l-evm \
17 c66ak2e-evm \
18"
19
20PLATFORMLIST_dra7xx = " \
21 tda2xx-evm \
22 dra72x-evm \
23 am571x-evm \
24 am572x-evm \
25"
26
27S = "${WORKDIR}/git"
28
29PARALLEL_MAKE = ""
30
31export C6X_GEN_INSTALL_PATH = "${STAGING_DIR_NATIVE}/usr"
32export XDCCGROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
33export CGTOOLS = "${XDCCGROOT}"
34export CGTOOLS_ELF = "${XDCCGROOT}"
35export CODEGEN_PATH_DSP = "${XDCCGROOT}"
36export CODEGEN_PATH_DSPELF = "${XDCCGROOT}"
37export TMS470_CGTOOLS = "${XDCCGROOT}"
38export UTILS_INSTALL_DIR = "${XDC_INSTALL_DIR}"
39export XDCPATH = "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages"
40export PATH := "${XDC_INSTALL_DIR}:${PATH}"
41export ROOTDIR="${S}"
42export INTERNAL_SW_ROOT="${S}"
43export CROSSCC="${TARGET_PREFIX}gcc"
44export CROSSAR="${TARGET_PREFIX}ar"
45export CROSSLNK="${TARGET_PREFIX}gcc"
46
47
48EXTRA_OEMAKE += " -C ${S}/packages TARGET=66 FORMAT=ELF"
49
50do_configure () {
51 sed -i -e "s|^UTILS_INSTALL_DIR =.*$|UTILS_INSTALL_DIR = ${XDC_INSTALL_DIR}|g" ${S}/makerules/env.mk
52 sed -i -e "s|^bios_PATH =.*$|bios_PATH = ${SYSBIOS_INSTALL_DIR}|g" ${S}/makerules/env.mk
53 sed -i -e "s|^xdc_PATH =.*$|xdc_PATH = ${XDC_INSTALL_DIR}|g" ${S}/makerules/env.mk
54 sed -i -e "s|^CODEGEN_PATH_DSP =.*$|CODEGEN_PATH_DSP = ${XDCCGROOT}|g" ${S}/makerules/env.mk
55 sed -i -e "s|^CODEGEN_PATH_DSPELF =.*$|CODEGEN_PATH_DSPELF = ${XDCCGROOT}|g" ${S}/makerules/env.mk
56
57 cd ${S}/packages
58 ${XDC_INSTALL_DIR}/xdc .interfaces -PR .
59}
60
61do_compile () {
62 for p in ${PLATFORMLIST}
63 do
64 oe_runmake PLATFORM=${p}
65 done
66}
67
68do_install () {
69 install -d ${D}${EDMA3_LLD_INSTALL_DIR_RECIPE}
70 cp -pPrf ${S}/* ${D}${EDMA3_LLD_INSTALL_DIR_RECIPE}
71}
72
73INSANE_SKIP_${PN} = "arch"
74
75FILES_${PN} += "${EDMA3_LLD_INSTALL_DIR_RECIPE}"