| inherit externalsrc package |
| |
| DESCRIPTION = "telephony demo" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| DEPENDS += "platform-libs audio-mixer-ctrl libvendor-ril libpal gstreamer1.0 glib-2.0 dtmf libapn dbus" |
| inherit workonsrc |
| WORKONSRC = "${TOPDIR}/../src/telephony/tel-demo/src" |
| |
| TARGET_CC_ARCH += "${LDFLAGS}" |
| |
| #Parameters passed to do_compile() |
| EXTRA_OEMAKE = "'RAT_CONFIG_C2K_SUPPORT = ${RAT_CONFIG_C2K_SUPPORT}'\ |
| 'MTK_MULTI_SIM_SUPPORT = ${MTK_MULTI_SIM_SUPPORT}'\ |
| 'TARGET_PLATFORM = ${TARGET_PLATFORM}'" |
| |
| FILES_${PN} = "/system/etc/tele/ring ${bindir} " |
| |
| #INHIBIT_PACKAGE_STRIP = "1" |
| do_compile () { |
| if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then |
| oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float" |
| else |
| oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST}" |
| fi |
| } |
| |
| do_install() { |
| install -d ${D}${bindir}/ |
| install -m 0755 ${S}/telephony ${D}${bindir}/ |
| install -d ${D}${includedir} |
| install ${S}/atci/ATCI.h ${D}${includedir} |
| cp -R ${S}/demoscript ${D}${bindir}/ |
| chmod 600 ${D}${bindir}/demoscript/SMS_API/custerm_message.txt |
| if test "${TARGET_PLATFORM}" = "mt2731"; then |
| install -d ${D}/system/etc/tele/ring |
| cp -R ${TOPDIR}/../src/telephony/tel-demo/ringtone/*.wav ${D}/system/etc/tele/ring |
| fi |
| } |