diff options
author | Jacob Stiffler <j-stiffler@ti.com> | 2019-12-02 13:45:44 -0500 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2019-12-09 18:15:23 +0000 |
commit | f6463518756a578a07422beca0985057e9a9bb7d (patch) | |
tree | 065f9b6b4be8f19db7346e7cc06f22f0a5edbbd1 | |
parent | a2d75d641f1eec7c39d476e782129672563162a0 (diff) | |
download | meta-ti-f6463518756a578a07422beca0985057e9a9bb7d.tar.gz |
cal-lld: TI RTOS low level driver for CAL
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r-- | recipes-bsp/cal-lld/cal-lld-rtos_git.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/recipes-bsp/cal-lld/cal-lld-rtos_git.bb b/recipes-bsp/cal-lld/cal-lld-rtos_git.bb new file mode 100644 index 00000000..f3c780f6 --- /dev/null +++ b/recipes-bsp/cal-lld/cal-lld-rtos_git.bb | |||
@@ -0,0 +1,76 @@ | |||
1 | SUMMARY = "TI RTOS low level driver for CAL" | ||
2 | |||
3 | inherit ti-pdk ti-pdk-fetch | ||
4 | |||
5 | TI_PDK_COMP = "ti.drv.cal" | ||
6 | |||
7 | PE = "1" | ||
8 | |||
9 | LICENSE = "BSD-3-Clause" | ||
10 | LIC_FILES_CHKSUM = "file://cal.h;beginline=1;endline=31;md5=83d177cf3df55c16b27ae4102b6ade9a" | ||
11 | |||
12 | COMPATIBLE_MACHINE = "k3" | ||
13 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
14 | |||
15 | |||
16 | PR = "r0" | ||
17 | |||
18 | DEPENDS_append = " osal-rtos \ | ||
19 | fvid2-rtos \ | ||
20 | " | ||
21 | |||
22 | # Build with make instead of XDC | ||
23 | TI_PDK_XDCMAKE = "0" | ||
24 | |||
25 | CAL_PACKAGE_BASE = "${WORKDIR}/cal_base" | ||
26 | CAL_LLD_ROOTPATH = "${CAL_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/cal" | ||
27 | |||
28 | export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" | ||
29 | export PDK_CAL_ROOT_PATH = "${CAL_PACKAGE_BASE}/package/all/pdk_/packages" | ||
30 | |||
31 | LIMSOCS = "" | ||
32 | LIMSOCS_am65xx-evm = "am65xx" | ||
33 | LIMSOCS_am65xx-hs-evm = "am65xx" | ||
34 | |||
35 | LIMBOARDS = "" | ||
36 | LIMBOARDS_am65xx-evm = "am65xx_evm" | ||
37 | LIMBOARDS_am65xx-hs-evm = "am65xx_evm" | ||
38 | |||
39 | BOARD_PACKAGE = "" | ||
40 | BOARD_PACKAGE_am65xx-evm = "am65xx_evm" | ||
41 | BOARD_PACKAGE_am65xx-hs-evm = "am65xx_evm" | ||
42 | |||
43 | # HTML doc link params | ||
44 | PDK_COMP_LINK_TEXT = "CAL" | ||
45 | |||
46 | do_configure() { | ||
47 | rm -rf ${CAL_PACKAGE_BASE} | ||
48 | cd ${S} | ||
49 | |||
50 | # remove any previous package | ||
51 | rm -f ${CAL_PACKAGE_BASE} | ||
52 | |||
53 | # make the release package before building it | ||
54 | make package BOARD=${BOARD_PACKAGE} DEST_ROOT=${CAL_PACKAGE_BASE} PDK_CAL_COMP_PATH=${S} | ||
55 | } | ||
56 | |||
57 | do_compile() { | ||
58 | echo "cal lld root path is ${CAL_LLD_ROOTPATH}" | ||
59 | cd ${CAL_LLD_ROOTPATH} | ||
60 | |||
61 | # Build am65xx libraries | ||
62 | make clean lib xdc_meta doxygen LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}" | ||
63 | |||
64 | #archive | ||
65 | tar -cf cal_lld.tar --exclude='*.tar' ./* | ||
66 | } | ||
67 | |||
68 | do_install() { | ||
69 | cd ${CAL_LLD_ROOTPATH} | ||
70 | install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/cal | ||
71 | find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/cal \; | ||
72 | } | ||
73 | |||
74 | FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages" | ||
75 | |||
76 | INSANE_SKIP_${PN} = "arch ldflags" | ||