aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ti/ti-cgt6x.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/ti/ti-cgt6x.inc')
-rw-r--r--recipes/ti/ti-cgt6x.inc39
1 files changed, 3 insertions, 36 deletions
diff --git a/recipes/ti/ti-cgt6x.inc b/recipes/ti/ti-cgt6x.inc
index 35a9252cfe..fa46d12aeb 100644
--- a/recipes/ti/ti-cgt6x.inc
+++ b/recipes/ti/ti-cgt6x.inc
@@ -2,41 +2,8 @@ DESCRIPTION = "Code Generation Tools for TI DaVinci and OMAP"
# This file defines function used for extracting .bin file
-python do_unpack () {
- bb.build.exec_func('base_do_unpack', d)
- bb.build.exec_func('ti_bin_do_unpack', d)
-}
+TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
+TI_BIN_UNPK_WDEXT="/cgt"
-python ti_bin_do_unpack() {
-
- import os
-
- localdata = bb.data.createCopy(d)
- bb.data.update_data(localdata)
-
- binfile = bb.data.getVar('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)
-
- # 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" % (workdir, binfile)
- f = os.popen(filename,'w')
- print >>f, "Y\n"
- print >>f, "qY\n"
- print >>f, "%s/cgt\n" % workdir
- print >>f, " \n"
- print >>f, " \n"
-
- f.close()
-
- # Return to the previous directory
- os.chdir(save_cwd)
-}
+require ti-eula-unpack.inc