2 ## Copyright (C) 2019 Wind River Systems, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 PACKAGES += " fm-common"
17 RDEPENDS_fm-common = " python"
19 do_configure_append () {
20 cd ${S}/fm-common/sources
22 # fix the hardcoded path
23 sed -i -e 's|/usr/local/bin|${bindir}|' fmConstants.h
25 distutils_do_configure
29 cd ${S}/fm-common/sources
30 oe_runmake -e BINDIR=${bindir} \
33 CCFLAGS="${CXXFLAGS} ${CCSHARED}" \
34 LIBDIR=${libdir} INCDIR=${includedir} \
35 CGCS_DOC_DEPLOY=${cgcs_doc_deploy}
40 cd ${S}/fm-common/sources
41 oe_runmake -e DESTDIR=${D} BINDIR=${bindir} \
42 LIBDIR=${libdir} INCDIR=${includedir} \
43 CGCS_DOC_DEPLOY=${cgcs_doc_deploy} install
49 ${cgcs_doc_deploy}/fmAlarm.h \
50 ${bindir}/fm_db_sync_event_suppression.py \
51 ${bindir}/fmClientCli \
52 ${libdir}/python2.7/site-packages/fm_core*.egg-info \
53 ${libdir}/python2.7/site-packages/fm_core.so \
54 ${libdir}/libfmcommon.so.1.0 \
55 ${libdir}/libfmcommon.so.1 \
56 ${includedir}/fmConfig.h \
57 ${includedir}/fmLog.h \
58 ${includedir}/fmThread.h \
59 ${includedir}/fmDbAPI.h \
60 ${includedir}/fmAPI.h \
61 ${includedir}/fmAlarm.h \