summaryrefslogtreecommitdiffstats
path: root/meta-ti-extras/recipes-ti/includes
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2022-02-22 04:13:51 +0000
committerRyan Eatmon <reatmon@ti.com>2022-02-22 12:01:39 -0600
commit37ef6ae6fe518e78a6b44b8633d4c38cc7792c3e (patch)
tree0cb0ca43d699f542e4421b3ce34607823774f841 /meta-ti-extras/recipes-ti/includes
parentc3007665063fac4140a6dddd3d76378ec5ae5c19 (diff)
downloadmeta-ti-37ef6ae6fe518e78a6b44b8633d4c38cc7792c3e.tar.gz
meta-ti: move BIOS,XDC,XDAIS, CGT,DSP libs and components to meta-ti-extras
Legacy platforms AM3/4/5/J6 build components for multimedia acceleration and other DSP showcasing using SYS/BIOS, XDC, XDAIS, CodeGen Tools and different DSP libraries. Move all of them to meta-ti-extras. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-extras/recipes-ti/includes')
-rw-r--r--meta-ti-extras/recipes-ti/includes/ti-eula-unpack.inc15
-rw-r--r--meta-ti-extras/recipes-ti/includes/ti-paths.inc109
-rw-r--r--meta-ti-extras/recipes-ti/includes/ti-staging.inc6
-rw-r--r--meta-ti-extras/recipes-ti/includes/ti-unpack.inc83
4 files changed, 213 insertions, 0 deletions
diff --git a/meta-ti-extras/recipes-ti/includes/ti-eula-unpack.inc b/meta-ti-extras/recipes-ti/includes/ti-eula-unpack.inc
new file mode 100644
index 00000000..ead06100
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/includes/ti-eula-unpack.inc
@@ -0,0 +1,15 @@
1# This file defines function used for unpacking the .bin file downloaded over
2# the http and display EULA.
3# BINFILE - name of the install jammer .bin file
4# TARFILE - name of the tar file inside the install jammer
5# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
6# passed while unpacking the bin file. The keyword
7# workdir expands to WORKDIR and commands are appendded
8# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
9# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
10# the output in some internal directory
11
12require recipes-ti/includes/ti-unpack.inc
13
14TI_BIN_UNPK_ARGS = "--mode console"
15
diff --git a/meta-ti-extras/recipes-ti/includes/ti-paths.inc b/meta-ti-extras/recipes-ti/includes/ti-paths.inc
new file mode 100644
index 00000000..358d7dfd
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/includes/ti-paths.inc
@@ -0,0 +1,109 @@
1installdir = "${datadir}/ti"
2
3export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
4# This is where do_install will put it
5export AUDIO_SOC_INSTALL_DIR_RECIPE = "${installdir}/ti-audio-soc-example-tree"
6export BIOSPSP_INSTALL_DIR_RECIPE = "${installdir}/ti-biospsp-tree"
7export C6ACCEL_INSTALL_DIR_RECIPE = "${installdir}/ti-c6accel-tree"
8export C6RUN_INSTALL_DIR_RECIPE = "${installdir}/ti-c6run-tree"
9export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree"
10export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree"
11export CODEGEN_ARM_INSTALL_DIR_RECIPE= "${installdir}/ti-cgt470-tree"
12export CODEGEN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt6x-tree"
13export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
14export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
15export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
16export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree"
17export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
18export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree"
19export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree"
20export EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-sysbios-tree"
21export FASTMATHLIB_C674P_INSTALL_DIR_RECIPE = "${installdir}/ti-fastmathlib-c67x-tree"
22export FC3_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components3-tree"
23export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree"
24export GFX_SDK_INSTALL_DIR_RECIPE = "${installdir}/ti-gfx-sdk-tree"
25export HDVICP20_INSTALL_DIR_RECIPE = "${installdir}/ti-hdvicp20-tree"
26export IMGLIB_C64P_INSTALL_DIR_RECIPE= "${installdir}/ti-imglib-tree"
27export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree"
28export LINK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplink-tree"
29export LPM_INSTALL_DIR_RECIPE = "${installdir}/ti-local-power-manager-tree"
30export OMX_INSTALL_DIR_RECIPE = "${installdir}/ti-omx-tree"
31export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
32export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree"
33export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree"
34export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree"
35export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree"
36export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree"
37export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree"
38export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree"
39export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree"
40export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree"
41export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
42export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm"
43export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi"
44export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru"
45export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree"
46export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree"
47export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree"
48export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree"
49export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree"
50export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree"
51export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree"
52export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7"
53export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x"
54
55
56# This is where the tools will end up in sysroot
57export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"
58export BIOSPSP_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOSPSP_INSTALL_DIR_RECIPE}"
59export C6ACCEL_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6ACCEL_INSTALL_DIR_RECIPE}"
60export C6RUN_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6RUN_INSTALL_DIR_RECIPE}"
61export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}"
62export CMEM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CMEM_INSTALL_DIR_RECIPE}"
63export CODEC_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEC_INSTALL_DIR_RECIPE}"
64export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}"
65export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}"
66export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}"
67export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}"
68export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}"
69export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}"
70export FC3_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC3_INSTALL_DIR_RECIPE}"
71export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}"
72export HDVICP20_INSTALL_DIR = "${STAGING_DIR_TARGET}${HDVICP20_INSTALL_DIR_RECIPE}"
73export IMGLIB_C64P_INSTALL_DIR= "${STAGING_DIR_TARGET}${IMGLIB_C64P_INSTALL_DIR_RECIPE}"
74export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}"
75export LINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}"
76export LPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}"
77export OMX_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}"
78export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}"
79export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}"
80export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}"
81export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}"
82export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}"
83export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}"
84export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}"
85export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
86export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
87export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
88export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
89export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
90export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
91export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
92export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
93export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
94export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
95export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
96export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}"
97export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}"
98export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}"
99export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
100export GCC_LINARO_BAREMETAL_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_TOOLCHAIN_RECIPE}"
101export GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN_RECIPE}"
102export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}"
103
104
105DSPSUFFIX:omapl137 = "x674"
106DSPSUFFIX:omapl138 = "x674"
107DSPSUFFIX_ti816x = "xe674"
108DSPSUFFIX_ti814x = "xe674"
109DSPSUFFIX ?= "x64P"
diff --git a/meta-ti-extras/recipes-ti/includes/ti-staging.inc b/meta-ti-extras/recipes-ti/includes/ti-staging.inc
new file mode 100644
index 00000000..f18d017c
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/includes/ti-staging.inc
@@ -0,0 +1,6 @@
1INHIBIT_PACKAGE_STRIP = "1"
2
3ALLOW_EMPTY:${PN} = "1"
4ALLOW_EMPTY:${PN}-dev = "1"
5
6
diff --git a/meta-ti-extras/recipes-ti/includes/ti-unpack.inc b/meta-ti-extras/recipes-ti/includes/ti-unpack.inc
new file mode 100644
index 00000000..46bfb957
--- /dev/null
+++ b/meta-ti-extras/recipes-ti/includes/ti-unpack.inc
@@ -0,0 +1,83 @@
1# This file defines function used for unpacking the .bin file downloaded over
2# the http.
3# BINFILE - name of the install jammer .bin file
4# TARFILE - name of the tar file inside the install jammer
5# TI_BIN_UNPK_ARGS - contains the arguments to be passed to the bin file.
6# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
7# passed while unpacking the bin file. The keyword
8# workdir expands to WORKDIR and commands are appendded
9# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
10# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
11# the output in some internal directory
12
13python do_unpack () {
14 bb.build.exec_func('base_do_unpack', d)
15 bb.build.exec_func('ti_bin_do_unpack', d)
16}
17
18TI_BIN_UNPK_WDEXT ?= ""
19python ti_bin_do_unpack() {
20 import os
21
22 # InstallJammer requires 32bit version of glibc
23 if not os.path.exists('/lib/ld-linux.so.2'):
24 bb.fatal("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian")
25
26 localdata = bb.data.createCopy(d)
27 bb.data.update_data(localdata)
28
29 binfile = localdata.getVar('BINFILE')
30 binfile = bb.data.expand(binfile, localdata)
31
32 # Change to the working directory
33 save_cwd = os.getcwd()
34 workdir = localdata.getVar('WORKDIR')
35 workdir = bb.data.expand(workdir, localdata)
36 os.chdir(workdir)
37
38 # Get unpack args
39 arg_string = localdata.getVar('TI_BIN_UNPK_ARGS')
40 arg_string = bb.data.expand(arg_string, localdata)
41
42 # Get unpack commands
43 cmd_string = localdata.getVar('TI_BIN_UNPK_CMDS')
44 cmd_list = cmd_string.split( ":" )
45
46 # Make the InstallJammer binary executable so we can run it
47 os.chmod(binfile, 0o755)
48
49 # Run the InstallJammer binary and accept the EULA
50 filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string)
51
52 # Test executable by printing installer version or help screen (--version currently broken for some installers)
53 # - this is currently broken in some IJ installers - comment out for now
54 #if os.system(filename + " --version") != 0:
55 # print "ERROR: ti-eula-unpack: failed to execute binary installer"
56 # raise bb.build.FuncFailed()
57
58 f = os.popen(filename,'w')
59 for cmd in cmd_list:
60 if cmd == "workdir":
61 wdext = localdata.getVar('TI_BIN_UNPK_WDEXT')
62 wdext = bb.data.expand(wdext, localdata)
63 cmd = workdir+wdext
64 f.write(cmd+'\n');
65 f.close()
66
67 # Expand the tarball that was created if required
68 tarfile = localdata.getVar('TARFILE')
69 if bool(tarfile) == True:
70 tarfile = bb.data.expand(tarfile, localdata)
71 tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
72 if os.system(tcmd) != 0:
73 print("ERROR: ti-eula-unpack: failed to extract tarfile")
74 raise bb.build.FuncFailed()
75
76 # Return to the previous directory
77 os.chdir(save_cwd)
78}
79
80COMPATIBLE_HOST ?= "null"
81COMPATIBLE_HOST:ti-soc = "(.*)"
82COMPATIBLE_HOST:class-native = "(.*)"
83COMPATIBLE_HOST:class-nativesdk = "(.*)"