1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-01-12 01:20:20 +00:00

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>
This commit is contained in:
Khem Raj
2019-09-11 22:15:24 +00:00
committed by Denys Dmytriyenko
parent 80ff20dee3
commit 3d0ddebdde

View File

@@ -20,10 +20,7 @@ python ti_bin_do_unpack() {
import os
# InstallJammer requires 32bit version of glibc
lib32path = '/lib'
if os.path.exists('/lib64') and (os.path.islink('/lib64') or os.path.islink('/lib') or os.path.exists('/lib32')):
lib32path = '/lib32'
if not os.path.exists('%s/libc.so.6' % lib32path) and not os.path.exists('%s/i386-linux-gnu/libc.so.6' % lib32path):
if not os.path.exists('/lib/ld-linux.so.2'):
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")
localdata = bb.data.createCopy(d)