mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
classes/package_xxx.class: Use PKGE/PKGV/PKGR.
Use PKGE/PKGV/PKGR to build various package feed in tasks of pacakge_write_xxx. (From OE-Core rev: c2872315905fcdf6e4bf11fe96e5ca62af3475f8) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
66d27435be
commit
16f06f7135
@@ -3,7 +3,7 @@ inherit package
|
||||
IMAGE_PKGTYPE ?= "tar"
|
||||
|
||||
python package_tar_fn () {
|
||||
fn = os.path.join(bb.data.getVar('DEPLOY_DIR_TAR', d), "%s-%s-%s.tar.gz" % (bb.data.getVar('PKG', d), bb.data.getVar('PV', d), bb.data.getVar('PR', d)))
|
||||
fn = os.path.join(bb.data.getVar('DEPLOY_DIR_TAR', d), "%s-%s-%s.tar.gz" % (bb.data.getVar('PKG', d), bb.data.getVar('PKGV', d), bb.data.getVar('PKGR', d)))
|
||||
fn = bb.data.expand(fn, d)
|
||||
bb.data.setVar('PKGFN', fn, d)
|
||||
}
|
||||
@@ -83,7 +83,7 @@ python do_package_tar () {
|
||||
os.chdir(root)
|
||||
from glob import glob
|
||||
if not glob('*'):
|
||||
bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1)))
|
||||
bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PKGV', localdata, 1), bb.data.getVar('PKGR', localdata, 1)))
|
||||
continue
|
||||
ret = os.system("tar -czf %s %s" % (tarfn, '.'))
|
||||
if ret != 0:
|
||||
|
||||
Reference in New Issue
Block a user