|
@@ -23,18 +23,17 @@ LOCALSRC = "file://${WORKDIR}/lsof_${PV}/lsof_${PV}_src.tar"
|
|
|
S = "${WORKDIR}/lsof_${PV}_src"
|
|
|
|
|
|
python do_unpack () {
|
|
|
- # temporarily change S for unpack
|
|
|
- # of lsof_${PV}
|
|
|
- s = d.getVar('S', False)
|
|
|
- d.setVar('S', '${WORKDIR}/lsof_${PV}')
|
|
|
- bb.build.exec_func('base_do_unpack', d)
|
|
|
- # temporarily change SRC_URI for unpack
|
|
|
- # of lsof_${PV}_src
|
|
|
- src_uri = d.getVar('SRC_URI', False)
|
|
|
- d.setVar('SRC_URI', '${LOCALSRC}')
|
|
|
- d.setVar('S', s)
|
|
|
- bb.build.exec_func('base_do_unpack', d)
|
|
|
- d.setVar('SRC_URI', src_uri)
|
|
|
+ if not bb.data.inherits_class('externalsrc', d) or not d.getVar('EXTERNALSRC'):
|
|
|
+ # temporarily change S for unpack of lsof_${PV}
|
|
|
+ s = d.getVar('S', False)
|
|
|
+ d.setVar('S', '${WORKDIR}/lsof_${PV}')
|
|
|
+ bb.build.exec_func('base_do_unpack', d)
|
|
|
+ # temporarily change SRC_URI for unpack of lsof_${PV}_src
|
|
|
+ src_uri = d.getVar('SRC_URI', False)
|
|
|
+ d.setVar('SRC_URI', '${LOCALSRC}')
|
|
|
+ d.setVar('S', s)
|
|
|
+ bb.build.exec_func('base_do_unpack', d)
|
|
|
+ d.setVar('SRC_URI', src_uri)
|
|
|
}
|
|
|
|
|
|
export LSOF_INCLUDE = "${STAGING_INCDIR}"
|