mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
archiver.bbclass: add bbappend when do_ar_recipe kernel and gcc packages
bbappend files are not included in the archiver during do_ar_recipe. Find and put them into the tarball. (From OE-Core rev: 5c84057de5b31c5d6d9abfcca3078bf766a21d88) Signed-off-by: Jian Liu <jian.liu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -298,6 +298,16 @@ python do_ar_recipe () {
|
|||||||
bb.utils.mkdirhier(outdir)
|
bb.utils.mkdirhier(outdir)
|
||||||
shutil.copy(bbfile, outdir)
|
shutil.copy(bbfile, outdir)
|
||||||
|
|
||||||
|
pn = d.getVar('PN', True)
|
||||||
|
bbappend_files = d.getVar('BBINCLUDED', True).split()
|
||||||
|
# If recipe name is aa, we need to match files like aa.bbappend and aa_1.1.bbappend
|
||||||
|
# Files like aa1.bbappend or aa1_1.1.bbappend must be excluded.
|
||||||
|
bbappend_re = re.compile( r".*/%s_[^/]*\.bbappend$" %pn)
|
||||||
|
bbappend_re1 = re.compile( r".*/%s\.bbappend$" %pn)
|
||||||
|
for file in bbappend_files:
|
||||||
|
if bbappend_re.match(file) or bbappend_re1.match(file):
|
||||||
|
shutil.copy(file, outdir)
|
||||||
|
|
||||||
dirname = os.path.dirname(bbfile)
|
dirname = os.path.dirname(bbfile)
|
||||||
bbpath = '%s:%s' % (dirname, d.getVar('BBPATH', True))
|
bbpath = '%s:%s' % (dirname, d.getVar('BBPATH', True))
|
||||||
f = open(bbfile, 'r')
|
f = open(bbfile, 'r')
|
||||||
|
|||||||
Reference in New Issue
Block a user