All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] archiver.bbclass: add bbappend when do_ar_recipe kernel and gcc packages
@ 2015-11-13  8:21 Jian Liu
  0 siblings, 0 replies; only message in thread
From: Jian Liu @ 2015-11-13  8:21 UTC (permalink / raw)
  To: openembedded-core

bbappend files are not included in the archiver during do_ar_recipe.
Find and put them into the tarball.

Signed-off-by: Jian Liu <jian.liu@windriver.com>

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 1d17fc5..ccb5b09 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -369,6 +369,16 @@ python do_ar_recipe () {
     bb.utils.mkdirhier(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)
     bbpath = '%s:%s' % (dirname, d.getVar('BBPATH', True))
     f = open(bbfile, 'r')


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-13  8:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13  8:21 [PATCH] archiver.bbclass: add bbappend when do_ar_recipe kernel and gcc packages Jian Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.