mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
base.bbclass: Add xz-native as depends when finding *.xz in SRCURI
Just adding xz-native as DEPENDS in one bb file could not make its unpack run after xz-native build done. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
63f33efdb9
commit
c3232ed2da
@@ -516,6 +516,13 @@ python () {
|
||||
depends = depends + " shasum-native:do_populate_sysroot"
|
||||
bb.data.setVarFlag('do_fetch', 'depends', depends, d)
|
||||
|
||||
# *.xz should depends on xz-native for unpacking
|
||||
# Not endswith because of "*.patch.xz;patch=1". Need bb.decodeurl in future
|
||||
if '.xz' in srcuri:
|
||||
depends = bb.data.getVarFlag('do_unpack', 'depends', d) or ""
|
||||
depends = depends + " xz-native:do_populate_sysroot"
|
||||
bb.data.setVarFlag('do_unpack', 'depends', depends, d)
|
||||
|
||||
# 'multimachine' handling
|
||||
mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1)
|
||||
pkg_arch = bb.data.getVar('PACKAGE_ARCH', d, 1)
|
||||
|
||||
Reference in New Issue
Block a user