diff options
Diffstat (limited to 'meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb')
-rw-r--r-- | meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb new file mode 100644 index 00000000..fd34657a --- /dev/null +++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb | |||
@@ -0,0 +1,107 @@ | |||
1 | DESCRIPTION = "TI DSP Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1" | ||
6 | LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-c6x/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1" | ||
7 | |||
8 | PE = "1" | ||
9 | |||
10 | require recipes-ti/includes/ti-unpack.inc | ||
11 | |||
12 | COMPATIBLE_HOST:class-target = "arm.*-linux" | ||
13 | |||
14 | # For now we only have hardfp version for target class | ||
15 | python __anonymous() { | ||
16 | c = d.getVar("CLASSOVERRIDE") | ||
17 | |||
18 | if c == "class-target": | ||
19 | tunes = d.getVar("TUNE_FEATURES") | ||
20 | if not tunes: | ||
21 | return | ||
22 | pkgn = d.getVar("PN") | ||
23 | pkgv = d.getVar("PV") | ||
24 | if "callconvention-hard" not in tunes: | ||
25 | bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) | ||
26 | raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv)) | ||
27 | } | ||
28 | |||
29 | BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin" | ||
30 | BINFILE_NAME = "cgt6x_x86_installer" | ||
31 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
32 | TI_BIN_UNPK_CMDS = "" | ||
33 | |||
34 | BINFILE:class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh" | ||
35 | BINFILE_NAME:class-target = "cgt6x_arm_installer" | ||
36 | |||
37 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/${PV}/${BINFILE};name=${BINFILE_NAME}" | ||
38 | |||
39 | SRC_URI[cgt6x_x86_installer.md5sum] = "f1f534e6a4bdee6df39e8d0cb458d161" | ||
40 | SRC_URI[cgt6x_x86_installer.sha256sum] = "1fba2a8f5532b33a23677771d686a866171ce7a0e567fed50d900d0ecd2e17e6" | ||
41 | |||
42 | SRC_URI[cgt6x_arm_installer.md5sum] = "425d82308e71202ad004a36b7ec3cec9" | ||
43 | SRC_URI[cgt6x_arm_installer.sha256sum] = "70c387ddde379194fed712087be6cb0ca5f4f0e65d7f29bd7462c38ee011928f" | ||
44 | |||
45 | do_install() { | ||
46 | install -d ${D}${bindir} | ||
47 | for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do | ||
48 | install -m 755 ${binfile} ${D}${bindir} | ||
49 | done | ||
50 | |||
51 | install -d ${D}${datadir}/ti/cgt-c6x/bin | ||
52 | for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do | ||
53 | install -m 755 ${binfile} ${D}${datadir}/ti/cgt-c6x/bin | ||
54 | done | ||
55 | |||
56 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
57 | cp ${CP_ARGS} ${S}/ti-cgt-c6000_${PV}/include ${D}${datadir}/ti/cgt-c6x/include | ||
58 | |||
59 | install -d ${D}${datadir}/ti/cgt-c6x/lib | ||
60 | for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do | ||
61 | install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib | ||
62 | done | ||
63 | |||
64 | for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do | ||
65 | install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib | ||
66 | done | ||
67 | |||
68 | for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do | ||
69 | install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib | ||
70 | done | ||
71 | |||
72 | install -d ${D}${datadir}/man/man1 | ||
73 | for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do | ||
74 | if [ -e ${manfile} ]; then | ||
75 | install -m 644 ${manfile} ${D}${datadir}/man/man1 | ||
76 | fi | ||
77 | done | ||
78 | |||
79 | install -d ${D}${datadir}/doc/ti/cgt-c6x | ||
80 | for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do | ||
81 | install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x | ||
82 | done | ||
83 | |||
84 | for docfile in ${S}/ti-cgt-c6000_${PV}/*.html; do | ||
85 | install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x | ||
86 | done | ||
87 | |||
88 | for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do | ||
89 | install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x | ||
90 | done | ||
91 | |||
92 | } | ||
93 | |||
94 | do_install:class-target() { | ||
95 | ${WORKDIR}/${BINFILE} --prefix ${D} | ||
96 | } | ||
97 | |||
98 | FILES:${PN} += "${datadir}/ti/*" | ||
99 | |||
100 | FILES:${PN}-dbg += "${datadir}/ti/cgt-c6x/bin/.debug" | ||
101 | |||
102 | INSANE_SKIP:${PN} += "staticdev" | ||
103 | INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${datadir}/ti/cgt-c6x/lib/libc.a" | ||
104 | |||
105 | BBCLASSEXTEND = "native nativesdk" | ||
106 | |||
107 | COMPATIBLE_MACHINE:class-target = "(ti-soc)" | ||