blob: 9ad82696561f59e0f91e7cafdd5012124b0cadee [file] [log] [blame]
lh69cf9f22023-04-28 04:17:38 -07001inherit externalsrc package
2
3DESCRIPTION = "lynq call"
4LICENSE = "MobileTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=b1e07e8d88e26263e71d3a9e2aa9a2ff"
6DEPENDS += "libpal gstreamer1.0 glib-2.0 libapn liblynq-log libvendor-ril liblynq-shm libbinder"
7inherit workonsrc
8WORKONSRC = "${TOPDIR}/../src/lynq/lib/liblynq-call"
9
10TARGET_CC_ARCH += "${LDFLAGS}"
11BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
12BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
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
18FILES_${PN} = "${base_libdir}/*.so \
19 ${base_bindir}\
20 ${base_sbindir} \
21 /etc/dbus-1/system.d/"
22FILES_${PN}-dev = "/test \
23 ${includedir}"
24FILES_${PN}-doc = "/doc"
25FILES_${PN}-dbg ="${base_bindir}/.debug \
26 ${base_libdir}/.debug \
27 ${base_sbindir}/.debug"
28INSANE_SKIP_${PN} += "already-stripped"
29INSANE_SKIP_${PN} += "installed-vs-shipped"
30#INHIBIT_PACKAGE_STRIP = "1"
31do_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
43do_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}