summaryrefslogtreecommitdiffstats
path: root/recipes-ti
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2019-07-23 16:05:13 +0000
committerDenys Dmytriyenko <denys@ti.com>2019-07-23 21:33:15 +0000
commit0f44e93f20279e48d1098f7b0a5dcde3c688249e (patch)
tree27ebe1191701f32548f40beb00027c4d042a76bb /recipes-ti
parent1f9d1c1187f17c59f710101e4ac7b3efee5876ff (diff)
downloadmeta-ti-0f44e93f20279e48d1098f7b0a5dcde3c688249e.tar.gz
ti-unpack.inc: abort if 32 bit libs are not installed
ti_bin_do_unpack() detects the absence of the required 32 bit libraries, but only emits a warning. Later on the build will fail with a mysterious error. Fail immediately so the user can clearly read the error message and the (always appreciated) instructions on how to fix the problem. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r--recipes-ti/includes/ti-unpack.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-ti/includes/ti-unpack.inc b/recipes-ti/includes/ti-unpack.inc
index dbc49491..81fcf6a6 100644
--- a/recipes-ti/includes/ti-unpack.inc
+++ b/recipes-ti/includes/ti-unpack.inc
@@ -24,7 +24,7 @@ python ti_bin_do_unpack() {
24 if os.path.exists('/lib64') and (os.path.islink('/lib64') or os.path.islink('/lib') or os.path.exists('/lib32')): 24 if os.path.exists('/lib64') and (os.path.islink('/lib64') or os.path.islink('/lib') or os.path.exists('/lib32')):
25 lib32path = '/lib32' 25 lib32path = '/lib32'
26 if not os.path.exists('%s/libc.so.6' % lib32path) and not os.path.exists('%s/i386-linux-gnu/libc.so.6' % lib32path): 26 if not os.path.exists('%s/libc.so.6' % lib32path) and not os.path.exists('%s/i386-linux-gnu/libc.so.6' % lib32path):
27 bb.warn("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian") 27 bb.fatal("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian")
28 28
29 localdata = bb.data.createCopy(d) 29 localdata = bb.data.createCopy(d)
30 bb.data.update_data(localdata) 30 bb.data.update_data(localdata)