avs_mtk_voice/meta/meta-mediatek/classes/tzsrcprebuilt.bbclass

22 lines
700 B
Plaintext
Raw Normal View History

2022-05-13 08:02:31 +00:00
python () {
import os.path
srcpath = d.getVar('TZ_SRC', True)
prebuiltpath = d.getVar('TZ_PREBUILT', True)
if os.path.exists(srcpath+'/mtee/build/.git'):
d.setVar('TZ_SRC', srcpath)
elif os.path.exists(prebuiltpath+'/.git'):
d.setVar('TZ_SRC', prebuiltpath)
else:
bb.warn("Both %s and %s aren't existed" % (srcpath, prebuiltpath) )
# d.setVar('B', d.getVar('TZ_SRC', True) )
# d.setVar('S', d.getVar('TZ_SRC', True) )
# bb.warn("TZ_SRC = %s" % d.getVar('TZ_SRC', True) )
# bb.warn("EXTERNALSRC = %s" % d.getVar('EXTERNALSRC', True))
# bb.warn("EXTERNALSRC_BUILD = %s" % d.getVar('EXTERNALSRC_BUILD', True) )
}