diff options
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb | 75 |
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 @@ | |||
1 | require edma3-lld.inc | ||
2 | require recipes-ti/includes/ti-paths.inc | ||
3 | require recipes-ti/includes/ti-staging.inc | ||
4 | |||
5 | PR = "r0" | ||
6 | |||
7 | DEPENDS = "ti-cgt6x-native ti-sysbios ti-xdctools" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "dra7xx|keystone" | ||
10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
11 | |||
12 | PLATFORMLIST = "" | ||
13 | PLATFORMLIST_keystone = " \ | ||
14 | tci6636k2h-evm \ | ||
15 | tci6638k2k-evm \ | ||
16 | tci6630k2l-evm \ | ||
17 | c66ak2e-evm \ | ||
18 | " | ||
19 | |||
20 | PLATFORMLIST_dra7xx = " \ | ||
21 | tda2xx-evm \ | ||
22 | dra72x-evm \ | ||
23 | am571x-evm \ | ||
24 | am572x-evm \ | ||
25 | " | ||
26 | |||
27 | S = "${WORKDIR}/git" | ||
28 | |||
29 | PARALLEL_MAKE = "" | ||
30 | |||
31 | export C6X_GEN_INSTALL_PATH = "${STAGING_DIR_NATIVE}/usr" | ||
32 | export XDCCGROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
33 | export CGTOOLS = "${XDCCGROOT}" | ||
34 | export CGTOOLS_ELF = "${XDCCGROOT}" | ||
35 | export CODEGEN_PATH_DSP = "${XDCCGROOT}" | ||
36 | export CODEGEN_PATH_DSPELF = "${XDCCGROOT}" | ||
37 | export TMS470_CGTOOLS = "${XDCCGROOT}" | ||
38 | export UTILS_INSTALL_DIR = "${XDC_INSTALL_DIR}" | ||
39 | export XDCPATH = "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages" | ||
40 | export PATH := "${XDC_INSTALL_DIR}:${PATH}" | ||
41 | export ROOTDIR="${S}" | ||
42 | export INTERNAL_SW_ROOT="${S}" | ||
43 | export CROSSCC="${TARGET_PREFIX}gcc" | ||
44 | export CROSSAR="${TARGET_PREFIX}ar" | ||
45 | export CROSSLNK="${TARGET_PREFIX}gcc" | ||
46 | |||
47 | |||
48 | EXTRA_OEMAKE += " -C ${S}/packages TARGET=66 FORMAT=ELF" | ||
49 | |||
50 | do_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 | |||
61 | do_compile () { | ||
62 | for p in ${PLATFORMLIST} | ||
63 | do | ||
64 | oe_runmake PLATFORM=${p} | ||
65 | done | ||
66 | } | ||
67 | |||
68 | do_install () { | ||
69 | install -d ${D}${EDMA3_LLD_INSTALL_DIR_RECIPE} | ||
70 | cp -pPrf ${S}/* ${D}${EDMA3_LLD_INSTALL_DIR_RECIPE} | ||
71 | } | ||
72 | |||
73 | INSANE_SKIP_${PN} = "arch" | ||
74 | |||
75 | FILES_${PN} += "${EDMA3_LLD_INSTALL_DIR_RECIPE}" | ||