diff options
author | Mahesh Radhakrishnan <m-radhakrishnan2@ti.com> | 2018-09-28 22:26:18 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2018-10-01 03:19:15 +0000 |
commit | a5183908793ca9061c086700cbf2a8c3871a6440 (patch) | |
tree | db2e76451b9810c0479667f741f7001363f03ebc /recipes-bsp | |
parent | 8a4e63ce792e792c6910ace8458279fcb769f417 (diff) | |
download | meta-ti-a5183908793ca9061c086700cbf2a8c3871a6440.tar.gz |
udma-lld-rtos: Added support for udma-lld on rtos (initial version)
Signed-off-by: Mahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/udma-lld/udma-lld-rtos_git.bb | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/recipes-bsp/udma-lld/udma-lld-rtos_git.bb b/recipes-bsp/udma-lld/udma-lld-rtos_git.bb new file mode 100644 index 00000000..ad6be644 --- /dev/null +++ b/recipes-bsp/udma-lld/udma-lld-rtos_git.bb | |||
@@ -0,0 +1,74 @@ | |||
1 | SUMMARY = "TI RTOS low level driver for UDMA" | ||
2 | DESCRIPTION = "TI RTOS low level driver for Universal DMA module " | ||
3 | |||
4 | inherit ti-pdk | ||
5 | |||
6 | LICENSE = "BSD-3-Clause" | ||
7 | LIC_FILES_CHKSUM = "file://udma.h;beginline=1;endline=31;md5=83d177cf3df55c16b27ae4102b6ade9a" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "k3" | ||
10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
11 | |||
12 | UDMA_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/udma-lld.git" | ||
13 | UDMA_LLD_GIT_PROTOCOL = "git" | ||
14 | UDMA_LLD_GIT_BRANCH = "master" | ||
15 | |||
16 | # Below commit ID corresponds to "DEV.UDMA_LLD.01.00.00.00" | ||
17 | UDMA_LLD_SRCREV = "745f7d3fa12cca6507821489451ffe0cfad4609e" | ||
18 | |||
19 | BRANCH = "${UDMA_LLD_GIT_BRANCH}" | ||
20 | SRC_URI = "${UDMA_LLD_GIT_URI};protocol=${UDMA_LLD_GIT_PROTOCOL};branch=${BRANCH}" | ||
21 | |||
22 | SRCREV = "${UDMA_LLD_SRCREV}" | ||
23 | PV = "01.00.00.00" | ||
24 | PR = "r0" | ||
25 | |||
26 | DEPENDS_append = " osal-rtos \ | ||
27 | sciclient-rtos \ | ||
28 | " | ||
29 | |||
30 | # Build with make instead of XDC | ||
31 | TI_PDK_XDCMAKE = "0" | ||
32 | |||
33 | UDMA_PACKAGE_BASE = "${S}/../udma_base" | ||
34 | UDMA_LLD_ROOTPATH = "${UDMA_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/udma" | ||
35 | |||
36 | export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" | ||
37 | export PDK_UDMA_ROOT_PATH = "${UDMA_PACKAGE_BASE}/package/all/pdk_/packages" | ||
38 | |||
39 | TI_PDK_LIMIT_BOARDS_k3 = "am65xx_evm" | ||
40 | |||
41 | # HTML doc link params | ||
42 | PDK_COMP_LINK_TEXT = "UDMA LLD" | ||
43 | |||
44 | do_configure() { | ||
45 | |||
46 | # remove any previous package | ||
47 | rm -rf ${UDMA_PACKAGE_BASE} | ||
48 | |||
49 | cd ${S} | ||
50 | |||
51 | # make the release package before building it | ||
52 | make package BOARD=${TI_PDK_LIMIT_BOARDS} DEST_ROOT=${UDMA_PACKAGE_BASE} PDK_UDMA_COMP_PATH=${S} | ||
53 | } | ||
54 | |||
55 | do_compile() { | ||
56 | |||
57 | cd ${UDMA_LLD_ROOTPATH} | ||
58 | |||
59 | # Build am65xx libraries | ||
60 | make clean lib xdc_meta doxygen LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}" | ||
61 | |||
62 | #archive | ||
63 | tar -cf udma_lld.tar --exclude='*.tar' ./* | ||
64 | } | ||
65 | |||
66 | do_install() { | ||
67 | cd ${UDMA_LLD_ROOTPATH} | ||
68 | install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/udma | ||
69 | find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/udma \; | ||
70 | } | ||
71 | |||
72 | FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages" | ||
73 | |||
74 | INSANE_SKIP_${PN} = "arch ldflags" | ||