| #Basic Configuration |
| DESCRIPTION = "This module is used to provide a library for libaudio_plugin." |
| SECTION = "base" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| MTK_SRC = "${TOPDIR}/../src/bach/build.bach/work/libmodem-afe-ctrl" |
| MODEMINIT_OUT = "${WORKDIR}/out" |
| CROSS = "${TARGET_PREFIX}" |
| PROJECT = "${PROJ_NAME}" |
| WORKONSRC = "${MTK_SRC}" |
| |
| DEPENDS="alsa-lib audio-mixer-ctrl bach-init" |
| |
| INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/logger " |
| CFLAGS = "--sysroot ${STAGING_DIR_HOST} -lasound -lmtk_audio_mixer_ctrl" |
| LDFLAGS = "--sysroot ${STAGING_DIR_HOST}" |
| |
| |
| inherit deploy workonsrc |
| |
| FILES_${PN} = "${base_libdir}/libmodemafectrl.so \ |
| ${base_libdir}/*.so" |
| |
| FILES_${PN}-doc = "/doc" |
| |
| FILES_${PN}-dbg = "${base_libdir}/.debug \ |
| /usr/src/debug \ |
| ${base_libdir}/.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}'\ |
| 'TARGET_PLATFORM=${TARGET_PLATFORM}'" |
| |
| 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 |
| install -d ${D}${includedir} |
| install -m 0644 ${S}/include/modem_afe_ctrl.h ${D}${includedir}/ |
| |
| } |
| |
| addtask bachclean |
| do_bachclean() { |
| oe_runmake clean |
| } |
| |
| |
| |