babak sarashki e6a7fff91e Staging starlingx
Added stx-config, stx-fault, and stx-metal.
2020-05-18 13:07:27 -07:00

32 lines
721 B
PHP

PACKAGES += " fm-mgr"
###################
# DEPENDS = " fm-common"
###################
do_compile_append() {
cd ${S}/fm-mgr/sources/
oe_runmake -e \
LDFLAGS="${LDFLAGS} -L${S}/fm-common/sources" \
CCFLAGS="${CXXFLAGS}" \
INCLUDES="-I. -I${S}/fm-common/sources" \
build
}
do_install_append () {
cd ${S}/fm-mgr/sources/
install -d -m0755 ${D}/${systemd_system_unitdir}
oe_runmake -e DESTDIR=${D} BINDIR=${bindir} \
LIBDIR=${libdir} UNITDIR=${systemd_system_unitdir} \
SYSCONFDIR=${sysconfdir} \
install
rm -rf ${D}/usr/lib/systemd
}
FILES_fm-mgr = " \
${bindir}/fmManager \
${systemd_system_unitdir}/fminit.service \
${sysconfdir}/init.d/fminit \
${sysconfdir}/logrotate.d/fm.logrotate \
"