Patchwork [WR,2/2] Add directory information to the pkgdata files

login
register
mail settings
Submitter Mark Hatle
Date Feb. 7, 2013, 11:54 p.m.
Message ID <1360281263-23608-3-git-send-email-mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/44263/
State New
Headers show

Comments

Mark Hatle - Feb. 7, 2013, 11:54 p.m.
[ CQID: WIND00401773 ]

Add S(ource) and B(uild) directory information to the recipe pkgdata files.
This allows external tools to find the appropriate information, and be able
to easily access the corresponding sources and build directories.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/package.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index a1cd0c2..f26da28 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1098,6 +1098,8 @@  python emit_pkgdata() {
 
     data_file = pkgdatadir + d.expand("/${PN}" )
     f = open(data_file, 'w')
+    f.write("S: %s\n" % d.expand("${S}"))
+    f.write("B: %s\n" % d.expand("${B}"))
     f.write("PACKAGES: %s\n" % packages)
     f.close()