diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-12-10 11:08:51 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-12-10 11:08:51 +0100 |
commit | a79d5a546392cad57bb8855f88d4617caa852d27 (patch) | |
tree | 28a5b26bf27ff1e594e13e6eb5aa76891f8f8aab /recipes/ti/ti-dspbios.inc | |
parent | 09a85ada712374f567b276067805c19b091a518a (diff) | |
parent | 6e0172f360053c39bfad106592fbb55509167103 (diff) |
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/ti/ti-dspbios.inc')
-rw-r--r-- | recipes/ti/ti-dspbios.inc | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/recipes/ti/ti-dspbios.inc b/recipes/ti/ti-dspbios.inc index 9e79216554..08d797a6e3 100644 --- a/recipes/ti/ti-dspbios.inc +++ b/recipes/ti/ti-dspbios.inc @@ -1,40 +1,6 @@ DESCRIPTION = "TI DSP/BIOS for Davinci and OMAP processor" -# This file defines function used for extracting .bin file +TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" -python do_unpack () { - bb.build.exec_func('base_do_unpack', d) - bb.build.exec_func('ti_bin_do_unpack', d) -} - -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\n" % workdir - print >>f, "Y\n" - f.close() - - # Return to the previous directory - os.chdir(save_cwd) -} +require ti-eula-unpack.inc |