lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | DESCRIPTION = "libril" |
lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 2 | DEPENDS = "libbinder libatchn libsoftap libnvram libsofttimer libatutils libtinyalsa libvoice libmedia libreference-ril" |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 3 | SECTION = "lib" |
| 4 | LICENSE = "zte" |
| 5 | PV = "1.0.0" |
| 6 | PR = "r0" |
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| 8 | |
| 9 | #配置code路径信息。 |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 10 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:" |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 11 | SRC_URI = " \ |
| 12 | file://ril \ |
| 13 | " |
| 14 | |
| 15 | S = "${WORKDIR}" |
| 16 | #引用公用头文件和编译选项。 |
| 17 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 18 | |
| 19 | #编译 |
| 20 | do_compile () { |
| 21 | make -C ril |
| 22 | } |
| 23 | |
| 24 | #库和头文件的安装 |
| 25 | do_install () { |
| 26 | install -d ${D}${libdir}/ |
| 27 | install -d ${D}/usr/include |
| 28 | install -d ${D}/usr/include/telephony |
| 29 | install -d ${D}/usr/include/libril |
| 30 | |
xf.li | 138ae44 | 2023-06-21 07:01:10 -0700 | [diff] [blame] | 31 | #install -m 0755 ${S}/ril/reference-ril/libreference-ril.so ${D}${libdir}/ |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 32 | install -m 0755 ${S}/ril/libril/libril.so ${D}${libdir}/ |
| 33 | install -m 0755 ${S}/ril/librilutils/librilutils.so ${D}${libdir}/ |
| 34 | install -m 0755 ${S}/ril/nanopb-c/libprotobuf-c-nano-enable_malloc.so ${D}${libdir}/ |
| 35 | |
lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 36 | #install -m 0644 ${S}/ril/include/telephony/*.h ${D}/usr/include/telephony/ |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 37 | install -m 0644 ${S}/ril/libril/ril_ex.h ${D}/usr/include/libril/ |
| 38 | |
| 39 | #install elfs |
| 40 | install -d ${ELFS-PATH}/ |
lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 41 | #install -m 0755 ${S}/ril/reference-ril/libreference-ril.so ${ELFS-PATH}/ |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 42 | install -m 0755 ${S}/ril/libril/libril.so ${ELFS-PATH}/ |
| 43 | install -m 0755 ${S}/ril/librilutils/librilutils.so ${ELFS-PATH}/ |
| 44 | install -m 0755 ${S}/ril/nanopb-c/libprotobuf-c-nano-enable_malloc.so ${ELFS-PATH}/ |
| 45 | } |
| 46 | |
| 47 | #清库 |
| 48 | do_cleanlibs () { |
lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 49 | #rm -fr ${ELFS-PATH}/libreference-ril.so |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 50 | rm -fr ${ELFS-PATH}/libril.so |
| 51 | rm -fr ${ELFS-PATH}/librilutils.so |
| 52 | rm -fr ${ELFS-PATH}/libprotobuf-c-nano-enable_malloc.so |
| 53 | |
| 54 | } |
| 55 | |
| 56 | #rootfs包含的文件 |
| 57 | FILES_${PN} += "${libdir}/*.so" |
| 58 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 59 | FILES_SOLIBSDEV = "" |
| 60 | INSANE_SKIP_${PN} = "dev-so" |
lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 61 | RDEPENDS_${PN} = "libbinder libatchn libsoftap libnvram libsofttimer libatutils libtinyalsa libvoice libmedia libreference-ril" |