All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karthik Ramanan <a0393906@ti.com>
To: <meta-ti@yoctoproject.org>
Subject: [morty 1/4] ti-cgt-arm: Include recipes for 16.9.1
Date: Wed, 19 Apr 2017 16:00:01 +0530	[thread overview]
Message-ID: <1492597804-77037-1-git-send-email-a0393906@ti.com> (raw)

From: Ivan Pang <i-pang@ti.com>

Signed-off-by: Ivan Pang <i-pang@ti.com>
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
---
 classes/component_meta.bbclass          | 29 +++++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm-linux.bb | 26 ++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm.bb       | 26 ++++++++++++++++++++++++++
 recipes-ti/devtools/ti-cgt-arm.inc      | 19 +++++++++++++++++++
 4 files changed, 100 insertions(+)
 create mode 100644 classes/component_meta.bbclass
 create mode 100644 recipes-ti/devtools/ti-cgt-arm-linux.bb
 create mode 100644 recipes-ti/devtools/ti-cgt-arm.bb
 create mode 100644 recipes-ti/devtools/ti-cgt-arm.inc

diff --git a/classes/component_meta.bbclass b/classes/component_meta.bbclass
new file mode 100644
index 0000000..f2dc754
--- /dev/null
+++ b/classes/component_meta.bbclass
@@ -0,0 +1,29 @@
+CM_NAME ?= ""
+CM_VERSION ?= ""
+CM_ROOT_DIR ?= ""
+CM_BINARY ?= ""
+CM_DESCRIPTION ?= ""
+
+do_component_meta() {
+    if [ ! -d "${DEPLOY_DIR_IMAGE}" ]
+    then
+        mkdir -p ${DEPLOY_DIR_IMAGE}    
+    fi
+
+    if [ ! -e "${DEPLOY_DIR_IMAGE}/.components_meta" ]
+    then
+        touch ${DEPLOY_DIR_IMAGE}/.components_meta
+    fi
+
+    # Check if component is already documented in .components_meta
+    if ! grep -q "${CM_ROOT_DIR}" ${DEPLOY_DIR_IMAGE}/.components_meta
+    then
+        # Add component meta information
+        echo "${CM_NAME}|${CM_VERSION}|${CM_ROOT_DIR}|${CM_BINARY}|${CM_DESCRIPTION}" >> \
+            ${DEPLOY_DIR_IMAGE}/.components_meta
+    fi
+}
+
+do_component_meta[lockfiles] = "${DEPLOY_DIR_IMAGE}/component_meta.lock"
+
+addtask do_component_meta after do_install before do_package
diff --git a/recipes-ti/devtools/ti-cgt-arm-linux.bb b/recipes-ti/devtools/ti-cgt-arm-linux.bb
new file mode 100644
index 0000000..dbb143c
--- /dev/null
+++ b/recipes-ti/devtools/ti-cgt-arm-linux.bb
@@ -0,0 +1,26 @@
+include ti-cgt-arm.inc
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
+BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+
+do_install() {
+    cp ${S}/../${BINFILE} ${S}/${BINFILE_NAME}
+}
+
+inherit component_meta
+CM_NAME = "TI CGT ARM"
+CM_VERSION = "${PV}"
+CM_ROOT_DIR = "ti-cgt-arm_${PV}"
+CM_DESCRIPTION = "TI ARM code generation tools, including C/C++ compiler, linker, and run-time-support libraries"
+CM_BINARY = "${BINFILE_NAME}"
+
+deltask do_create_srcipk
+addtask create_srcipk after do_install before do_populate_sysroot
+
+CREATE_SRCIPK = "1"
+SRCIPK_INSTALL_DIR = "${CM_ROOT_DIR}"
+SRCIPK_SRC_DIR = "${S}"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
diff --git a/recipes-ti/devtools/ti-cgt-arm.bb b/recipes-ti/devtools/ti-cgt-arm.bb
new file mode 100644
index 0000000..464374d
--- /dev/null
+++ b/recipes-ti/devtools/ti-cgt-arm.bb
@@ -0,0 +1,26 @@
+include ti-cgt-arm.inc
+
+S = "${WORKDIR}/ti-cgt-arm-${PV}"
+
+require recipes-ti/includes/ti-unpack.inc
+require recipes-ti/includes/ti-staging.inc
+require recipes-ti/includes/ti-paths.inc
+
+TI_BIN_UNPK_ARGS = "--prefix ${S}"
+TI_BIN_UNPK_CMDS = ""
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+BINFILE_MD5 = "aa65a078eeddbf10e8e132a4cf1d58f0"
+BINFILE_SHA256 = "a372fd6f7b2608e11326b5c7438311aa37c7fbca0728b158cb9064a0666a8a05"
+
+do_install() {
+    install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+    cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+}
+
+FILES_${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
+
+BBCLASSEXTEND = "native nativesdk"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
diff --git a/recipes-ti/devtools/ti-cgt-arm.inc b/recipes-ti/devtools/ti-cgt-arm.inc
new file mode 100644
index 0000000..195d59e
--- /dev/null
+++ b/recipes-ti/devtools/ti-cgt-arm.inc
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI ARM Code Generation Tools"
+HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
+LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"
+
+LIC_FILES_CHKSUM = "file://../${BINFILE};md5=${BINFILE_MD5}"
+
+PV = "16.9.1"
+PE = "0"
+
+BINFILE_NAME = "cgt_arm_installer"
+
+SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
+
+SRC_URI[cgt_arm_installer.md5sum] = "${BINFILE_MD5}"
+SRC_URI[cgt_arm_installer.sha256sum] = "${BINFILE_SHA256}"
+
+FILES_${PN} += "${S}/*"
+
+INSANE_SKIP_${PN} += "arch staticdev"
-- 
1.9.1



             reply	other threads:[~2017-04-19 10:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19 10:30 Karthik Ramanan [this message]
2017-04-19 10:30 ` [morty 2/4] Remove CCS dependencies for all components Karthik Ramanan
2017-04-19 19:45   ` Denys Dmytriyenko
2017-04-19 10:30 ` [morty 3/4] ti-ccsv6: Remove the recipe Karthik Ramanan
2017-04-19 10:30 ` [morty 4/4] ti-cgt-arm: Update to version 16.9.2 Karthik Ramanan
2017-04-19 19:47   ` Denys Dmytriyenko
2017-04-19 19:43 ` [morty 1/4] ti-cgt-arm: Include recipes for 16.9.1 Denys Dmytriyenko
2017-04-21 14:17   ` Karthik Ramanan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1492597804-77037-1-git-send-email-a0393906@ti.com \
    --to=a0393906@ti.com \
    --cc=meta-ti@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.