summaryrefslogtreecommitdiffstats
path: root/recipes-ti
diff options
context:
space:
mode:
authorFranklin S. Cooper Jr <fcooper@ti.com>2012-09-01 12:45:03 -0500
committerDenys Dmytriyenko <denys@ti.com>2012-10-10 16:00:04 -0400
commit2a3c7305fb81967d1358e731fb564182480b0338 (patch)
treee24e172ef679c89e782a6ed3cce84c3ef7acfb61 /recipes-ti
parent80ebdb06c319c5fa9881923e4a158eb048487b66 (diff)
downloadmeta-ti-2a3c7305fb81967d1358e731fb564182480b0338.tar.gz
recipes: Fix ti-eula-unpack issue. Tweak sgx modules and libgles recipes.
* Commit d8fc4a686262c50fd0053afa7240020909ec430b addressed an issue where too many newlines characters were being sent since print by default already sends a newline character. This commit however resulted in bin files being installed in the WORKDIR and broke other recipes which commit a94f765b9867abefd5f0bd262b5dddb8782b3187 addressed. This lead to a very cluttered WORKDIR. * This patch updates ti-eula-unpack.inc to switch from using a print to a write. Since write doesn't automatically send newlines it is a bit more obvious when newlines are sent. * Part of the reason that bin files were being installed in the WORKDIR was due to TI_BIN_UNPK_WDEXT being blank for some recipes. For instance in the libgles-omap3 recipes, when the workdir command is set in TI_BIN_UNPK_CMDS the directory that the Graphics SDK will be installed into is workdir+TI_BIN_UNPK_WDEXT. A blank TI_BIN_UNPK_WDEXT means the SDK will be installed in WORKDIR. By setting TI_BIN_UNPK_WDEXT to a proper value the recipes can be sure it is installed in the proper directory. * Determine which file to download based on the defined BINFILE and not a hardcoded value. This idea was taken from arago. Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com> Acked-by: Chase Maupin <chase.maupin@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r--recipes-ti/includes/ti-eula-unpack.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-ti/includes/ti-eula-unpack.inc b/recipes-ti/includes/ti-eula-unpack.inc
index 60f5558b..aee88f16 100644
--- a/recipes-ti/includes/ti-eula-unpack.inc
+++ b/recipes-ti/includes/ti-eula-unpack.inc
@@ -14,7 +14,7 @@ python do_unpack () {
14 bb.build.exec_func('ti_bin_do_unpack', d) 14 bb.build.exec_func('ti_bin_do_unpack', d)
15} 15}
16 16
17TI_BIN_UNPK_WDEXT += "" 17TI_BIN_UNPK_WDEXT ?= ""
18python ti_bin_do_unpack() { 18python ti_bin_do_unpack() {
19 19
20 import os 20 import os
@@ -60,7 +60,7 @@ python ti_bin_do_unpack() {
60 wdext = bb.data.getVar('TI_BIN_UNPK_WDEXT', localdata) 60 wdext = bb.data.getVar('TI_BIN_UNPK_WDEXT', localdata)
61 wdext = bb.data.expand(wdext, localdata) 61 wdext = bb.data.expand(wdext, localdata)
62 cmd = workdir+wdext 62 cmd = workdir+wdext
63 print >>f, cmd 63 f.write(cmd+'\n');
64 f.close() 64 f.close()
65 65
66 # Expand the tarball that was created if required 66 # Expand the tarball that was created if required