summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibault GUITTET <guittet.thibault@gmail.com>2013-07-03 16:01:19 +0200
committerTom Zanussi <tom.zanussi@linux.intel.com>2013-07-03 10:40:20 -0500
commite7f77e4dc4490a10a597d3da7e85d6650ccb6fc3 (patch)
tree03d2850aba6d726c6882eabc8f7a9df3bad65236
parente0d6134ed2e2687ff9f2ee77701666447842bf33 (diff)
downloadmeta-intel-e7f77e4dc4490a10a597d3da7e85d6650ccb6fc3.tar.gz
lms7: handle different host setups
From similar patch for lms8 (fc9cba84): The configure script looks at the *host* environment to decide where to install the init script, so it's location at packaging time can change. Signed-off-by: Thibault Guittet <guittet.thibault[at]gmail.com> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
-rw-r--r--common/recipes-bsp/amt/lms7_7.1.20.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/recipes-bsp/amt/lms7_7.1.20.bb b/common/recipes-bsp/amt/lms7_7.1.20.bb
index 2c6a29e1..9bc9ef1d 100644
--- a/common/recipes-bsp/amt/lms7_7.1.20.bb
+++ b/common/recipes-bsp/amt/lms7_7.1.20.bb
@@ -34,7 +34,13 @@ addtask unpack2 after do_unpack before do_patch
34do_install_append () { 34do_install_append () {
35 mv ${D}/${sbindir}/lms ${D}/${sbindir}/lms7 35 mv ${D}/${sbindir}/lms ${D}/${sbindir}/lms7
36 install -d ${D}${sysconfdir}/init.d 36 install -d ${D}${sysconfdir}/init.d
37 mv ${D}${sysconfdir}/rc.d/init.d/lms ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} 37 # The configure script looks at the host to decide where to put init
38 # scripts, so move it at the same time as renaming it.
39 if test -f ${D}${sysconfdir}/rc.d/init.d/lms ; then
40 mv ${D}${sysconfdir}/rc.d/init.d/lms ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
41 else
42 mv ${D}${sysconfdir}/init.d/lms ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
43 fi
38 sed -i 's/^NAME=lms/NAME=lms7/' ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} 44 sed -i 's/^NAME=lms/NAME=lms7/' ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
39 rmdir ${D}${datadir} || : 45 rmdir ${D}${datadir} || :
40} 46}