blob: c99499742636b6eb3d0364134b65f67052150a09 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001inherit externalsrc package
2
3DESCRIPTION = "telephony demo"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS += "platform-libs audio-mixer-ctrl libvendor-ril libpal gstreamer1.0 glib-2.0 dtmf libapn dbus"
7inherit workonsrc
8WORKONSRC = "${TOPDIR}/../src/telephony/multi-user-test/src"
9
10TARGET_CC_ARCH += "${LDFLAGS}"
11
12#Parameters passed to do_compile()
13EXTRA_OEMAKE = "'RAT_CONFIG_C2K_SUPPORT = ${RAT_CONFIG_C2K_SUPPORT}'\
14 'MTK_MULTI_SIM_SUPPORT = ${MTK_MULTI_SIM_SUPPORT}'\
15 'TARGET_PLATFORM = ${TARGET_PLATFORM}'"
16
17#INHIBIT_PACKAGE_STRIP = "1"
18do_compile () {
19 if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then
20 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -mhard-float"
21 else
22 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST}"
23 fi
24}
25
26do_install() {
27 install -d ${D}${bindir}/
28 install -m 0755 ${S}/multi-user-test ${D}${bindir}/
29}