blob: 8b228765275d5e97f422127d7a1e001f9cbffa4d [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESCRIPTION = "libril"
lh758261d2023-07-13 05:52:04 -07002DEPENDS = "libbinder libatchn libsoftap libnvram libsofttimer libatutils libtinyalsa libvoice libmedia libreference-ril"
lh9ed821d2023-04-07 01:36:19 -07003SECTION = "lib"
4LICENSE = "zte"
5PV = "1.0.0"
6PR = "r0"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
8
9#配置code路径信息。
xf.libdd93d52023-05-12 07:10:14 -070010FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:"
lh9ed821d2023-04-07 01:36:19 -070011SRC_URI = " \
12 file://ril \
13 "
14
15S = "${WORKDIR}"
16#引用公用头文件和编译选项。
17include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
18
19#编译
20do_compile () {
21 make -C ril
22}
23
24#库和头文件的安装
25do_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.li138ae442023-06-21 07:01:10 -070031 #install -m 0755 ${S}/ril/reference-ril/libreference-ril.so ${D}${libdir}/
lh9ed821d2023-04-07 01:36:19 -070032 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
lh758261d2023-07-13 05:52:04 -070036 #install -m 0644 ${S}/ril/include/telephony/*.h ${D}/usr/include/telephony/
lh9ed821d2023-04-07 01:36:19 -070037 install -m 0644 ${S}/ril/libril/ril_ex.h ${D}/usr/include/libril/
38
39 #install elfs
40 install -d ${ELFS-PATH}/
lh758261d2023-07-13 05:52:04 -070041 #install -m 0755 ${S}/ril/reference-ril/libreference-ril.so ${ELFS-PATH}/
lh9ed821d2023-04-07 01:36:19 -070042 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#清库
48do_cleanlibs () {
lh758261d2023-07-13 05:52:04 -070049 #rm -fr ${ELFS-PATH}/libreference-ril.so
lh9ed821d2023-04-07 01:36:19 -070050 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包含的文件
57FILES_${PN} += "${libdir}/*.so"
58FILES_${PN}-dbg += "${libdir}/.debug"
59FILES_SOLIBSDEV = ""
60INSANE_SKIP_${PN} = "dev-so"
lh758261d2023-07-13 05:52:04 -070061RDEPENDS_${PN} = "libbinder libatchn libsoftap libnvram libsofttimer libatutils libtinyalsa libvoice libmedia libreference-ril"