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