blob: 245b5f870a144a88c9198050779d989b766f1c97 [file] [log] [blame]
ritaef2512f2023-05-19 16:40:44 +08001inherit externalsrc package
2
3DESCRIPTION = "lynq sim"
4LICENSE = "MobileTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6DEPENDS += "libpal gstreamer1.0 glib-2.0 libapn liblynq-log libvendor-ril liblynq-shm libbinder"
7inherit workonsrc
8WORKONSRC = "${TOPDIR}/../src/lynq/lib/liblynq-sim/"
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}"
24
25FILES_${PN}-doc = "/doc"
26
27FILES_${PN}-dbg ="${base_bindir}/.debug \
28 ${base_libdir}/.debug \
29 ${base_sbindir}/.debug"
30
31INSANE_SKIP_${PN} += "already-stripped"
32INSANE_SKIP_${PN} += "installed-vs-shipped"
33
34
35#INHIBIT_PACKAGE_STRIP = "1"
36do_compile () {
37 if [ "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" ]; then
38 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -mfpu=neon-vfpv4 -mhard-float -Wl,--hash-style=gnu -DTELEPHONYWARE"
39 elif [ "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4" ]; then
40 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -mfpu=neon-vfpv4 -mhard-float -Wl,--hash-style=gnu -DTELEPHONYWARE"
41 elif [ "${PACKAGE_ARCH}" = "cortexa53hf-neon-fp-armv8" ]; then
42 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"
43 else
44 oe_runmake all ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -Wl,--hash-style=gnu -DTELEPHONYWARE"
45 fi
46}
47
48do_install () {
49 oe_runmake install ROOT=${D}
50
51 if [ -d "${WORKONSRC}" ] ; then
52 install -d ${D}${includedir}/
53 cp -af ${S}/include/ ${D}${includedir}/
54 fi
55}
56
57addtask bachclean
58do_bachclean () {
59 oe_runmake clean
60}