blob: d5253e2ca536d7c3dd30321a6c61b48bd3fe57f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
SUMMARY = "TI RTOS low level driver for UDMA"
DESCRIPTION = "TI RTOS low level driver for Universal DMA module "
inherit ti-pdk
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://udma.h;beginline=1;endline=31;md5=83d177cf3df55c16b27ae4102b6ade9a"
COMPATIBLE_MACHINE = "k3"
PACKAGE_ARCH = "${MACHINE_ARCH}"
UDMA_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/udma-lld.git"
UDMA_LLD_GIT_PROTOCOL = "git"
UDMA_LLD_GIT_BRANCH = "master"
# Below commit ID corresponds to "DEV.UDMA_LLD.01.00.00.01A"
UDMA_LLD_SRCREV = "e03304e15bb7f1a86c77f1a9984361c822ab2b70"
BRANCH = "${UDMA_LLD_GIT_BRANCH}"
SRC_URI = "${UDMA_LLD_GIT_URI};protocol=${UDMA_LLD_GIT_PROTOCOL};branch=${BRANCH}"
SRCREV = "${UDMA_LLD_SRCREV}"
PV = "01.00.00.01A"
PR = "r0"
DEPENDS_append = " osal-rtos \
sciclient-rtos \
"
# Build with make instead of XDC
TI_PDK_XDCMAKE = "0"
UDMA_PACKAGE_BASE = "${S}/../udma_base"
UDMA_LLD_ROOTPATH = "${UDMA_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/udma"
export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
export PDK_UDMA_ROOT_PATH = "${UDMA_PACKAGE_BASE}/package/all/pdk_/packages"
TI_PDK_LIMIT_BOARDS_k3 = "am65xx_evm"
# HTML doc link params
PDK_COMP_LINK_TEXT = "UDMA LLD"
do_configure() {
# remove any previous package
rm -rf ${UDMA_PACKAGE_BASE}
cd ${S}
# make the release package before building it
make package BOARD=${TI_PDK_LIMIT_BOARDS} DEST_ROOT=${UDMA_PACKAGE_BASE} PDK_UDMA_COMP_PATH=${S}
}
do_compile() {
cd ${UDMA_LLD_ROOTPATH}
# Build am65xx libraries
make clean lib xdc_meta doxygen LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}"
#archive
tar -cf udma_lld.tar --exclude='*.tar' ./*
}
do_install() {
cd ${UDMA_LLD_ROOTPATH}
install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/udma
find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/udma \;
}
FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
INSANE_SKIP_${PN} = "arch ldflags"
|