blob: 3f0fbb719e08bfad546a406e8963a84e872c5137 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESCRIPTION = "libril"
2DEPENDS = "libbinder libatchn libsoftap libnvram libsofttimer libatutils"
3SECTION = "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
31 install -m 0755 ${S}/ril/reference-ril/libreference-ril.so ${D}${libdir}/
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
36 install -m 0644 ${S}/ril/include/telephony/*.h ${D}/usr/include/telephony/
37 install -m 0644 ${S}/ril/libril/ril_ex.h ${D}/usr/include/libril/
38
39 #install elfs
40 install -d ${ELFS-PATH}/
41 install -m 0755 ${S}/ril/reference-ril/libreference-ril.so ${ELFS-PATH}/
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#清库
48do_cleanlibs () {
49 rm -fr ${ELFS-PATH}/libreference-ril.so
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包含的文件
57FILES_${PN} += "${libdir}/*.so"
58FILES_${PN}-dbg += "${libdir}/.debug"
59FILES_SOLIBSDEV = ""
60INSANE_SKIP_${PN} = "dev-so"
61RDEPENDS_${PN} = "libbinder libatchn libsoftap libnvram libsofttimer libatutils"