diff options
| author | Zhai Edwin <edwin.zhai@intel.com> | 2010-08-25 16:05:13 +0800 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 13:04:38 +0100 |
| commit | c3232ed2daff693d4e4075c6d87ea8d0387e8df4 (patch) | |
| tree | 2d79424ff81558a7b2b32822829a6f1d28a18ee0 | |
| parent | 63f33efdb9249287d80ffd8ccc98e0a5f14b4407 (diff) | |
| download | poky-c3232ed2daff693d4e4075c6d87ea8d0387e8df4.tar.gz | |
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>
| -rw-r--r-- | meta/classes/base.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 843c380a9e..6824f8e512 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -516,6 +516,13 @@ python () { | |||
| 516 | depends = depends + " shasum-native:do_populate_sysroot" | 516 | depends = depends + " shasum-native:do_populate_sysroot" |
| 517 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) | 517 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) |
| 518 | 518 | ||
| 519 | # *.xz should depends on xz-native for unpacking | ||
| 520 | # Not endswith because of "*.patch.xz;patch=1". Need bb.decodeurl in future | ||
| 521 | if '.xz' in srcuri: | ||
| 522 | depends = bb.data.getVarFlag('do_unpack', 'depends', d) or "" | ||
| 523 | depends = depends + " xz-native:do_populate_sysroot" | ||
| 524 | bb.data.setVarFlag('do_unpack', 'depends', depends, d) | ||
| 525 | |||
| 519 | # 'multimachine' handling | 526 | # 'multimachine' handling |
| 520 | mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1) | 527 | mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1) |
| 521 | pkg_arch = bb.data.getVar('PACKAGE_ARCH', d, 1) | 528 | pkg_arch = bb.data.getVar('PACKAGE_ARCH', d, 1) |
