[oe-commits] Simon Busch : frameworkd: check even in ${MACHINE_CLASS} directory for a config file and bump PR
git version control
git at git.openembedded.org
Wed Jun 22 16:59:35 UTC 2011
Module: openembedded.git
Branch: master
Commit: bb5930fa1792f8eeec08934efd444a7c07feebee
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=bb5930fa1792f8eeec08934efd444a7c07feebee
Author: Simon Busch <morphis at gravedo.de>
Date: Tue Jun 21 15:08:36 2011 +0200
frameworkd: check even in ${MACHINE_CLASS} directory for a config file and bump PR
This fixes a problem with the palmpre2 machine which does not get the right
frameworkd.conf configuration file as the recipes searched in a directory with ${MACHINE}
as name which is not there for the palmpre2. So it tooks the general one which is wrong.
With checking also in the ${MACHINE_CLASS} directory for the configuration
(${MACHINE_CLASS} is palmpre for both palmpre and palmpre2) it now takes the right
configuration file.
Signed-off-by: Simon Busch <morphis at gravedo.de>
---
recipes/freesmartphone/frameworkd_git.bb | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/recipes/freesmartphone/frameworkd_git.bb b/recipes/freesmartphone/frameworkd_git.bb
index b310e2b..4e67603 100644
--- a/recipes/freesmartphone/frameworkd_git.bb
+++ b/recipes/freesmartphone/frameworkd_git.bb
@@ -54,6 +54,8 @@ frameworkd_install_machine_specific_configs() {
CONF_PATH_MACHINE="${CONF_PATH}"
if [ -d "${CONF_PATH}/${MACHINE}" ] ; then
CONF_PATH_MACHINE="${CONF_PATH}/${MACHINE}"
+ elif [ -d "${CONF_PATH}/${MACHINE_CLASS}" ] ; then
+ CONF_PATH_MACHINE="${CONF_PATH}/${MACHINE_CLASS}"
fi
# Install machine specific files
install -m 0644 ${CONF_PATH_MACHINE}/frameworkd.conf ${D}${sysconfdir}
@@ -63,6 +65,8 @@ frameworkd_install_machine_specific_configs() {
CONF_PATH_MACHINE="${CONF_PATH}"
if [ -d "${CONF_PATH}/${MACHINE}" ] ; then
CONF_PATH_MACHINE="${CONF_PATH}/${MACHINE}"
+ elif [ -d "${CONF_PATH}/${MACHINE_CLASS}" ] ; then
+ CONF_PATH_MACHINE="${CONF_PATH}/${MACHINE_CLASS}"
fi
install -m 0644 ${CONF_PATH_MACHINE}/rules.yaml ${D}${sysconfdir}/freesmartphone/oevents/
}
More information about the Openembedded-commits
mailing list