All pastes #274047 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-12-10 11:16 UTC
rendered paste body
    cc = bb.data.getVar('CC', d, True)
    obj_check = bb.data.getVar('OBJDUMP', d, True)
    ld_check = bb.data.getVar('LDCONFIG', d, True)

    # use bitbake's PATH so that the cross-compiler is actually found on the PATH
    oldpath = os.environ['PATH']
    os.environ['PATH'] = bb.data.getVar('PATH', d, True)

    # FIXME falsely assuming there is only a single NEEDED per file
    # FIXME falsely assuming the lib path is /lib

    # which libc does the compiler need? (for example: libc.so.6)
    libc = os.popen("%s -x `which %s` | sed -n 's/.*NEEDED *//p'" % (obj_check,cc) ).read()[:-1]