blob: de0ce854e54498e726bbc662e7211256fac533e1 [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "This module is used to provide AT command handler function interfaces for eemcs_mdlogger."
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
MTK_SRC = "${BACH_SRC}/libmdlogger_plugin"
MODEMINIT_OUT = "${WORKDIR}/out"
CROSS = "${TARGET_PREFIX}"
PROJECT = "${PROJ_NAME}"
WORKONSRC = "${MTK_SRC}"
DEPENDS="custom libatcputil"
INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/logger "
CFLAGS = "--sysroot ${STAGING_DIR_HOST}"
LDFLAGS = "--sysroot ${STAGING_DIR_HOST}"
inherit deploy workonsrc
FILES_${PN} = "${base_libdir}/atcp_plugin/libmdlogger_plugin.so \
${base_bindir} \
${base_libdir}/*.so"
FILES_${PN}-doc = "/doc"
FILES_${PN}-dev = "/test \
${includedir}"
FILES_${PN}-dbg = "/usr/src/debug \
${base_libdir}/atcp_plugin/.debug \
${base_bindir}/.debug \
${base_libdir}/.debug \
${base_sbindir}/.debug"
#Skip strip check in QA test.
INSANE_SKIP_${PN} += "already-stripped"
EXTRA_OEMAKE = "'CROSS=${CROSS}'\
'ROOT=${STAGING_DIR_HOST}'\
'PREFIX=${BACH_PREFIX}'\
'PACKAGE_ARCH=${PACKAGE_ARCH}'\
'BB_INCLUDE_ADD=${INCLUDE_ADD}'\
'BB_LDFLAGS_ADD=${LDFLAGS}'\
'BB_CFLAGS_ADD=${CFLAGS}'"
do_install () {
oe_runmake install ROOT=${D}
if [ -d "${D}/include" ]; then
install -d ${D}${includedir}
cp -af ${D}/include/* ${D}${includedir}
rm -rf ${D}/include
fi
}
addtask bachclean
do_bachclean() {
oe_runmake clean
}