blob: 371eecf05bf18a35bebf1de033f6658945d2c5bc [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "This module is used to provide AT command handler function interfaces for setting WB/NB FIR coefficient."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6MTK_SRC = "${BACH_SRC}/libaudio_plugin"
7MODEMINIT_OUT = "${WORKDIR}/out"
8CROSS = "${TARGET_PREFIX}"
9PROJECT = "${PROJ_NAME}"
10WORKONSRC = "${MTK_SRC}"
11
12DEPENDS="custom libatcputil libspeech-drv platform-libs"
13
14INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/logger "
15CFLAGS = "--sysroot ${STAGING_DIR_HOST}"
16LDFLAGS = "--sysroot ${STAGING_DIR_HOST}"
17
18
19inherit deploy workonsrc
20
21FILES_${PN} = "${base_libdir}/atcp_plugin/libaudio_plugin.so \
22 ${base_libdir}/*.so"
23
24FILES_${PN}-doc = "/doc"
25
26FILES_${PN}-dbg = "${base_libdir}/.debug \
27 /usr/src/debug \
28 ${base_libdir}/atcp_plugin/.debug"
29
30FILES_${PN}-dev = "/test \
31 /bin \
32 /test \
33 ${includedir}"
34
35
36#Skip strip check in QA test.
37INSANE_SKIP_${PN} += "already-stripped"
38
39
40EXTRA_OEMAKE = "'CROSS=${CROSS}'\
41 'ROOT=${STAGING_DIR_HOST}'\
42 'PREFIX=${BACH_PREFIX}'\
43 'PACKAGE_ARCH=${PACKAGE_ARCH}'\
44 'BB_INCLUDE_ADD=${INCLUDE_ADD}'\
45 'BB_LDFLAGS_ADD=${LDFLAGS}'\
46 'BB_CFLAGS_ADD=${CFLAGS}'"
47
48do_install () {
49 oe_runmake install ROOT=${D}
50
51 if [ -d "${D}/include" ]; then
52 install -d ${D}${includedir}
53 cp -af ${D}/include/* ${D}${includedir}
54 rm -rf ${D}/include
55 fi
56}
57
58addtask bachclean
59do_bachclean() {
60 oe_runmake clean
61}
62
63
64