blob: ec873b581d3d0aca1bda9737c7e4a545d2e2c1ff [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "This module is used to provide a library for libaudio_plugin."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6MTK_SRC = "${BACH_SRC}/libmodem-afe-ctrl"
7MODEMINIT_OUT = "${WORKDIR}/out"
8CROSS = "${TARGET_PREFIX}"
9PROJECT = "${PROJ_NAME}"
10WORKONSRC = "${MTK_SRC}"
11
12DEPENDS="alsa-lib audio-mixer-ctrl bachinit"
13
14INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/logger "
15CFLAGS = "--sysroot ${STAGING_DIR_HOST} -lasound -lmtk_audio_mixer_ctrl"
16LDFLAGS = "--sysroot ${STAGING_DIR_HOST}"
17
18
19inherit deploy workonsrc
20
21FILES_${PN} = "${base_libdir}/libmodemafectrl.so \
22 ${base_libdir}/*.so"
23
24FILES_${PN}-doc = "/doc"
25
26FILES_${PN}-dbg = "${base_libdir}/.debug \
27 /usr/src/debug \
28 ${base_libdir}/.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 'TARGET_PLATFORM=${TARGET_PLATFORM}'"
48
49do_install () {
50 oe_runmake install ROOT=${D}
51
52 if [ -d "${D}/include" ]; then
53 install -d ${D}${includedir}
54 cp -af ${D}/include/* ${D}${includedir}
55 rm -rf ${D}/include
56 fi
57 install -d ${D}${includedir}
58 install -m 0644 ${S}/include/modem_afe_ctrl.h ${D}${includedir}/
59
60}
61
62addtask bachclean
63do_bachclean() {
64 oe_runmake clean
65}
66
67
68