diff options
author | Koen Kooi <koen@openembedded.org> | 2009-08-26 11:35:14 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-08-26 11:35:14 +0200 |
commit | 172cb63ce5e91d489993590ec09e418aba019b4e (patch) | |
tree | e10d322895620ec0c96c2ab0efcd296bfc93b6b9 /recipes/ti/ti-cs1-omap3530.inc | |
parent | bac5eef9c8a73672ee114926011addabb36610eb (diff) |
dvsdk: rename to ti now that other things like bitblit live in that dir now
Diffstat (limited to 'recipes/ti/ti-cs1-omap3530.inc')
-rw-r--r-- | recipes/ti/ti-cs1-omap3530.inc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes/ti/ti-cs1-omap3530.inc b/recipes/ti/ti-cs1-omap3530.inc new file mode 100644 index 0000000000..cb9696d61d --- /dev/null +++ b/recipes/ti/ti-cs1-omap3530.inc @@ -0,0 +1,41 @@ + +# 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) +} + +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, "Y\n" + print >>f, " \n" + print >>f, "qY\n" + print >>f, "%s\n" % workdir + + f.close() + + # Return to the previous directory + os.chdir(save_cwd) +} + |