rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | inherit externalsrc package |
| 2 | |
| 3 | DESCRIPTION = "lynq-tcpcli demo" |
| 4 | LICENSE = "MediaTekProprietary" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 6 | DEPENDS += "platform-libs dbus glib-2.0 liblynq-log liblynq-broadcast" |
| 7 | inherit workonsrc |
| 8 | WORKONSRC = "${TOPDIR}/../src/lynq/packages/apps/lynq-tcpcli" |
| 9 | |
| 10 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 11 | |
| 12 | #Parameters passed to do_compile() |
| 13 | EXTRA_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" |
| 18 | do_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 | |
| 26 | do_install() { |
| 27 | install -d ${D}${bindir}/ |
| 28 | install -m 0755 ${S}/lynq-tcpcli ${D}${bindir}/ |
| 29 | #install -d ${D}${includedir} |
| 30 | } |