[oe-commits] Andreas Oberritter : package.bbclass: call PACKAGESTRIPFUNCS before populate_packages

git version control git at git.openembedded.org
Fri Apr 22 17:52:28 UTC 2011


Module: openembedded.git
Branch: shr/testing2011.1
Commit: 7df2e6c19a165ed7972b1856f1de9e289d32725d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=7df2e6c19a165ed7972b1856f1de9e289d32725d

Author: Andreas Oberritter <obi at opendreambox.org>
Date:   Wed Dec  8 21:00:31 2010 +0000

package.bbclass: call PACKAGESTRIPFUNCS before populate_packages

Introduce run_strip_funcs() to call the functions in
  PACKAGESTRIPFUNCS and place it before populate_packages().

  This allows users of do_split_packages() to package the .debug
  directories, which get created by do_runstrip().

  do_split_packages() is usually prepended to populate_packages().

Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 classes/package.bbclass |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/classes/package.bbclass b/classes/package.bbclass
index 29b5a9c..901ad9d 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -367,6 +367,12 @@ python perform_packagecopy () {
 	os.system('cp -pPR %s/. %s/' % (installdest, pkgcopy))
 }
 
+python run_strip_funcs() {
+	if (bb.data.getVar('PACKAGE_STRIP', d, True) != 'no'):
+		for f in (bb.data.getVar('PACKAGESTRIPFUNCS', d, True) or '').split():
+			bb.build.exec_func(f, d)
+}
+
 python populate_packages () {
 	import glob, errno, re,os
 
@@ -391,11 +397,6 @@ python populate_packages () {
 		else:
 			package_list.append(pkg)
 
-
-	if (bb.data.getVar('PACKAGE_STRIP', d, True) != 'no'):
-		for f in (bb.data.getVar('PACKAGESTRIPFUNCS', d, True) or '').split():
-			bb.build.exec_func(f, d)
-
 	pkgdest = bb.data.getVar('PKGDEST', d, True)
 	os.system('rm -rf %s' % pkgdest)
 
@@ -1001,6 +1002,7 @@ PACKAGE_PREPROCESS_FUNCS ?= ""
 PACKAGEFUNCS ?= "perform_packagecopy \
                 ${PACKAGE_PREPROCESS_FUNCS} \
 		package_do_split_locales \
+		run_strip_funcs \
 		populate_packages \
 		package_do_shlibs \
 		package_do_pkgconfig \





More information about the Openembedded-commits mailing list