blob: ee0a720f18fd804e74b3a0fd23eff3f7a07011c1 [file] [log] [blame]
#Basic Configuration
DESCRIPTION = "sms manager."
SECTION = "base"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
DEPENDS = "libcmapi libsncfg libmwkal platform-libs"
MTK_SRC = "${BACH_SRC}/smsd"
WORKONSRC = "${MTK_SRC}"
BB_INCLUDE_ADD = "--sysroot=${STAGING_INCDIR} -I${STAGING_INCDIR}/logger -I${STAGING_INCDIR}/mw_kal"
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}'\
'ARCH_SUPER_DONGLE=TRUE'\
'LIBPATH=${STAGING_DIR_HOST}'\
'PREFIX=${BACH_PREFIX}'\
'PACKAGE_ARCH=${PACKAGE_ARCH}'\
'PLATFORM_CHIP=${PLATFORM_CHIP}'\
'PRODUCT_MODE=${PRODUCT_MODE}'\
'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\
'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'"
FILES_${PN} = "${base_libdir}/*.so\
${base_bindir}\
${base_sbindir}\
/mnt\
/tmp\
/etc\
/usr\
/test"
FILES_${PN}-dev = "${includedir}"
FILES_${PN}-staticdev = "${base_libdir}/*.a"
FILES_${PN}-doc = "/doc"
#Skip strip check in QA test.
INSANE_SKIP_${PN} += "already-stripped"
INSANE_SKIP_${PN} += "installed-vs-shipped"
do_compile () {
unset LDFLAGS
if [ "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" ]; then
oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="-g -fPIC -mhard-float"
elif [ "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4" ]; then
oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="-g -fPIC -mhard-float"
else
oe_runmake all ROOT=${STAGING_DIR_HOST}
fi
}
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
}