blob: a86fb5ab370772fd469fce4393405def06c33129 [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "This module a Modem control utility daemon used to create socket or control multiple channels from one channel."
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS = "custom libatch platform-libs"
MTK_SRC = "${BACH_SRC}/libatmux"
WORKONSRC = "${MTK_SRC}"
BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger"
BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
inherit deploy workonsrc
#Parameters passed to do_compile()
EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
'PROJECT=${PROJ}'\
'PREFIX=${BACH_PREFIX}'\
'PACKAGE_ARCH=${PACKAGE_ARCH}'\
'ROOT=${STAGING_DIR_HOST}'\
'PLATFORM_CHIP=${PLATFORM_CHIP}'\
'PRODUCT_MODE=${PRODUCT_MODE}'\
'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\
'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
FILES_${PN} = "${base_libdir}/libatmux.so \
${base_bindir}/atmux.elf \
/etc/init.d/atmuxd "
FILES_${PN}-dev = "/test \
${includedir}"
FILES_${PN}-staticdev = "${base_libdir}/libatmux.a"
FILES_${PN}-doc = "/doc"
FILES_${PN}-dbg = "/usr/src/debug \
${base_bindir}/.debug"
#Skip strip check in QA test.
INSANE_SKIP_${PN} += "already-stripped"
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
}