lichengzhang | 29fc2fa | 2023-08-02 23:20:48 -0700 | [diff] [blame] | 1 | #inherit externalsrc package
|
| 2 |
|
| 3 | DESCRIPTION = "liblynq-qser-gnss"
|
| 4 | LICENSE = "CLOSED"
|
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3f86c7f456a6d0bbeca155e65084eee1"
|
xf.li | 7ccf837 | 2024-03-07 00:08:02 -0800 | [diff] [blame^] | 6 | DEPENDS += "liblynq-log libxml2 liblynq-uci libsctel libscrtc libbsp"
|
lichengzhang | 29fc2fa | 2023-08-02 23:20:48 -0700 | [diff] [blame] | 7 | #inherit workonsrc
|
| 8 | WORKONSRC = "${TOPDIR}/../src/lynq/lib/liblynq-qser-gnss/"
|
| 9 | FILESEXTRAPATHS_prepend :="${TOPDIR}/../src/lynq/lib/:"
|
| 10 | SRC_URI = " \
|
| 11 | file://liblynq-qser-gnss\
|
| 12 | "
|
| 13 |
|
| 14 | SRC-DIR = "${S}/../liblynq-qser-gnss"
|
| 15 |
|
| 16 | TARGET_CC_ARCH += "${LDFLAGS}"
|
| 17 | BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST}"
|
| 18 | BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST} -Wl,--hash-style=gnu"
|
| 19 |
|
lichengzhang | f492f9d | 2024-02-22 14:53:41 +0800 | [diff] [blame] | 20 | EXTRA_OEMAKE += "'MOBILETEK_GNSS_TYPE = ${MOBILETEK_GNSS_TYPE}'"
|
| 21 |
|
| 22 | EXTRA_OEMAKE += "'TARGET_PLATFORM = ${TARGET_PLATFORM}'"
|
| 23 |
|
lichengzhang | e48d5e5 | 2023-10-08 20:27:43 -0700 | [diff] [blame] | 24 | FILES_${PN} += "${bindir} /data/gnss_update"
|
lichengzhang | e48d5e5 | 2023-10-08 20:27:43 -0700 | [diff] [blame] | 25 | FILES_${PN} += "${base_libdir}/*.so "
|
lichengzhang | 29fc2fa | 2023-08-02 23:20:48 -0700 | [diff] [blame] | 26 | FILES_${PN}-dev = "/test \
|
| 27 | ${includedir}"
|
| 28 |
|
| 29 | FILES_${PN}-doc = "/doc"
|
| 30 |
|
| 31 | FILES_${PN}-dbg ="${base_bindir}/.debug \
|
| 32 | ${base_libdir}/.debug \
|
| 33 | ${base_sbindir}/.debug"
|
| 34 |
|
| 35 | INSANE_SKIP_${PN} += "already-stripped"
|
| 36 | INSANE_SKIP_${PN} += "installed-vs-shipped"
|
| 37 |
|
| 38 |
|
| 39 | #INHIBIT_PACKAGE_STRIP = "1"
|
| 40 | do_compile () {
|
lichengzhang | d1b79a7 | 2023-10-09 03:15:57 -0700 | [diff] [blame] | 41 | oe_runmake all -C ${SRC-DIR} ROOT=${STAGING_DIR_HOST} OFLAGS="--sysroot=${STAGING_DIR_HOST} -Os -Wl,--hash-style=gnu -DTELEPHONYWARE"
|
lichengzhang | 29fc2fa | 2023-08-02 23:20:48 -0700 | [diff] [blame] | 42 | }
|
| 43 |
|
| 44 | do_install () {
|
| 45 | oe_runmake install -C ${SRC-DIR} ROOT=${D}
|
lichengzhang | d1b79a7 | 2023-10-09 03:15:57 -0700 | [diff] [blame] | 46 |
|
lichengzhang | 29fc2fa | 2023-08-02 23:20:48 -0700 | [diff] [blame] | 47 | if [ -d "${WORKONSRC}" ] ; then
|
| 48 | install -d ${D}${includedir}/
|
| 49 | cp -raf ${SRC-DIR}/include/ ${D}${includedir}/
|
lichengzhang | e48d5e5 | 2023-10-08 20:27:43 -0700 | [diff] [blame] | 50 | install -d ${D}/data/gnss_update
|
lichengzhang | d1b79a7 | 2023-10-09 03:15:57 -0700 | [diff] [blame] | 51 | install -m 644 ${WORKONSRC}UC6228CI-R3.2.10.100Build8019_mfg.pkg ${D}/data/gnss_update
|
lichengzhang | e48d5e5 | 2023-10-08 20:27:43 -0700 | [diff] [blame] | 52 | install -m 644 ${WORKONSRC}bootloader_r3.0.0_build6773_uartboot_921600.pkg ${D}/data/gnss_update
|
lichengzhang | d1b79a7 | 2023-10-09 03:15:57 -0700 | [diff] [blame] | 53 | install -m 644 ${WORKONSRC}agps.conf ${D}/data/gnss_update
|
lichengzhang | e48d5e5 | 2023-10-08 20:27:43 -0700 | [diff] [blame] | 54 | ln -sf ./UC6228CI-R3.2.10.100Build8019_mfg.pkg ${D}/data/gnss_update/firmware.pkg
|
| 55 | ln -sf ./bootloader_r3.0.0_build6773_uartboot_921600.pkg ${D}/data/gnss_update/bootloader.pkg
|
lichengzhang | 29fc2fa | 2023-08-02 23:20:48 -0700 | [diff] [blame] | 56 | fi
|
| 57 | }
|
| 58 |
|
| 59 | addtask bachclean
|
| 60 | do_bachclean () {
|
| 61 | oe_runmake clean
|
| 62 | }
|