[oe-commits] Chris Larson : sourceipk: allow override of the section

git version control git at git.openembedded.org
Thu Jun 2 20:01:31 UTC 2011


Module: openembedded.git
Branch: testing-next
Commit: 17fd4202c0f0997bbc8fb893f48c1f6900cd363a
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=17fd4202c0f0997bbc8fb893f48c1f6900cd363a

Author: Chris Larson <chris_larson at mentor.com>
Date:   Thu Jun  2 12:16:11 2011 -0700

sourceipk: allow override of the section

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 classes/sourceipk.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index b37bbf9..a92e462 100644
--- a/classes/sourceipk.bbclass
+++ b/classes/sourceipk.bbclass
@@ -50,6 +50,9 @@ SRCIPK_INSTALL_DIR ?= "/usr/src/${PN}-src"
 # Default PACKAGE_ARCH for sources is "all"
 SRCIPK_PACKAGE_ARCH ?= "all"
 
+# Default section matches the recipe section
+SRCIPK_SECTION ?= "${SECTION}"
+
 # Default SRCIPK_INCLUDE_EXTRAFILES is to include the extra files
 SRCIPK_INCLUDE_EXTRAFILES ?= "1"
 
@@ -86,7 +89,7 @@ sourceipk_do_create_srcipk() {
         echo "Package: ${PN}-src" > $control_file
         echo "Version: ${PV}-${PR}" >> $control_file
         echo "Description: Patched sources for ${PN}" >> $control_file
-        echo "Section: ${SECTION}" >> $control_file
+        echo "Section: ${SRCIPK_SECTION}" >> $control_file
         echo "Priority: Optional" >> $control_file
         echo "Maintainer: ${MAINTAINER}" >> $control_file
         echo "License: ${LICENSE}" >> $control_file





More information about the Openembedded-commits mailing list