mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
meta: Don't use deprecated bitbake API
These have been deprecated for a long time, convert the remaining references to the correct modules and prepare for removal of the compatibility support from bitbake. (From OE-Core rev: 6a39835af2b2b3c7797fe05479341d71a3f3aaf6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -33,7 +33,7 @@ python do_prepare_copyleft_sources () {
|
||||
pf = d.getVar('PF', True)
|
||||
dest = os.path.join(sources_dir, pf)
|
||||
shutil.rmtree(dest, ignore_errors=True)
|
||||
bb.mkdirhier(dest)
|
||||
bb.utils.mkdirhier(dest)
|
||||
|
||||
for u in ud.values():
|
||||
local = os.path.normpath(fetch.localpath(u.url))
|
||||
@@ -51,7 +51,7 @@ python do_prepare_copyleft_sources () {
|
||||
|
||||
patches = src_patches(d)
|
||||
for patch in patches:
|
||||
_, _, local, _, _, parm = bb.decodeurl(patch)
|
||||
_, _, local, _, _, parm = bb.fetch.decodeurl(patch)
|
||||
patchdir = parm.get('patchdir')
|
||||
if patchdir:
|
||||
series = os.path.join(dest, 'series.subdir.%s' % patchdir.replace('/', '_'))
|
||||
|
||||
Reference in New Issue
Block a user