stx-ha: fix the hardcoded binary path for sm 51/3451/1
authorJackie Huang <jackie.huang@windriver.com>
Fri, 24 Apr 2020 07:57:12 +0000 (15:57 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Fri, 24 Apr 2020 08:49:12 +0000 (16:49 +0800)
- Fix the hardcoded binary path for sm macros
- Remove a useless commented line

Issus-ID: INF-30
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I12048550e120e59d99b2bbeeb5c60988533cbfd9

meta-stx/recipes-core/stx-ha/sm.inc

index b59d416..c19b496 100644 (file)
@@ -24,10 +24,12 @@ RDEPENDS_sm += " \
        chkconfig \
        mtce-pmon \
        "
-#      aaa_base
 
 do_configure_append () {
-       :
+       # fix the hardcoded path
+       sed -i -e "s|/usr/local/sbin|${sbindir}|" \
+               ${S}/service-mgmt/sm-common/src/sm_types.h \
+               ${S}/service-mgmt/sm-common/src/sm_watchdog_nfs.c
 }
 
 do_compile_append() {