summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorMahesh Radhakrishnan <m-radhakrishnan2@ti.com>2018-09-28 22:26:18 +0000
committerDenys Dmytriyenko <denys@ti.com>2018-10-01 03:19:15 +0000
commita5183908793ca9061c086700cbf2a8c3871a6440 (patch)
treedb2e76451b9810c0479667f741f7001363f03ebc /recipes-bsp
parent8a4e63ce792e792c6910ace8458279fcb769f417 (diff)
downloadmeta-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.bb74
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 @@
1SUMMARY = "TI RTOS low level driver for UDMA"
2DESCRIPTION = "TI RTOS low level driver for Universal DMA module "
3
4inherit ti-pdk
5
6LICENSE = "BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://udma.h;beginline=1;endline=31;md5=83d177cf3df55c16b27ae4102b6ade9a"
8
9COMPATIBLE_MACHINE = "k3"
10PACKAGE_ARCH = "${MACHINE_ARCH}"
11
12UDMA_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/udma-lld.git"
13UDMA_LLD_GIT_PROTOCOL = "git"
14UDMA_LLD_GIT_BRANCH = "master"
15
16# Below commit ID corresponds to "DEV.UDMA_LLD.01.00.00.00"
17UDMA_LLD_SRCREV = "745f7d3fa12cca6507821489451ffe0cfad4609e"
18
19BRANCH = "${UDMA_LLD_GIT_BRANCH}"
20SRC_URI = "${UDMA_LLD_GIT_URI};protocol=${UDMA_LLD_GIT_PROTOCOL};branch=${BRANCH}"
21
22SRCREV = "${UDMA_LLD_SRCREV}"
23PV = "01.00.00.00"
24PR = "r0"
25
26DEPENDS_append = " osal-rtos \
27 sciclient-rtos \
28"
29
30# Build with make instead of XDC
31TI_PDK_XDCMAKE = "0"
32
33UDMA_PACKAGE_BASE = "${S}/../udma_base"
34UDMA_LLD_ROOTPATH = "${UDMA_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/udma"
35
36export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
37export PDK_UDMA_ROOT_PATH = "${UDMA_PACKAGE_BASE}/package/all/pdk_/packages"
38
39TI_PDK_LIMIT_BOARDS_k3 = "am65xx_evm"
40
41# HTML doc link params
42PDK_COMP_LINK_TEXT = "UDMA LLD"
43
44do_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
55do_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
66do_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
72FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
73
74INSANE_SKIP_${PN} = "arch ldflags"