Skip to contentSkip to conversation

ti-cgt6x-7: extend to nativesdk

PATCH New Jacob Stiffler 1 participant 3 messages Jul 29, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ti-cgt6x-7: extend to nativesdk

---
 .../{ti-cgt6x-7-native_7.4.16.bb => ti-cgt6x-7_7.4.16.bb}        | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
 rename recipes-ti/devtools/{ti-cgt6x-7-native_7.4.16.bb => ti-cgt6x-7_7.4.16.bb} (89%)
recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb renamed from recipes-ti/devtools/ti-cgt6x-7-native_7.4.16.bb +7 -2
similarity index 89%
rename from recipes-ti/devtools/ti-cgt6x-7-native_7.4.16.bb
rename to recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
index 7bb4c75..a67a2d8 100644
@@ -13,7 +13,6 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
 
 S = "${WORKDIR}/c6000_7.4.16"
 
-inherit native
 require recipes-ti/includes/ti-paths.inc
 require recipes-ti/includes/ti-unpack.inc
 
@@ -27,6 +26,10 @@ SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}"
 SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513"
 SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f"
 
+# only x86_64 is supported
+COMPATIBLE_HOST = "x86_64.*-linux"
+COMPATIBLE_HOST_class-target = "null"
+
 do_install() {
     install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
     cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
@@ -34,8 +37,10 @@ do_install() {
 
 FILES_${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
 
-INSANE_SKIP_${PN} += "arch staticdev"
+INSANE_SKIP_${PN} += "arch staticdev textrel"
 
 INHIBIT_PACKAGE_STRIP = "1"
 INHIBIT_SYSROOT_STRIP = "1"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 ti-cgt-arm: consolidate into single file

---
 recipes-ti/devtools/ti-cgt-arm-native_18.12.1.bb | 38 ++++++++++++++++++++++--
 recipes-ti/devtools/ti-cgt-arm.inc               | 36 ----------------------
 2 files changed, 35 insertions(+), 39 deletions(-)
 delete mode 100644 recipes-ti/devtools/ti-cgt-arm.inc
recipes-ti/devtools/ti-cgt-arm-native_18.12.1.bb +35 -3
index 7df9660..5d72406 100644
@@ -1,6 +1,38 @@
-include ti-cgt-arm.inc
+SUMMARY = "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 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"
 
 LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=ab7a61241e90fcd144a756d88294cf30"
 
-BINFILE_MD5 = "af2378cf8d5d6f200ef3329f5a065529"
-BINFILE_SHA256 = "d90ae2360cd5b22912715ae7898d99352da1b97fd655f9a55d0d19a2a46bab0e"
+inherit native
+require recipes-ti/includes/ti-unpack.inc
+require recipes-ti/includes/ti-staging.inc
+require recipes-ti/includes/ti-paths.inc
+
+S = "${WORKDIR}/ti-cgt-arm-${PV}"
+
+PR = "r0"
+
+SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
+
+BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
+TI_BIN_UNPK_ARGS = "--prefix ${S}"
+TI_BIN_UNPK_CMDS = ""
+
+do_install() {
+    install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+    cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
+}
+
+SRC_URI[cgt_arm_installer.md5sum] = "af2378cf8d5d6f200ef3329f5a065529"
+SRC_URI[cgt_arm_installer.sha256sum] = "d90ae2360cd5b22912715ae7898d99352da1b97fd655f9a55d0d19a2a46bab0e"
+
+BINFILE_NAME = "cgt_arm_installer"
+
+FILES_${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+INSANE_SKIP_${PN} += "arch staticdev"
recipes-ti/devtools/ti-cgt-arm.inc deleted +0 -36
deleted file mode 100644
index d2d768c..0000000
@@ -1,36 +0,0 @@
-SUMMARY = "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 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"
-
-inherit native
-require recipes-ti/includes/ti-unpack.inc
-require recipes-ti/includes/ti-staging.inc
-require recipes-ti/includes/ti-paths.inc
-
-S = "${WORKDIR}/ti-cgt-arm-${PV}"
-
-PR = "r0"
-
-SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
-
-BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
-TI_BIN_UNPK_ARGS = "--prefix ${S}"
-TI_BIN_UNPK_CMDS = ""
-
-do_install() {
-    install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
-    cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
-}
-
-SRC_URI[cgt_arm_installer.md5sum] = "${BINFILE_MD5}"
-SRC_URI[cgt_arm_installer.sha256sum] = "${BINFILE_SHA256}"
-
-BINFILE_NAME = "cgt_arm_installer"
-
-FILES_${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
-
-INHIBIT_PACKAGE_STRIP = "1"
-INHIBIT_SYSROOT_STRIP = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
-
-INSANE_SKIP_${PN} += "arch staticdev"
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/3 ti-cgt-arm: extend to nativesdk

In reply to Jacob Stiffler
---
 .../{ti-cgt-arm-native_18.12.1.bb => ti-cgt-arm_18.12.1.bb}        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
 rename recipes-ti/devtools/{ti-cgt-arm-native_18.12.1.bb => ti-cgt-arm_18.12.1.bb} (90%)
recipes-ti/devtools/ti-cgt-arm_18.12.1.bb renamed from recipes-ti/devtools/ti-cgt-arm-native_18.12.1.bb +6 -1
similarity index 90%
rename from recipes-ti/devtools/ti-cgt-arm-native_18.12.1.bb
rename to recipes-ti/devtools/ti-cgt-arm_18.12.1.bb
index 5d72406..eecde58 100644
@@ -4,7 +4,6 @@ LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0
 
 LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=ab7a61241e90fcd144a756d88294cf30"
 
-inherit native
 require recipes-ti/includes/ti-unpack.inc
 require recipes-ti/includes/ti-staging.inc
 require recipes-ti/includes/ti-paths.inc
@@ -19,6 +18,10 @@ BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
 TI_BIN_UNPK_ARGS = "--prefix ${S}"
 TI_BIN_UNPK_CMDS = ""
 
+# only x86_64 is supported
+COMPATIBLE_HOST = "x86_64.*-linux"
+COMPATIBLE_HOST_class-target = "null"
+
 do_install() {
     install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
     cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
@@ -36,3 +39,5 @@ INHIBIT_SYSROOT_STRIP = "1"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 
 INSANE_SKIP_${PN} += "arch staticdev"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4