aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-01-23 06:54:23 -0500
committerChen Qi <Qi.Chen@windriver.com>2014-01-23 20:09:27 +0800
commit69dcfa603cb2e43419a1b8795212c850398516f0 (patch)
tree5adfb8938bebead3acce786ad5e2c896ad040b88
parentb5cee43db9bb7a971d352f7b8673e2e6e6fc7075 (diff)
downloadopenembedded-core-contrib-ChenQi/initscripts-functions-rework.tar.gz
openembedded-core-contrib-ChenQi/initscripts-functions-rework.tar.bz2
openembedded-core-contrib-ChenQi/initscripts-functions-rework.zip
initscripts: add initscripts-functions-dev packageChenQi/initscripts-functions-rework
Add initscripts-functions-dev package to avoid initscripts package being installed unexpected via the dependency of initscripts-dev package. Before this patch, if we have 'dev-pkgs' in IMAGE_FEATURES, the initscripts package would be installed once the initscripts-functions package is installed, which is not what we need. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index d1644a3204..db310a630d 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -42,9 +42,11 @@ KERNEL_VERSION = ""
inherit update-alternatives
DEPENDS_append = " update-rc.d-native"
-PACKAGES =+ "${PN}-functions"
+PACKAGES =+ "${PN}-functions ${PN}-functions-dev"
RDEPENDS_${PN} = "${PN}-functions"
FILES_${PN}-functions = "${sysconfdir}/init.d/functions*"
+RDEPENDS_${PN}-functions-dev += "${PN}-functions"
+ALLOW_EMPTY_${PN}-functions-dev = "1"
ALTERNATIVE_PRIORITY_${PN}-functions = "90"
ALTERNATIVE_${PN}-functions = "functions"