sm: fix rebuild errors 15/3515/1
authorJackie Huang <jackie.huang@windriver.com>
Tue, 28 Apr 2020 14:42:54 +0000 (22:42 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Tue, 28 Apr 2020 14:42:54 +0000 (22:42 +0800)
Do the oe_runmake clean before do_compile to ensure
rebuild without errors.

Issue-ID: INF-44
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ib23c832383b1c37e81519e52edf2043cc10bbee0

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

index 0b4ec9a..bdbcf76 100644 (file)
@@ -28,7 +28,8 @@ RDEPENDS_libsm-common = " sm-common-libs"
 
 
 do_configure_prepend () {
-       :
+       cd ${S}/service-mgmt/sm-common/src
+       oe_runmake clean
 } 
 
 do_compile_prepend () {
@@ -47,9 +48,6 @@ do_install_prepend () {
  
        cd ${S}/service-mgmt/sm-common/
        install -d -m 755 ${D}/${systemd_system_unitdir}
-       # install -m 755 -d ${D}/${sysconfdir}/pmon.d
-       # install -m 755 -d ${D}/${sysconfdir}/init.d
-
        install -m 644 -p -D scripts/sm-eru.service ${D}/${systemd_system_unitdir}/sm-eru.service
        install -m 644 -p -D scripts/sm-watchdog.service ${D}/${systemd_system_unitdir}/sm-watchdog.service
 
index b8e9923..4027fe3 100644 (file)
@@ -18,7 +18,9 @@ PACKAGES += " sm-db"
 DEPENDS =+ "sqlite3-native"
 
 do_configure_append () {
-       :
+       cd ${S}/service-mgmt/sm-db
+       oe_runmake clean
+       rm -rf database/sm.db database/sm.hb.db
 } 
 
 do_compile_append () {
index c19b496..d8488e2 100644 (file)
@@ -26,6 +26,9 @@ RDEPENDS_sm += " \
        "
 
 do_configure_append () {
+       cd ${S}/service-mgmt/sm/src
+       oe_runmake clean
+
        # fix the hardcoded path
        sed -i -e "s|/usr/local/sbin|${sbindir}|" \
                ${S}/service-mgmt/sm-common/src/sm_types.h \