blob: 371eecf05bf18a35bebf1de033f6658945d2c5bc [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "This module is used to provide AT command handler function interfaces for setting WB/NB FIR coefficient."
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
MTK_SRC = "${BACH_SRC}/libaudio_plugin"
MODEMINIT_OUT = "${WORKDIR}/out"
CROSS = "${TARGET_PREFIX}"
PROJECT = "${PROJ_NAME}"
WORKONSRC = "${MTK_SRC}"
DEPENDS="custom libatcputil libspeech-drv platform-libs"
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/libaudio_plugin.so \
${base_libdir}/*.so"
FILES_${PN}-doc = "/doc"
FILES_${PN}-dbg = "${base_libdir}/.debug \
/usr/src/debug \
${base_libdir}/atcp_plugin/.debug"
FILES_${PN}-dev = "/test \
/bin \
/test \
${includedir}"
#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
}