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

git version control git at git.openembedded.org
Thu Jun 2 19:15:29 UTC 2011


Module: openembedded.git
Branch: master
Commit: 944b7e1bb73b09416f4e1e33fbb6c17d54aa3be6
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=944b7e1bb73b09416f4e1e33fbb6c17d54aa3be6

Author: clarson <clarson at 6a149ff2-cb3c-0410-b4c8-c88968701766>
Date:   Thu May 19 19:20:36 2011 +0000

sourceipk: allow override of the section

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

git-svn-id: http://svr-alm-svn-01.alm.mentorg.com:8080/svn/ea/easi_oe/system-builder/release-2011.1/sb-core@4916 6a149ff2-cb3c-0410-b4c8-c88968701766

---

 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