mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake: [parse] Move inherit handling to method
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
7477c0d89a
commit
b045ab3222
@@ -168,6 +168,11 @@ def handleBBHandlers(m, d):
|
|||||||
data.setVarFlag(h, "handler", 1, d)
|
data.setVarFlag(h, "handler", 1, d)
|
||||||
data.setVar('__BBHANDLERS', bbhands, d)
|
data.setVar('__BBHANDLERS', bbhands, d)
|
||||||
|
|
||||||
|
def handleInherit(m, d):
|
||||||
|
files = m.group(1)
|
||||||
|
n = __word__.findall(files)
|
||||||
|
inherit(n, d)
|
||||||
|
|
||||||
def supports(fn, d):
|
def supports(fn, d):
|
||||||
return fn[-3:] == ".bb" or fn[-8:] == ".bbclass" or fn[-4:] == ".inc"
|
return fn[-3:] == ".bb" or fn[-8:] == ".bbclass" or fn[-4:] == ".inc"
|
||||||
|
|
||||||
@@ -376,10 +381,7 @@ def feeder(lineno, s, fn, root, d):
|
|||||||
|
|
||||||
m = __inherit_regexp__.match(s)
|
m = __inherit_regexp__.match(s)
|
||||||
if m:
|
if m:
|
||||||
|
handleInherit(m, d)
|
||||||
files = m.group(1)
|
|
||||||
n = __word__.findall(files)
|
|
||||||
inherit(n, d)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
from bb.parse import ConfHandler
|
from bb.parse import ConfHandler
|
||||||
|
|||||||
Reference in New Issue
Block a user