mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
base.bbclass: Minor performance tweak, add base_get_srcrev()
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2249 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -723,8 +723,11 @@ def base_after_parse(d):
|
|||||||
if (old_arch == mach_arch):
|
if (old_arch == mach_arch):
|
||||||
# Nothing to do
|
# Nothing to do
|
||||||
return
|
return
|
||||||
if (bb.data.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', d, 1) == '0'):
|
override = bb.data.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', d, 1)
|
||||||
|
|
||||||
|
if not override or override == '0':
|
||||||
return
|
return
|
||||||
|
|
||||||
paths = []
|
paths = []
|
||||||
for p in [ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ]:
|
for p in [ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ]:
|
||||||
paths.append(bb.data.expand(os.path.join(p, mach_arch), d))
|
paths.append(bb.data.expand(os.path.join(p, mach_arch), d))
|
||||||
@@ -742,6 +745,12 @@ python () {
|
|||||||
base_after_parse(d)
|
base_after_parse(d)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def base_get_srcrev(d):
|
||||||
|
import bb
|
||||||
|
|
||||||
|
if bb.fetch.get_srcrev:
|
||||||
|
return bb.fetch.get_srcrev(d)
|
||||||
|
return "NOT IMPLEMENTED"
|
||||||
|
|
||||||
# Patch handling
|
# Patch handling
|
||||||
inherit patch
|
inherit patch
|
||||||
|
|||||||
Reference in New Issue
Block a user