All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ti-eula-unpack: Add support for general binary installers.
@ 2015-02-04 15:40 Jacob Stiffler
  2015-02-04 15:40 ` [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0 Jacob Stiffler
  0 siblings, 1 reply; 6+ messages in thread
From: Jacob Stiffler @ 2015-02-04 15:40 UTC (permalink / raw)
  To: meta-ti

* ti-unpack.inc has been created to allow support for general binary
  installers by creating a variable which is used to pass arbitrary
  arguments to the executable.
* ti-eula-unpack.inc sets the default arguments to retain support for
  recipes which still use this feature.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 recipes-ti/includes/ti-eula-unpack.inc |   67 +-------------------------
 recipes-ti/includes/ti-unpack.inc      |   83 ++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+), 65 deletions(-)
 create mode 100644 recipes-ti/includes/ti-unpack.inc

diff --git a/recipes-ti/includes/ti-eula-unpack.inc b/recipes-ti/includes/ti-eula-unpack.inc
index aee88f1..912cd18 100644
--- a/recipes-ti/includes/ti-eula-unpack.inc
+++ b/recipes-ti/includes/ti-eula-unpack.inc
@@ -9,70 +9,7 @@
 #  TI_BIN_UNPK_WDEXT  - This variable extends workdir path, if user wants to put
 #                       the output in some internal directory
 
-python do_unpack () {
-    bb.build.exec_func('base_do_unpack', d)
-    bb.build.exec_func('ti_bin_do_unpack', d)
-}
+require ../includes/ti-unpack.inc
 
-TI_BIN_UNPK_WDEXT ?= ""
-python ti_bin_do_unpack() {
-
-    import os
-
-    # InstallJammer requires 32bit version of glibc
-    lib32path = '/lib'
-    if os.path.exists('/lib64') and (os.path.islink('/lib64') or os.path.islink('/lib') or os.path.exists('/lib32')):
-        lib32path = '/lib32'
-    if not os.path.exists('%s/libc.so.6' % lib32path):
-        bb.warn("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install ia32-libs' on Ubuntu/Debian")
-
-    localdata = bb.data.createCopy(d)
-    bb.data.update_data(localdata)
-
-    binfile  = bb.data.getVar('BINFILE', localdata)
-    binfile  = bb.data.expand(binfile, localdata)
-
-    # Change to the working directory
-    save_cwd = os.getcwd()
-    workdir  = bb.data.getVar('WORKDIR', localdata)
-    workdir  = bb.data.expand(workdir, localdata)
-    os.chdir(workdir)
-
-    # Get unpack commands
-    cmd_string = bb.data.getVar('TI_BIN_UNPK_CMDS', localdata)
-    cmd_list = cmd_string.split( ":" )
-
-    # Make the InstallJammer binary executable so we can run it
-    os.chmod(binfile, 0755)
-
-    # Run the InstallJammer binary and accept the EULA
-    filename = "HOME=%s ./%s --mode console" % (workdir, binfile)
-    
-    # Test executable by printing installer version or help screen (--version currently broken for some installers) 
-    # - this is currently broken in some IJ installers - comment out for now
-    #if os.system(filename + " --version") != 0:
-    #   print "ERROR: ti-eula-unpack: failed to execute binary installer"
-    #   raise bb.build.FuncFailed()
- 
-    f = os.popen(filename,'w')
-    for cmd in cmd_list:
-        if cmd == "workdir":
-            wdext = bb.data.getVar('TI_BIN_UNPK_WDEXT', localdata)
-            wdext = bb.data.expand(wdext, localdata)
-            cmd = workdir+wdext
-        f.write(cmd+'\n');
-    f.close()
-
-    # Expand the tarball that was created if required
-    tarfile  = bb.data.getVar('TARFILE', localdata)    
-    if bool(tarfile) == True:
-        tarfile  = bb.data.expand(tarfile, localdata)
-        tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
-        if os.system(tcmd) != 0:
-            print "ERROR: ti-eula-unpack: failed to extract tarfile"
-            raise bb.build.FuncFailed()
-
-    # Return to the previous directory
-    os.chdir(save_cwd)
-}
+TI_BIN_UNPK_ARGS = "--mode console"
 
diff --git a/recipes-ti/includes/ti-unpack.inc b/recipes-ti/includes/ti-unpack.inc
new file mode 100644
index 0000000..c19c78c
--- /dev/null
+++ b/recipes-ti/includes/ti-unpack.inc
@@ -0,0 +1,83 @@
+# This file defines function used for unpacking the .bin file downloaded over
+# the http.
+#  BINFILE - name of the install jammer .bin file
+#  TARFILE - name of the tar file inside the install jammer
+#  TI_BIN_UNPK_ARGS   - contains the arguments to be passed to the bin file.
+#  TI_BIN_UNPK_CMDS   - contains list of commands separated with colon to be 
+#                       passed while unpacking the bin file. The keyword 
+#                       workdir expands to WORKDIR and commands are appendded
+#                       with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
+#  TI_BIN_UNPK_WDEXT  - This variable extends workdir path, if user wants to put
+#                       the output in some internal directory
+
+python do_unpack () {
+    bb.build.exec_func('base_do_unpack', d)
+    bb.build.exec_func('ti_bin_do_unpack', d)
+}
+
+TI_BIN_UNPK_WDEXT ?= ""
+python ti_bin_do_unpack() {
+
+    import os
+
+    # InstallJammer requires 32bit version of glibc
+    lib32path = '/lib'
+    if os.path.exists('/lib64') and (os.path.islink('/lib64') or os.path.islink('/lib') or os.path.exists('/lib32')):
+        lib32path = '/lib32'
+    if not os.path.exists('%s/libc.so.6' % lib32path):
+        bb.warn("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install ia32-libs' on Ubuntu/Debian")
+
+    localdata = bb.data.createCopy(d)
+    bb.data.update_data(localdata)
+
+    binfile  = bb.data.getVar('BINFILE', localdata)
+    binfile  = bb.data.expand(binfile, localdata)
+
+    # Change to the working directory
+    save_cwd = os.getcwd()
+    workdir  = bb.data.getVar('WORKDIR', localdata)
+    workdir  = bb.data.expand(workdir, localdata)
+    os.chdir(workdir)
+
+    # Get unpack args
+    arg_string = bb.data.getVar('TI_BIN_UNPK_ARGS', localdata)
+    arg_string = bb.data.expand(arg_string, localdata)
+
+    # Get unpack commands
+    cmd_string = bb.data.getVar('TI_BIN_UNPK_CMDS', localdata)
+    cmd_list = cmd_string.split( ":" )
+
+    # Make the InstallJammer binary executable so we can run it
+    os.chmod(binfile, 0755)
+
+    # Run the InstallJammer binary and accept the EULA
+    filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string)
+    
+    # Test executable by printing installer version or help screen (--version currently broken for some installers) 
+    # - this is currently broken in some IJ installers - comment out for now
+    #if os.system(filename + " --version") != 0:
+    #   print "ERROR: ti-eula-unpack: failed to execute binary installer"
+    #   raise bb.build.FuncFailed()
+ 
+    f = os.popen(filename,'w')
+    for cmd in cmd_list:
+        if cmd == "workdir":
+            wdext = bb.data.getVar('TI_BIN_UNPK_WDEXT', localdata)
+            wdext = bb.data.expand(wdext, localdata)
+            cmd = workdir+wdext
+        f.write(cmd+'\n');
+    f.close()
+
+    # Expand the tarball that was created if required
+    tarfile  = bb.data.getVar('TARFILE', localdata)    
+    if bool(tarfile) == True:
+        tarfile  = bb.data.expand(tarfile, localdata)
+        tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
+        if os.system(tcmd) != 0:
+            print "ERROR: ti-eula-unpack: failed to extract tarfile"
+            raise bb.build.FuncFailed()
+
+    # Return to the previous directory
+    os.chdir(save_cwd)
+}
+
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
  2015-02-04 15:40 [PATCH 1/2] ti-eula-unpack: Add support for general binary installers Jacob Stiffler
@ 2015-02-04 15:40 ` Jacob Stiffler
  2015-02-04 16:42   ` Cooper Jr., Franklin
  0 siblings, 1 reply; 6+ messages in thread
From: Jacob Stiffler @ 2015-02-04 15:40 UTC (permalink / raw)
  To: meta-ti

* Remove older versions.
* Add support for native and nativesdk versions.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 recipes-ti/devtools/ti-cgt6x.inc       |   24 ---------
 recipes-ti/devtools/ti-cgt6x_6.1.20.bb |   11 ----
 recipes-ti/devtools/ti-cgt6x_7.2.7.bb  |   13 -----
 recipes-ti/devtools/ti-cgt6x_8.0.0.bb  |   86 ++++++++++++++++++++++++++++++++
 4 files changed, 86 insertions(+), 48 deletions(-)
 delete mode 100644 recipes-ti/devtools/ti-cgt6x.inc
 delete mode 100644 recipes-ti/devtools/ti-cgt6x_6.1.20.bb
 delete mode 100644 recipes-ti/devtools/ti-cgt6x_7.2.7.bb
 create mode 100644 recipes-ti/devtools/ti-cgt6x_8.0.0.bb

diff --git a/recipes-ti/devtools/ti-cgt6x.inc b/recipes-ti/devtools/ti-cgt6x.inc
deleted file mode 100644
index 1d00a55..0000000
--- a/recipes-ti/devtools/ti-cgt6x.inc
+++ /dev/null
@@ -1,24 +0,0 @@
-DESCRIPTION = "TI DSP Code Generation Tools"
-HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
-SECTION = "devel"
-LICENSE = "TI"
-
-require ../includes/ti-paths.inc
-require ../includes/ti-staging.inc
-require ../includes/ti-eula-unpack.inc
-
-PR = "r4"
-
-S = "${WORKDIR}/cgt6x_${PV}"
-
-SRC_URI = "http://install.source.dir.local/ti_cgt_c6000_${PVwithdots}_setup_linux_x86.bin;name=cgt6xbin"
-
-BINFILE="ti_cgt_c6000_${PVwithdots}_setup_linux_x86.bin"
-TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
-TI_BIN_UNPK_WDEXT="/cgt6x_${PV}"
-
-do_install() {
-    install -d ${D}${CODEGEN_INSTALL_DIR_RECIPE}
-    cp -pPrf ${S}/* ${D}${CODEGEN_INSTALL_DIR_RECIPE}
-}
-
diff --git a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb b/recipes-ti/devtools/ti-cgt6x_6.1.20.bb
deleted file mode 100644
index 1d6609c..0000000
--- a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb
+++ /dev/null
@@ -1,11 +0,0 @@
-require ti-cgt6x.inc
-
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
-
-PE = "1"
-PV = "6_1_20"
-PVwithdots = "6.1.20"
-
-SRC_URI[cgt6xbin.md5sum] = "39485ea8211960de0a958ab27106ab9b"
-SRC_URI[cgt6xbin.sha256sum] = "a020142011c8160e24f6386f7696ecfbfe02dab2a6c83af74ce6b67eb1da9900"
-
diff --git a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb b/recipes-ti/devtools/ti-cgt6x_7.2.7.bb
deleted file mode 100644
index a226600..0000000
--- a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb
+++ /dev/null
@@ -1,13 +0,0 @@
-require ti-cgt6x.inc
-
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
-
-PE = "1"
-PV = "7_2_7"
-PVwithdots = "7.2.7"
-
-SRC_URI[cgt6xbin.md5sum] = "71a0768a541fdebd9c35d44301019d1d"
-SRC_URI[cgt6xbin.sha256sum] = "211477f0142d603975544abe3c45cc3b77a3b38038158676c60812806378738b"
-
-
-INSANE_SKIP_${PN} = "installed-vs-shipped"
diff --git a/recipes-ti/devtools/ti-cgt6x_8.0.0.bb b/recipes-ti/devtools/ti-cgt6x_8.0.0.bb
new file mode 100644
index 0000000..28689af
--- /dev/null
+++ b/recipes-ti/devtools/ti-cgt6x_8.0.0.bb
@@ -0,0 +1,86 @@
+DESCRIPTION = "TI DSP Code Generation Tools"
+HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
+LICENSE = "TI TSPA with portions under Thai Open Source Software Center & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 and MIT and BSD-2-Clause and Public Domain and other similar"
+
+LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
+LIC_FILES_CHKSUM_class-target = "file://usr/share/doc/ti/cgt-c6x/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
+
+require ../includes/ti-unpack.inc
+
+BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
+BINFILE_NAME = "cgt6x_x86_installer"
+TI_BIN_UNPK_ARGS = "--prefix ${S}"
+TI_BIN_UNPK_CMDS = ""
+
+BINFILE_class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
+BINFILE_NAME_class-target = "cgt6x_arm_installer"
+
+SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/Production/${PV}/${BINFILE};name=${BINFILE_NAME}"
+
+SRC_URI[cgt6x_x86_installer.md5sum] = "ff83845672090bf0a669bba7b0cadf56"
+SRC_URI[cgt6x_x86_installer.sha256sum] = "297f77a00b211b3c4afa23afe7319e98b2400b5d2eb0f8c8cfe3ef7d7aa4d709"
+
+SRC_URI[cgt6x_arm_installer.md5sum] = "13961e5a1da4c310ea8c8707ab981fff"
+SRC_URI[cgt6x_arm_installer.sha256sum] = "cb24ae05baffbd44d6dedba68743be09fd883e04403e069c437c486533d8fffb"
+
+do_install() {
+    install -d ${D}${bindir}
+    for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
+        install -m 755 ${binfile} ${D}${bindir}
+    done
+
+    install -d ${D}${datadir}/ti/cgt-c6x/include
+    for includefile in ${S}/ti-cgt-c6000_${PV}/include/*; do
+        install -m 644 ${includefile} ${D}${datadir}/ti/cgt-c6x/include
+    done
+
+    install -d ${D}${datadir}/ti/cgt-c6x/lib
+    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
+        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
+    done
+
+    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
+        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
+    done
+
+    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
+        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
+    done
+
+    install -d ${D}${datadir}/ti/cgt-c6x/lib/src
+    for srcfile in ${S}/ti-cgt-c6000_${PV}/lib/src/*; do
+        install -m 644 ${srcfile} ${D}${datadir}/ti/cgt-c6x/lib/src
+    done
+
+    install -d ${D}${datadir}/man/man1
+    for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
+        install -m 644 ${manfile} ${D}${datadir}/man/man1
+    done
+
+    install -d ${D}${datadir}/doc/ti/cgt-c6x
+    for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
+        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
+    done
+
+    for docfile in ${S}/ti-cgt-c6000_${PV}/*.htm; do
+        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
+    done
+
+    for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
+        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
+    done
+
+    for docfile in ${S}/ti-cgt-c6000_${PV}/doc/*; do
+        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
+    done
+
+}
+
+do_install_class-target() {
+    ${WORKDIR}/${BINFILE} --prefix ${D}
+}
+
+FILES_${PN} += "${datadir}/ti/*"
+
+BBCLASSEXTEND = "native nativesdk"
+
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
  2015-02-04 15:40 ` [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0 Jacob Stiffler
@ 2015-02-04 16:42   ` Cooper Jr., Franklin
  2015-02-04 17:04     ` Denys Dmytriyenko
  0 siblings, 1 reply; 6+ messages in thread
From: Cooper Jr., Franklin @ 2015-02-04 16:42 UTC (permalink / raw)
  To: Stiffler, Jacob, meta-ti

In general we delete old recipes and add new recipes as two separate patches. So I would recommend creating your new recipe in one patch and then deleting the old recipes in another patch.

> -----Original Message-----
> From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-
> bounces@yoctoproject.org] On Behalf Of Stiffler, Jacob
> Sent: Wednesday, February 04, 2015 9:41 AM
> To: meta-ti@yoctoproject.org
> Subject: [meta-ti] [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
> 
> * Remove older versions.
> * Add support for native and nativesdk versions.
> 
> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
>  recipes-ti/devtools/ti-cgt6x.inc       |   24 ---------
>  recipes-ti/devtools/ti-cgt6x_6.1.20.bb |   11 ----
>  recipes-ti/devtools/ti-cgt6x_7.2.7.bb  |   13 -----
>  recipes-ti/devtools/ti-cgt6x_8.0.0.bb  |   86
> ++++++++++++++++++++++++++++++++
>  4 files changed, 86 insertions(+), 48 deletions(-)  delete mode 100644
> recipes-ti/devtools/ti-cgt6x.inc  delete mode 100644 recipes-ti/devtools/ti-
> cgt6x_6.1.20.bb
>  delete mode 100644 recipes-ti/devtools/ti-cgt6x_7.2.7.bb
>  create mode 100644 recipes-ti/devtools/ti-cgt6x_8.0.0.bb
> 
> diff --git a/recipes-ti/devtools/ti-cgt6x.inc b/recipes-ti/devtools/ti-cgt6x.inc
> deleted file mode 100644
> index 1d00a55..0000000
> --- a/recipes-ti/devtools/ti-cgt6x.inc
> +++ /dev/null
> @@ -1,24 +0,0 @@
> -DESCRIPTION = "TI DSP Code Generation Tools"
> -HOMEPAGE = "https://www-
> a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
> -SECTION = "devel"
> -LICENSE = "TI"
> -
> -require ../includes/ti-paths.inc
> -require ../includes/ti-staging.inc
> -require ../includes/ti-eula-unpack.inc
> -
> -PR = "r4"
> -
> -S = "${WORKDIR}/cgt6x_${PV}"
> -
> -SRC_URI =
> "http://install.source.dir.local/ti_cgt_c6000_${PVwithdots}_setup_linux_x86
> .bin;name=cgt6xbin"
> -
> -BINFILE="ti_cgt_c6000_${PVwithdots}_setup_linux_x86.bin"
> -TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
> -TI_BIN_UNPK_WDEXT="/cgt6x_${PV}"
> -
> -do_install() {
> -    install -d ${D}${CODEGEN_INSTALL_DIR_RECIPE}
> -    cp -pPrf ${S}/* ${D}${CODEGEN_INSTALL_DIR_RECIPE}
> -}
> -
> diff --git a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb b/recipes-ti/devtools/ti-
> cgt6x_6.1.20.bb
> deleted file mode 100644
> index 1d6609c..0000000
> --- a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -require ti-cgt6x.inc
> -
> -LIC_FILES_CHKSUM =
> "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
> -
> -PE = "1"
> -PV = "6_1_20"
> -PVwithdots = "6.1.20"
> -
> -SRC_URI[cgt6xbin.md5sum] = "39485ea8211960de0a958ab27106ab9b"
> -SRC_URI[cgt6xbin.sha256sum] =
> "a020142011c8160e24f6386f7696ecfbfe02dab2a6c83af74ce6b67eb1da990
> 0"
> -
> diff --git a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb b/recipes-ti/devtools/ti-
> cgt6x_7.2.7.bb
> deleted file mode 100644
> index a226600..0000000
> --- a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb
> +++ /dev/null
> @@ -1,13 +0,0 @@
> -require ti-cgt6x.inc
> -
> -LIC_FILES_CHKSUM =
> "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
> -
> -PE = "1"
> -PV = "7_2_7"
> -PVwithdots = "7.2.7"
> -
> -SRC_URI[cgt6xbin.md5sum] = "71a0768a541fdebd9c35d44301019d1d"
> -SRC_URI[cgt6xbin.sha256sum] =
> "211477f0142d603975544abe3c45cc3b77a3b38038158676c6081280637873
> 8b"
> -
> -
> -INSANE_SKIP_${PN} = "installed-vs-shipped"
> diff --git a/recipes-ti/devtools/ti-cgt6x_8.0.0.bb b/recipes-ti/devtools/ti-
> cgt6x_8.0.0.bb
> new file mode 100644
> index 0000000..28689af
> --- /dev/null
> +++ b/recipes-ti/devtools/ti-cgt6x_8.0.0.bb
> @@ -0,0 +1,86 @@
> +DESCRIPTION = "TI DSP Code Generation Tools"
> +HOMEPAGE = "https://www-
> a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
> +LICENSE = "TI TSPA with portions under Thai Open Source Software Center
> & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 and MIT and BSD-2-
> Clause and Public Domain and other similar"
> +
> +LIC_FILES_CHKSUM = "file://ti-cgt-
> c6000_${PV}/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
> +LIC_FILES_CHKSUM_class-target = "file://usr/share/doc/ti/cgt-
> c6x/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
> +
> +require ../includes/ti-unpack.inc
> +
> +BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
> +BINFILE_NAME = "cgt6x_x86_installer"
> +TI_BIN_UNPK_ARGS = "--prefix ${S}"
> +TI_BIN_UNPK_CMDS = ""
> +
> +BINFILE_class-target =
> "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
> +BINFILE_NAME_class-target = "cgt6x_arm_installer"
> +
> +SRC_URI = "http://software-
> dl.ti.com/codegen/esd/cgt_public_sw/C6000/Production/${PV}/${BINFILE};
> name=${BINFILE_NAME}"
> +
> +SRC_URI[cgt6x_x86_installer.md5sum] =
> "ff83845672090bf0a669bba7b0cadf56"
> +SRC_URI[cgt6x_x86_installer.sha256sum] =
> "297f77a00b211b3c4afa23afe7319e98b2400b5d2eb0f8c8cfe3ef7d7aa4d709
> "
> +
> +SRC_URI[cgt6x_arm_installer.md5sum] =
> "13961e5a1da4c310ea8c8707ab981fff"
> +SRC_URI[cgt6x_arm_installer.sha256sum] =
> "cb24ae05baffbd44d6dedba68743be09fd883e04403e069c437c486533d8fffb
> "
> +
> +do_install() {
> +    install -d ${D}${bindir}
> +    for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
> +        install -m 755 ${binfile} ${D}${bindir}
> +    done
> +
> +    install -d ${D}${datadir}/ti/cgt-c6x/include
> +    for includefile in ${S}/ti-cgt-c6000_${PV}/include/*; do
> +        install -m 644 ${includefile} ${D}${datadir}/ti/cgt-c6x/include
> +    done
> +
> +    install -d ${D}${datadir}/ti/cgt-c6x/lib
> +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
> +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> +    done
> +
> +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
> +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> +    done
> +
> +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
> +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> +    done
> +
> +    install -d ${D}${datadir}/ti/cgt-c6x/lib/src
> +    for srcfile in ${S}/ti-cgt-c6000_${PV}/lib/src/*; do
> +        install -m 644 ${srcfile} ${D}${datadir}/ti/cgt-c6x/lib/src
> +    done
> +
> +    install -d ${D}${datadir}/man/man1
> +    for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
> +        install -m 644 ${manfile} ${D}${datadir}/man/man1
> +    done
> +
> +    install -d ${D}${datadir}/doc/ti/cgt-c6x
> +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
> +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> +    done
> +
> +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.htm; do
> +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> +    done
> +
> +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
> +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> +    done
> +
> +    for docfile in ${S}/ti-cgt-c6000_${PV}/doc/*; do
> +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> +    done
> +
> +}
> +
> +do_install_class-target() {
> +    ${WORKDIR}/${BINFILE} --prefix ${D} }
> +
> +FILES_${PN} += "${datadir}/ti/*"
> +
> +BBCLASSEXTEND = "native nativesdk"
> +
> --
> 1.7.9.5
> 
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
  2015-02-04 16:42   ` Cooper Jr., Franklin
@ 2015-02-04 17:04     ` Denys Dmytriyenko
  2015-02-05 14:17       ` Stiffler, Jacob
  0 siblings, 1 reply; 6+ messages in thread
From: Denys Dmytriyenko @ 2015-02-04 17:04 UTC (permalink / raw)
  To: Cooper Jr., Franklin; +Cc: meta-ti

On Wed, Feb 04, 2015 at 04:42:55PM +0000, Cooper Jr., Franklin wrote:
> In general we delete old recipes and add new recipes as two separate patches.

In reverse order, though - you first add new and then remove old.


> So I would recommend creating your new recipe in one patch and then deleting 
> the old recipes in another patch.

But why delete old codegen version? Will the new one still work for older 
platforms that we still have in meta-ti - omap3, omap4, etc?

-- 
Denys


> > -----Original Message-----
> > From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-
> > bounces@yoctoproject.org] On Behalf Of Stiffler, Jacob
> > Sent: Wednesday, February 04, 2015 9:41 AM
> > To: meta-ti@yoctoproject.org
> > Subject: [meta-ti] [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
> > 
> > * Remove older versions.
> > * Add support for native and nativesdk versions.
> > 
> > Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> > ---
> >  recipes-ti/devtools/ti-cgt6x.inc       |   24 ---------
> >  recipes-ti/devtools/ti-cgt6x_6.1.20.bb |   11 ----
> >  recipes-ti/devtools/ti-cgt6x_7.2.7.bb  |   13 -----
> >  recipes-ti/devtools/ti-cgt6x_8.0.0.bb  |   86
> > ++++++++++++++++++++++++++++++++
> >  4 files changed, 86 insertions(+), 48 deletions(-)  delete mode 100644
> > recipes-ti/devtools/ti-cgt6x.inc  delete mode 100644 recipes-ti/devtools/ti-
> > cgt6x_6.1.20.bb
> >  delete mode 100644 recipes-ti/devtools/ti-cgt6x_7.2.7.bb
> >  create mode 100644 recipes-ti/devtools/ti-cgt6x_8.0.0.bb
> > 
> > diff --git a/recipes-ti/devtools/ti-cgt6x.inc b/recipes-ti/devtools/ti-cgt6x.inc
> > deleted file mode 100644
> > index 1d00a55..0000000
> > --- a/recipes-ti/devtools/ti-cgt6x.inc
> > +++ /dev/null
> > @@ -1,24 +0,0 @@
> > -DESCRIPTION = "TI DSP Code Generation Tools"
> > -HOMEPAGE = "https://www-
> > a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
> > -SECTION = "devel"
> > -LICENSE = "TI"
> > -
> > -require ../includes/ti-paths.inc
> > -require ../includes/ti-staging.inc
> > -require ../includes/ti-eula-unpack.inc
> > -
> > -PR = "r4"
> > -
> > -S = "${WORKDIR}/cgt6x_${PV}"
> > -
> > -SRC_URI =
> > "http://install.source.dir.local/ti_cgt_c6000_${PVwithdots}_setup_linux_x86
> > .bin;name=cgt6xbin"
> > -
> > -BINFILE="ti_cgt_c6000_${PVwithdots}_setup_linux_x86.bin"
> > -TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
> > -TI_BIN_UNPK_WDEXT="/cgt6x_${PV}"
> > -
> > -do_install() {
> > -    install -d ${D}${CODEGEN_INSTALL_DIR_RECIPE}
> > -    cp -pPrf ${S}/* ${D}${CODEGEN_INSTALL_DIR_RECIPE}
> > -}
> > -
> > diff --git a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb b/recipes-ti/devtools/ti-
> > cgt6x_6.1.20.bb
> > deleted file mode 100644
> > index 1d6609c..0000000
> > --- a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -require ti-cgt6x.inc
> > -
> > -LIC_FILES_CHKSUM =
> > "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
> > -
> > -PE = "1"
> > -PV = "6_1_20"
> > -PVwithdots = "6.1.20"
> > -
> > -SRC_URI[cgt6xbin.md5sum] = "39485ea8211960de0a958ab27106ab9b"
> > -SRC_URI[cgt6xbin.sha256sum] =
> > "a020142011c8160e24f6386f7696ecfbfe02dab2a6c83af74ce6b67eb1da990
> > 0"
> > -
> > diff --git a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb b/recipes-ti/devtools/ti-
> > cgt6x_7.2.7.bb
> > deleted file mode 100644
> > index a226600..0000000
> > --- a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb
> > +++ /dev/null
> > @@ -1,13 +0,0 @@
> > -require ti-cgt6x.inc
> > -
> > -LIC_FILES_CHKSUM =
> > "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
> > -
> > -PE = "1"
> > -PV = "7_2_7"
> > -PVwithdots = "7.2.7"
> > -
> > -SRC_URI[cgt6xbin.md5sum] = "71a0768a541fdebd9c35d44301019d1d"
> > -SRC_URI[cgt6xbin.sha256sum] =
> > "211477f0142d603975544abe3c45cc3b77a3b38038158676c6081280637873
> > 8b"
> > -
> > -
> > -INSANE_SKIP_${PN} = "installed-vs-shipped"
> > diff --git a/recipes-ti/devtools/ti-cgt6x_8.0.0.bb b/recipes-ti/devtools/ti-
> > cgt6x_8.0.0.bb
> > new file mode 100644
> > index 0000000..28689af
> > --- /dev/null
> > +++ b/recipes-ti/devtools/ti-cgt6x_8.0.0.bb
> > @@ -0,0 +1,86 @@
> > +DESCRIPTION = "TI DSP Code Generation Tools"
> > +HOMEPAGE = "https://www-
> > a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
> > +LICENSE = "TI TSPA with portions under Thai Open Source Software Center
> > & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 and MIT and BSD-2-
> > Clause and Public Domain and other similar"
> > +
> > +LIC_FILES_CHKSUM = "file://ti-cgt-
> > c6000_${PV}/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
> > +LIC_FILES_CHKSUM_class-target = "file://usr/share/doc/ti/cgt-
> > c6x/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
> > +
> > +require ../includes/ti-unpack.inc
> > +
> > +BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
> > +BINFILE_NAME = "cgt6x_x86_installer"
> > +TI_BIN_UNPK_ARGS = "--prefix ${S}"
> > +TI_BIN_UNPK_CMDS = ""
> > +
> > +BINFILE_class-target =
> > "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
> > +BINFILE_NAME_class-target = "cgt6x_arm_installer"
> > +
> > +SRC_URI = "http://software-
> > dl.ti.com/codegen/esd/cgt_public_sw/C6000/Production/${PV}/${BINFILE};
> > name=${BINFILE_NAME}"
> > +
> > +SRC_URI[cgt6x_x86_installer.md5sum] =
> > "ff83845672090bf0a669bba7b0cadf56"
> > +SRC_URI[cgt6x_x86_installer.sha256sum] =
> > "297f77a00b211b3c4afa23afe7319e98b2400b5d2eb0f8c8cfe3ef7d7aa4d709
> > "
> > +
> > +SRC_URI[cgt6x_arm_installer.md5sum] =
> > "13961e5a1da4c310ea8c8707ab981fff"
> > +SRC_URI[cgt6x_arm_installer.sha256sum] =
> > "cb24ae05baffbd44d6dedba68743be09fd883e04403e069c437c486533d8fffb
> > "
> > +
> > +do_install() {
> > +    install -d ${D}${bindir}
> > +    for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
> > +        install -m 755 ${binfile} ${D}${bindir}
> > +    done
> > +
> > +    install -d ${D}${datadir}/ti/cgt-c6x/include
> > +    for includefile in ${S}/ti-cgt-c6000_${PV}/include/*; do
> > +        install -m 644 ${includefile} ${D}${datadir}/ti/cgt-c6x/include
> > +    done
> > +
> > +    install -d ${D}${datadir}/ti/cgt-c6x/lib
> > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
> > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > +    done
> > +
> > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
> > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > +    done
> > +
> > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
> > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > +    done
> > +
> > +    install -d ${D}${datadir}/ti/cgt-c6x/lib/src
> > +    for srcfile in ${S}/ti-cgt-c6000_${PV}/lib/src/*; do
> > +        install -m 644 ${srcfile} ${D}${datadir}/ti/cgt-c6x/lib/src
> > +    done
> > +
> > +    install -d ${D}${datadir}/man/man1
> > +    for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
> > +        install -m 644 ${manfile} ${D}${datadir}/man/man1
> > +    done
> > +
> > +    install -d ${D}${datadir}/doc/ti/cgt-c6x
> > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
> > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > +    done
> > +
> > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.htm; do
> > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > +    done
> > +
> > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
> > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > +    done
> > +
> > +    for docfile in ${S}/ti-cgt-c6000_${PV}/doc/*; do
> > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > +    done
> > +
> > +}
> > +
> > +do_install_class-target() {
> > +    ${WORKDIR}/${BINFILE} --prefix ${D} }
> > +
> > +FILES_${PN} += "${datadir}/ti/*"
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > +
> > --
> > 1.7.9.5
> > 
> > --
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-ti
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
  2015-02-04 17:04     ` Denys Dmytriyenko
@ 2015-02-05 14:17       ` Stiffler, Jacob
  2015-02-05 14:40         ` Denys Dmytriyenko
  0 siblings, 1 reply; 6+ messages in thread
From: Stiffler, Jacob @ 2015-02-05 14:17 UTC (permalink / raw)
  To: Dmytriyenko, Denys, Cooper Jr., Franklin; +Cc: meta-ti

I was deleting the older versions because I ran into some issue with a lower versioned recipe being chosen over the new one. 

Now, I did some more investigation and I noticed that 'PE =  "1"' in these older recipes. 

Should I remove this from the older recipes, or add this to my new recipe?


- Jake

-----Original Message-----
From: Dmytriyenko, Denys 
Sent: Wednesday, February 04, 2015 12:04 PM
To: Cooper Jr., Franklin
Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
Subject: Re: [meta-ti] [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0

On Wed, Feb 04, 2015 at 04:42:55PM +0000, Cooper Jr., Franklin wrote:
> In general we delete old recipes and add new recipes as two separate patches.

In reverse order, though - you first add new and then remove old.


> So I would recommend creating your new recipe in one patch and then 
> deleting the old recipes in another patch.

But why delete old codegen version? Will the new one still work for older platforms that we still have in meta-ti - omap3, omap4, etc?

--
Denys


> > -----Original Message-----
> > From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-
> > bounces@yoctoproject.org] On Behalf Of Stiffler, Jacob
> > Sent: Wednesday, February 04, 2015 9:41 AM
> > To: meta-ti@yoctoproject.org
> > Subject: [meta-ti] [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
> > 
> > * Remove older versions.
> > * Add support for native and nativesdk versions.
> > 
> > Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> > ---
> >  recipes-ti/devtools/ti-cgt6x.inc       |   24 ---------
> >  recipes-ti/devtools/ti-cgt6x_6.1.20.bb |   11 ----
> >  recipes-ti/devtools/ti-cgt6x_7.2.7.bb  |   13 -----
> >  recipes-ti/devtools/ti-cgt6x_8.0.0.bb  |   86
> > ++++++++++++++++++++++++++++++++
> >  4 files changed, 86 insertions(+), 48 deletions(-)  delete mode 100644
> > recipes-ti/devtools/ti-cgt6x.inc  delete mode 100644 recipes-ti/devtools/ti-
> > cgt6x_6.1.20.bb
> >  delete mode 100644 recipes-ti/devtools/ti-cgt6x_7.2.7.bb
> >  create mode 100644 recipes-ti/devtools/ti-cgt6x_8.0.0.bb
> > 
> > diff --git a/recipes-ti/devtools/ti-cgt6x.inc b/recipes-ti/devtools/ti-cgt6x.inc
> > deleted file mode 100644
> > index 1d00a55..0000000
> > --- a/recipes-ti/devtools/ti-cgt6x.inc
> > +++ /dev/null
> > @@ -1,24 +0,0 @@
> > -DESCRIPTION = "TI DSP Code Generation Tools"
> > -HOMEPAGE = "https://www-
> > a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
> > -SECTION = "devel"
> > -LICENSE = "TI"
> > -
> > -require ../includes/ti-paths.inc
> > -require ../includes/ti-staging.inc
> > -require ../includes/ti-eula-unpack.inc
> > -
> > -PR = "r4"
> > -
> > -S = "${WORKDIR}/cgt6x_${PV}"
> > -
> > -SRC_URI =
> > "http://install.source.dir.local/ti_cgt_c6000_${PVwithdots}_setup_linux_x86
> > .bin;name=cgt6xbin"
> > -
> > -BINFILE="ti_cgt_c6000_${PVwithdots}_setup_linux_x86.bin"
> > -TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
> > -TI_BIN_UNPK_WDEXT="/cgt6x_${PV}"
> > -
> > -do_install() {
> > -    install -d ${D}${CODEGEN_INSTALL_DIR_RECIPE}
> > -    cp -pPrf ${S}/* ${D}${CODEGEN_INSTALL_DIR_RECIPE}
> > -}
> > -
> > diff --git a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb b/recipes-ti/devtools/ti-
> > cgt6x_6.1.20.bb
> > deleted file mode 100644
> > index 1d6609c..0000000
> > --- a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -require ti-cgt6x.inc
> > -
> > -LIC_FILES_CHKSUM =
> > "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
> > -
> > -PE = "1"
> > -PV = "6_1_20"
> > -PVwithdots = "6.1.20"
> > -
> > -SRC_URI[cgt6xbin.md5sum] = "39485ea8211960de0a958ab27106ab9b"
> > -SRC_URI[cgt6xbin.sha256sum] =
> > "a020142011c8160e24f6386f7696ecfbfe02dab2a6c83af74ce6b67eb1da990
> > 0"
> > -
> > diff --git a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb b/recipes-ti/devtools/ti-
> > cgt6x_7.2.7.bb
> > deleted file mode 100644
> > index a226600..0000000
> > --- a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb
> > +++ /dev/null
> > @@ -1,13 +0,0 @@
> > -require ti-cgt6x.inc
> > -
> > -LIC_FILES_CHKSUM =
> > "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
> > -
> > -PE = "1"
> > -PV = "7_2_7"
> > -PVwithdots = "7.2.7"
> > -
> > -SRC_URI[cgt6xbin.md5sum] = "71a0768a541fdebd9c35d44301019d1d"
> > -SRC_URI[cgt6xbin.sha256sum] =
> > "211477f0142d603975544abe3c45cc3b77a3b38038158676c6081280637873
> > 8b"
> > -
> > -
> > -INSANE_SKIP_${PN} = "installed-vs-shipped"
> > diff --git a/recipes-ti/devtools/ti-cgt6x_8.0.0.bb b/recipes-ti/devtools/ti-
> > cgt6x_8.0.0.bb
> > new file mode 100644
> > index 0000000..28689af
> > --- /dev/null
> > +++ b/recipes-ti/devtools/ti-cgt6x_8.0.0.bb
> > @@ -0,0 +1,86 @@
> > +DESCRIPTION = "TI DSP Code Generation Tools"
> > +HOMEPAGE = "https://www-
> > a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
> > +LICENSE = "TI TSPA with portions under Thai Open Source Software Center
> > & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 and MIT and BSD-2-
> > Clause and Public Domain and other similar"
> > +
> > +LIC_FILES_CHKSUM = "file://ti-cgt-
> > c6000_${PV}/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
> > +LIC_FILES_CHKSUM_class-target = "file://usr/share/doc/ti/cgt-
> > c6x/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
> > +
> > +require ../includes/ti-unpack.inc
> > +
> > +BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
> > +BINFILE_NAME = "cgt6x_x86_installer"
> > +TI_BIN_UNPK_ARGS = "--prefix ${S}"
> > +TI_BIN_UNPK_CMDS = ""
> > +
> > +BINFILE_class-target =
> > "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
> > +BINFILE_NAME_class-target = "cgt6x_arm_installer"
> > +
> > +SRC_URI = "http://software-
> > dl.ti.com/codegen/esd/cgt_public_sw/C6000/Production/${PV}/${BINFILE};
> > name=${BINFILE_NAME}"
> > +
> > +SRC_URI[cgt6x_x86_installer.md5sum] =
> > "ff83845672090bf0a669bba7b0cadf56"
> > +SRC_URI[cgt6x_x86_installer.sha256sum] =
> > "297f77a00b211b3c4afa23afe7319e98b2400b5d2eb0f8c8cfe3ef7d7aa4d709
> > "
> > +
> > +SRC_URI[cgt6x_arm_installer.md5sum] =
> > "13961e5a1da4c310ea8c8707ab981fff"
> > +SRC_URI[cgt6x_arm_installer.sha256sum] =
> > "cb24ae05baffbd44d6dedba68743be09fd883e04403e069c437c486533d8fffb
> > "
> > +
> > +do_install() {
> > +    install -d ${D}${bindir}
> > +    for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
> > +        install -m 755 ${binfile} ${D}${bindir}
> > +    done
> > +
> > +    install -d ${D}${datadir}/ti/cgt-c6x/include
> > +    for includefile in ${S}/ti-cgt-c6000_${PV}/include/*; do
> > +        install -m 644 ${includefile} ${D}${datadir}/ti/cgt-c6x/include
> > +    done
> > +
> > +    install -d ${D}${datadir}/ti/cgt-c6x/lib
> > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
> > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > +    done
> > +
> > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
> > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > +    done
> > +
> > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
> > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > +    done
> > +
> > +    install -d ${D}${datadir}/ti/cgt-c6x/lib/src
> > +    for srcfile in ${S}/ti-cgt-c6000_${PV}/lib/src/*; do
> > +        install -m 644 ${srcfile} ${D}${datadir}/ti/cgt-c6x/lib/src
> > +    done
> > +
> > +    install -d ${D}${datadir}/man/man1
> > +    for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
> > +        install -m 644 ${manfile} ${D}${datadir}/man/man1
> > +    done
> > +
> > +    install -d ${D}${datadir}/doc/ti/cgt-c6x
> > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
> > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > +    done
> > +
> > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.htm; do
> > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > +    done
> > +
> > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
> > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > +    done
> > +
> > +    for docfile in ${S}/ti-cgt-c6000_${PV}/doc/*; do
> > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > +    done
> > +
> > +}
> > +
> > +do_install_class-target() {
> > +    ${WORKDIR}/${BINFILE} --prefix ${D} }
> > +
> > +FILES_${PN} += "${datadir}/ti/*"
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > +
> > --
> > 1.7.9.5
> > 
> > --
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-ti
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
  2015-02-05 14:17       ` Stiffler, Jacob
@ 2015-02-05 14:40         ` Denys Dmytriyenko
  0 siblings, 0 replies; 6+ messages in thread
From: Denys Dmytriyenko @ 2015-02-05 14:40 UTC (permalink / raw)
  To: Stiffler, Jacob; +Cc: meta-ti

On Thu, Feb 05, 2015 at 09:17:04AM -0500, Stiffler, Jacob wrote:
> I was deleting the older versions because I ran into some issue with a lower 
> versioned recipe being chosen over the new one.
> 
> Now, I did some more investigation and I noticed that 'PE = "1"' in these 
> older recipes.
> 
> Should I remove this from the older recipes, or add this to my new recipe?

Jake,

PE stands for Package Epoch and is used when for some reason versioning order 
went backwards - for example, 97, 98, 99, 1.0, 1.1
In that case you bump PE when moving to 1.0 version to indicate a new epoch 
and get the sorting right.

In your case, old recipes already had PE = 1 and your version is higher than 
the rest, so you can just keep the same PE = 1 and don't need to increase it.

-- 
Denys


> -----Original Message-----
> From: Dmytriyenko, Denys 
> Sent: Wednesday, February 04, 2015 12:04 PM
> To: Cooper Jr., Franklin
> Cc: Stiffler, Jacob; meta-ti@yoctoproject.org
> Subject: Re: [meta-ti] [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
> 
> On Wed, Feb 04, 2015 at 04:42:55PM +0000, Cooper Jr., Franklin wrote:
> > In general we delete old recipes and add new recipes as two separate patches.
> 
> In reverse order, though - you first add new and then remove old.
> 
> 
> > So I would recommend creating your new recipe in one patch and then 
> > deleting the old recipes in another patch.
> 
> But why delete old codegen version? Will the new one still work for older platforms that we still have in meta-ti - omap3, omap4, etc?
> 
> --
> Denys
> 
> 
> > > -----Original Message-----
> > > From: meta-ti-bounces@yoctoproject.org [mailto:meta-ti-
> > > bounces@yoctoproject.org] On Behalf Of Stiffler, Jacob
> > > Sent: Wednesday, February 04, 2015 9:41 AM
> > > To: meta-ti@yoctoproject.org
> > > Subject: [meta-ti] [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0
> > > 
> > > * Remove older versions.
> > > * Add support for native and nativesdk versions.
> > > 
> > > Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> > > ---
> > >  recipes-ti/devtools/ti-cgt6x.inc       |   24 ---------
> > >  recipes-ti/devtools/ti-cgt6x_6.1.20.bb |   11 ----
> > >  recipes-ti/devtools/ti-cgt6x_7.2.7.bb  |   13 -----
> > >  recipes-ti/devtools/ti-cgt6x_8.0.0.bb  |   86
> > > ++++++++++++++++++++++++++++++++
> > >  4 files changed, 86 insertions(+), 48 deletions(-)  delete mode 100644
> > > recipes-ti/devtools/ti-cgt6x.inc  delete mode 100644 recipes-ti/devtools/ti-
> > > cgt6x_6.1.20.bb
> > >  delete mode 100644 recipes-ti/devtools/ti-cgt6x_7.2.7.bb
> > >  create mode 100644 recipes-ti/devtools/ti-cgt6x_8.0.0.bb
> > > 
> > > diff --git a/recipes-ti/devtools/ti-cgt6x.inc b/recipes-ti/devtools/ti-cgt6x.inc
> > > deleted file mode 100644
> > > index 1d00a55..0000000
> > > --- a/recipes-ti/devtools/ti-cgt6x.inc
> > > +++ /dev/null
> > > @@ -1,24 +0,0 @@
> > > -DESCRIPTION = "TI DSP Code Generation Tools"
> > > -HOMEPAGE = "https://www-
> > > a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
> > > -SECTION = "devel"
> > > -LICENSE = "TI"
> > > -
> > > -require ../includes/ti-paths.inc
> > > -require ../includes/ti-staging.inc
> > > -require ../includes/ti-eula-unpack.inc
> > > -
> > > -PR = "r4"
> > > -
> > > -S = "${WORKDIR}/cgt6x_${PV}"
> > > -
> > > -SRC_URI =
> > > "http://install.source.dir.local/ti_cgt_c6000_${PVwithdots}_setup_linux_x86
> > > .bin;name=cgt6xbin"
> > > -
> > > -BINFILE="ti_cgt_c6000_${PVwithdots}_setup_linux_x86.bin"
> > > -TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
> > > -TI_BIN_UNPK_WDEXT="/cgt6x_${PV}"
> > > -
> > > -do_install() {
> > > -    install -d ${D}${CODEGEN_INSTALL_DIR_RECIPE}
> > > -    cp -pPrf ${S}/* ${D}${CODEGEN_INSTALL_DIR_RECIPE}
> > > -}
> > > -
> > > diff --git a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb b/recipes-ti/devtools/ti-
> > > cgt6x_6.1.20.bb
> > > deleted file mode 100644
> > > index 1d6609c..0000000
> > > --- a/recipes-ti/devtools/ti-cgt6x_6.1.20.bb
> > > +++ /dev/null
> > > @@ -1,11 +0,0 @@
> > > -require ti-cgt6x.inc
> > > -
> > > -LIC_FILES_CHKSUM =
> > > "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
> > > -
> > > -PE = "1"
> > > -PV = "6_1_20"
> > > -PVwithdots = "6.1.20"
> > > -
> > > -SRC_URI[cgt6xbin.md5sum] = "39485ea8211960de0a958ab27106ab9b"
> > > -SRC_URI[cgt6xbin.sha256sum] =
> > > "a020142011c8160e24f6386f7696ecfbfe02dab2a6c83af74ce6b67eb1da990
> > > 0"
> > > -
> > > diff --git a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb b/recipes-ti/devtools/ti-
> > > cgt6x_7.2.7.bb
> > > deleted file mode 100644
> > > index a226600..0000000
> > > --- a/recipes-ti/devtools/ti-cgt6x_7.2.7.bb
> > > +++ /dev/null
> > > @@ -1,13 +0,0 @@
> > > -require ti-cgt6x.inc
> > > -
> > > -LIC_FILES_CHKSUM =
> > > "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
> > > -
> > > -PE = "1"
> > > -PV = "7_2_7"
> > > -PVwithdots = "7.2.7"
> > > -
> > > -SRC_URI[cgt6xbin.md5sum] = "71a0768a541fdebd9c35d44301019d1d"
> > > -SRC_URI[cgt6xbin.sha256sum] =
> > > "211477f0142d603975544abe3c45cc3b77a3b38038158676c6081280637873
> > > 8b"
> > > -
> > > -
> > > -INSANE_SKIP_${PN} = "installed-vs-shipped"
> > > diff --git a/recipes-ti/devtools/ti-cgt6x_8.0.0.bb b/recipes-ti/devtools/ti-
> > > cgt6x_8.0.0.bb
> > > new file mode 100644
> > > index 0000000..28689af
> > > --- /dev/null
> > > +++ b/recipes-ti/devtools/ti-cgt6x_8.0.0.bb
> > > @@ -0,0 +1,86 @@
> > > +DESCRIPTION = "TI DSP Code Generation Tools"
> > > +HOMEPAGE = "https://www-
> > > a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
> > > +LICENSE = "TI TSPA with portions under Thai Open Source Software Center
> > > & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 and MIT and BSD-2-
> > > Clause and Public Domain and other similar"
> > > +
> > > +LIC_FILES_CHKSUM = "file://ti-cgt-
> > > c6000_${PV}/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
> > > +LIC_FILES_CHKSUM_class-target = "file://usr/share/doc/ti/cgt-
> > > c6x/LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
> > > +
> > > +require ../includes/ti-unpack.inc
> > > +
> > > +BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
> > > +BINFILE_NAME = "cgt6x_x86_installer"
> > > +TI_BIN_UNPK_ARGS = "--prefix ${S}"
> > > +TI_BIN_UNPK_CMDS = ""
> > > +
> > > +BINFILE_class-target =
> > > "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
> > > +BINFILE_NAME_class-target = "cgt6x_arm_installer"
> > > +
> > > +SRC_URI = "http://software-
> > > dl.ti.com/codegen/esd/cgt_public_sw/C6000/Production/${PV}/${BINFILE};
> > > name=${BINFILE_NAME}"
> > > +
> > > +SRC_URI[cgt6x_x86_installer.md5sum] =
> > > "ff83845672090bf0a669bba7b0cadf56"
> > > +SRC_URI[cgt6x_x86_installer.sha256sum] =
> > > "297f77a00b211b3c4afa23afe7319e98b2400b5d2eb0f8c8cfe3ef7d7aa4d709
> > > "
> > > +
> > > +SRC_URI[cgt6x_arm_installer.md5sum] =
> > > "13961e5a1da4c310ea8c8707ab981fff"
> > > +SRC_URI[cgt6x_arm_installer.sha256sum] =
> > > "cb24ae05baffbd44d6dedba68743be09fd883e04403e069c437c486533d8fffb
> > > "
> > > +
> > > +do_install() {
> > > +    install -d ${D}${bindir}
> > > +    for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
> > > +        install -m 755 ${binfile} ${D}${bindir}
> > > +    done
> > > +
> > > +    install -d ${D}${datadir}/ti/cgt-c6x/include
> > > +    for includefile in ${S}/ti-cgt-c6000_${PV}/include/*; do
> > > +        install -m 644 ${includefile} ${D}${datadir}/ti/cgt-c6x/include
> > > +    done
> > > +
> > > +    install -d ${D}${datadir}/ti/cgt-c6x/lib
> > > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
> > > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > > +    done
> > > +
> > > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
> > > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > > +    done
> > > +
> > > +    for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
> > > +        install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
> > > +    done
> > > +
> > > +    install -d ${D}${datadir}/ti/cgt-c6x/lib/src
> > > +    for srcfile in ${S}/ti-cgt-c6000_${PV}/lib/src/*; do
> > > +        install -m 644 ${srcfile} ${D}${datadir}/ti/cgt-c6x/lib/src
> > > +    done
> > > +
> > > +    install -d ${D}${datadir}/man/man1
> > > +    for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
> > > +        install -m 644 ${manfile} ${D}${datadir}/man/man1
> > > +    done
> > > +
> > > +    install -d ${D}${datadir}/doc/ti/cgt-c6x
> > > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
> > > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > > +    done
> > > +
> > > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.htm; do
> > > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > > +    done
> > > +
> > > +    for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
> > > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > > +    done
> > > +
> > > +    for docfile in ${S}/ti-cgt-c6000_${PV}/doc/*; do
> > > +        install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
> > > +    done
> > > +
> > > +}
> > > +
> > > +do_install_class-target() {
> > > +    ${WORKDIR}/${BINFILE} --prefix ${D} }
> > > +
> > > +FILES_${PN} += "${datadir}/ti/*"
> > > +
> > > +BBCLASSEXTEND = "native nativesdk"
> > > +
> > > --
> > > 1.7.9.5
> > > 
> > > --
> > > _______________________________________________
> > > meta-ti mailing list
> > > meta-ti@yoctoproject.org
> > > https://lists.yoctoproject.org/listinfo/meta-ti
> > -- 
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-05 14:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-04 15:40 [PATCH 1/2] ti-eula-unpack: Add support for general binary installers Jacob Stiffler
2015-02-04 15:40 ` [PATCH 2/2] ti-cgt6x: Upgrade to 8.0.0 Jacob Stiffler
2015-02-04 16:42   ` Cooper Jr., Franklin
2015-02-04 17:04     ` Denys Dmytriyenko
2015-02-05 14:17       ` Stiffler, Jacob
2015-02-05 14:40         ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.