[oe-commits] Chris Larson : sourceipk: allow override of the section
git version control
git at git.openembedded.org
Wed Jun 8 18:40:36 UTC 2011
Module: openembedded.git
Branch: 2011.03-maintenance
Commit: 78c3f2f3c6e66772a5d5ba821a03ea10b27a3a0c
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=78c3f2f3c6e66772a5d5ba821a03ea10b27a3a0c
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>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
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