diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-09-11 22:15:24 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2019-11-25 17:18:04 +0000 |
commit | 3d0ddebddeb53ff781a152b7cd90628e312ced3c (patch) | |
tree | 45ede9f0acdb51f33306fe4ef108485f3759f56c /recipes-ti | |
parent | 80ff20dee34c4f1e169b0bad2ba1806fec1a4b43 (diff) | |
download | meta-ti-3d0ddebddeb53ff781a152b7cd90628e312ced3c.tar.gz |
ti-unpack: Simplify the logic to detect 32bit glibc on build host
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r-- | recipes-ti/includes/ti-unpack.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/recipes-ti/includes/ti-unpack.inc b/recipes-ti/includes/ti-unpack.inc index 81fcf6a6..828f3d5a 100644 --- a/recipes-ti/includes/ti-unpack.inc +++ b/recipes-ti/includes/ti-unpack.inc | |||
@@ -20,10 +20,7 @@ python ti_bin_do_unpack() { | |||
20 | import os | 20 | import os |
21 | 21 | ||
22 | # InstallJammer requires 32bit version of glibc | 22 | # InstallJammer requires 32bit version of glibc |
23 | lib32path = '/lib' | 23 | if not os.path.exists('/lib/ld-linux.so.2'): |
24 | if os.path.exists('/lib64') and (os.path.islink('/lib64') or os.path.islink('/lib') or os.path.exists('/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): | ||
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") | 24 | 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 | 25 | ||
29 | localdata = bb.data.createCopy(d) | 26 | localdata = bb.data.createCopy(d) |