aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-06-02 12:16:11 -0700
committerChris Larson <chris_larson@mentor.com>2011-06-02 12:17:05 -0700
commit17fd4202c0f0997bbc8fb893f48c1f6900cd363a (patch)
treee972cf097a134f08d10ae1e9cbfd6ce54a12f8b9
parent0fe0f7d5629578839192153c012a05a192dc2b41 (diff)
downloadopenembedded-17fd4202c0f0997bbc8fb893f48c1f6900cd363a.tar.gz
openembedded-17fd4202c0f0997bbc8fb893f48c1f6900cd363a.tar.bz2
openembedded-17fd4202c0f0997bbc8fb893f48c1f6900cd363a.zip
sourceipk: allow override of the section
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--classes/sourceipk.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index b37bbf9aa9..a92e462325 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