summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorJacob Stiffler <j-stiffler@ti.com>2019-12-02 13:45:45 -0500
committerDenys Dmytriyenko <denys@ti.com>2019-12-09 18:15:23 +0000
commit0cc2d5007d534d9c876e35944cb681d67e0747f6 (patch)
treeace35ca75a88a30dc392f5b63a1df1f2b0bb7c29 /recipes-bsp
parentf6463518756a578a07422beca0985057e9a9bb7d (diff)
downloadmeta-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-xrecipes-bsp/fvid2/fvid2-rtos_git.bb68
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 @@
1SUMMARY = "TI RTOS Video Driver Interface"
2
3inherit ti-pdk ti-pdk-fetch
4
5TI_PDK_COMP = "ti.drv.fvid2"
6
7PE = "1"
8
9LICENSE = "BSD-3-Clause"
10LIC_FILES_CHKSUM = "file://fvid2.h;beginline=1;endline=31;md5=83d177cf3df55c16b27ae4102b6ade9a"
11
12COMPATIBLE_MACHINE = "k3"
13PACKAGE_ARCH = "${MACHINE_ARCH}"
14
15PR = "r0"
16
17DEPENDS_append = " osal-rtos \
18"
19
20# Build with make instead of XDC
21TI_PDK_XDCMAKE = "0"
22
23FVID2_PACKAGE_BASE = "${WORKDIR}/fvid2_base"
24FVID2_ROOTPATH = "${FVID2_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/fvid2"
25
26export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
27export PDK_FVID2_ROOT_PATH = "${FVID2_PACKAGE_BASE}/package/all/pdk_/packages"
28
29
30BOARD_PACKAGE = ""
31BOARD_PACKAGE_am65xx-evm = "am65xx_evm"
32BOARD_PACKAGE_am65xx-hs-evm = "am65xx_evm"
33BOARD_PACKAGE_j7-evm = "j721e_evm"
34
35# HTML doc link params
36PDK_COMP_LINK_TEXT = "FVID2"
37
38do_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
49do_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
60do_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
66FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
67
68INSANE_SKIP_${PN} = "arch ldflags"