lh | 69cf9f2 | 2023-04-28 04:17:38 -0700 | [diff] [blame] | 1 | inherit externalsrc package
|
| 2 |
|
| 3 | DESCRIPTION = "lynq call"
|
| 4 | LICENSE = "MobileTekProprietary"
|
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b1e07e8d88e26263e71d3a9e2aa9a2ff"
|
| 6 | DEPENDS += "libpal gstreamer1.0 glib-2.0 libapn liblynq-log libvendor-ril liblynq-shm libbinder"
|
| 7 | inherit workonsrc
|
| 8 | WORKONSRC = "${TOPDIR}/../src/lynq/lib/liblynq-call"
|
| 9 |
|
| 10 | TARGET_CC_ARCH += "${LDFLAGS}"
|
| 11 | BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
|
| 12 | BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
|
| 13 | #Parameters passed to do_compile()
|
| 14 | EXTRA_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 | FILES_${PN} = "${base_libdir}/*.so \
|
| 19 | ${base_bindir}\
|
| 20 | ${base_sbindir} \
|
| 21 | /etc/dbus-1/system.d/"
|
| 22 | FILES_${PN}-dev = "/test \
|
| 23 | ${includedir}"
|
| 24 | FILES_${PN}-doc = "/doc"
|
| 25 | FILES_${PN}-dbg ="${base_bindir}/.debug \
|
| 26 | ${base_libdir}/.debug \
|
| 27 | ${base_sbindir}/.debug"
|
| 28 | INSANE_SKIP_${PN} += "already-stripped"
|
| 29 | INSANE_SKIP_${PN} += "installed-vs-shipped"
|
| 30 | #INHIBIT_PACKAGE_STRIP = "1"
|
| 31 | do_compile () {
|
| 32 | if [ "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" ]; then
|
| 33 | oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -mfpu=neon-vfpv4 -mhard-float -Wl,--hash-style=gnu -DTELEPHONYWARE"
|
| 34 | elif [ "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4" ]; then
|
| 35 | oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -mfpu=neon-vfpv4 -mhard-float -Wl,--hash-style=gnu -DTELEPHONYWARE"
|
| 36 | elif [ "${PACKAGE_ARCH}" = "cortexa53hf-neon-fp-armv8" ]; then
|
| 37 | oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -mfpu=neon-vfpv4 -mhard-float -Wl,--hash-style=gnu -DTELEPHONYWARE -mhard-float -mfpu=neon-fp-armv8 -mfloat-abi=hard -mcpu=cortex-a53 -mtune=cortex-a53"
|
| 38 | else
|
| 39 | oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -Wl,--hash-style=gnu -DTELEPHONYWARE"
|
| 40 | fi
|
| 41 | }
|
| 42 |
|
| 43 | do_install() {
|
| 44 | oe_runmake install ROOT=${D}
|
| 45 | if [ -d "${WORKONSRC}" ] ; then
|
| 46 | install -d ${D}${includedir}
|
| 47 | cp -af ${S}/include/libcall/ ${D}${includedir}/libcall
|
| 48 | fi
|
| 49 | }
|