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