diff options
author | Denys Dmytriyenko <denys@konsulko.com> | 2022-02-22 04:13:51 +0000 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2022-02-22 12:01:39 -0600 |
commit | 37ef6ae6fe518e78a6b44b8633d4c38cc7792c3e (patch) | |
tree | 0cb0ca43d699f542e4421b3ce34607823774f841 /meta-ti-extras/recipes-ti/includes | |
parent | c3007665063fac4140a6dddd3d76378ec5ae5c19 (diff) | |
download | meta-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.inc | 15 | ||||
-rw-r--r-- | meta-ti-extras/recipes-ti/includes/ti-paths.inc | 109 | ||||
-rw-r--r-- | meta-ti-extras/recipes-ti/includes/ti-staging.inc | 6 | ||||
-rw-r--r-- | meta-ti-extras/recipes-ti/includes/ti-unpack.inc | 83 |
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 | |||
12 | require recipes-ti/includes/ti-unpack.inc | ||
13 | |||
14 | TI_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 @@ | |||
1 | installdir = "${datadir}/ti" | ||
2 | |||
3 | export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}" | ||
4 | # This is where do_install will put it | ||
5 | export AUDIO_SOC_INSTALL_DIR_RECIPE = "${installdir}/ti-audio-soc-example-tree" | ||
6 | export BIOSPSP_INSTALL_DIR_RECIPE = "${installdir}/ti-biospsp-tree" | ||
7 | export C6ACCEL_INSTALL_DIR_RECIPE = "${installdir}/ti-c6accel-tree" | ||
8 | export C6RUN_INSTALL_DIR_RECIPE = "${installdir}/ti-c6run-tree" | ||
9 | export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree" | ||
10 | export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree" | ||
11 | export CODEGEN_ARM_INSTALL_DIR_RECIPE= "${installdir}/ti-cgt470-tree" | ||
12 | export CODEGEN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt6x-tree" | ||
13 | export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree" | ||
14 | export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree" | ||
15 | export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree" | ||
16 | export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" | ||
17 | export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree" | ||
18 | export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree" | ||
19 | export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree" | ||
20 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-sysbios-tree" | ||
21 | export FASTMATHLIB_C674P_INSTALL_DIR_RECIPE = "${installdir}/ti-fastmathlib-c67x-tree" | ||
22 | export FC3_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components3-tree" | ||
23 | export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree" | ||
24 | export GFX_SDK_INSTALL_DIR_RECIPE = "${installdir}/ti-gfx-sdk-tree" | ||
25 | export HDVICP20_INSTALL_DIR_RECIPE = "${installdir}/ti-hdvicp20-tree" | ||
26 | export IMGLIB_C64P_INSTALL_DIR_RECIPE= "${installdir}/ti-imglib-tree" | ||
27 | export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree" | ||
28 | export LINK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplink-tree" | ||
29 | export LPM_INSTALL_DIR_RECIPE = "${installdir}/ti-local-power-manager-tree" | ||
30 | export OMX_INSTALL_DIR_RECIPE = "${installdir}/ti-omx-tree" | ||
31 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
32 | export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree" | ||
33 | export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree" | ||
34 | export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree" | ||
35 | export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree" | ||
36 | export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree" | ||
37 | export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree" | ||
38 | export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree" | ||
39 | export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree" | ||
40 | export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree" | ||
41 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
42 | export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" | ||
43 | export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" | ||
44 | export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" | ||
45 | export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" | ||
46 | export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" | ||
47 | export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree" | ||
48 | export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree" | ||
49 | export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree" | ||
50 | export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree" | ||
51 | export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree" | ||
52 | export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7" | ||
53 | export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x" | ||
54 | |||
55 | |||
56 | # This is where the tools will end up in sysroot | ||
57 | export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}" | ||
58 | export BIOSPSP_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOSPSP_INSTALL_DIR_RECIPE}" | ||
59 | export C6ACCEL_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6ACCEL_INSTALL_DIR_RECIPE}" | ||
60 | export C6RUN_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6RUN_INSTALL_DIR_RECIPE}" | ||
61 | export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}" | ||
62 | export CMEM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CMEM_INSTALL_DIR_RECIPE}" | ||
63 | export CODEC_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEC_INSTALL_DIR_RECIPE}" | ||
64 | export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}" | ||
65 | export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}" | ||
66 | export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}" | ||
67 | export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}" | ||
68 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}" | ||
69 | export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}" | ||
70 | export FC3_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC3_INSTALL_DIR_RECIPE}" | ||
71 | export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}" | ||
72 | export HDVICP20_INSTALL_DIR = "${STAGING_DIR_TARGET}${HDVICP20_INSTALL_DIR_RECIPE}" | ||
73 | export IMGLIB_C64P_INSTALL_DIR= "${STAGING_DIR_TARGET}${IMGLIB_C64P_INSTALL_DIR_RECIPE}" | ||
74 | export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}" | ||
75 | export LINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}" | ||
76 | export LPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}" | ||
77 | export OMX_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}" | ||
78 | export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}" | ||
79 | export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}" | ||
80 | export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}" | ||
81 | export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}" | ||
82 | export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}" | ||
83 | export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}" | ||
84 | export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}" | ||
85 | export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" | ||
86 | export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" | ||
87 | export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" | ||
88 | export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" | ||
89 | export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
90 | export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
91 | export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
92 | export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}" | ||
93 | export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" | ||
94 | export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}" | ||
95 | export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}" | ||
96 | export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}" | ||
97 | export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}" | ||
98 | export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}" | ||
99 | export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}" | ||
100 | export GCC_LINARO_BAREMETAL_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_TOOLCHAIN_RECIPE}" | ||
101 | export GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN_RECIPE}" | ||
102 | export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}" | ||
103 | |||
104 | |||
105 | DSPSUFFIX:omapl137 = "x674" | ||
106 | DSPSUFFIX:omapl138 = "x674" | ||
107 | DSPSUFFIX_ti816x = "xe674" | ||
108 | DSPSUFFIX_ti814x = "xe674" | ||
109 | DSPSUFFIX ?= "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 @@ | |||
1 | INHIBIT_PACKAGE_STRIP = "1" | ||
2 | |||
3 | ALLOW_EMPTY:${PN} = "1" | ||
4 | ALLOW_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 | |||
13 | python do_unpack () { | ||
14 | bb.build.exec_func('base_do_unpack', d) | ||
15 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
16 | } | ||
17 | |||
18 | TI_BIN_UNPK_WDEXT ?= "" | ||
19 | python 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 | |||
80 | COMPATIBLE_HOST ?= "null" | ||
81 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
82 | COMPATIBLE_HOST:class-native = "(.*)" | ||
83 | COMPATIBLE_HOST:class-nativesdk = "(.*)" | ||