blob: d5a53678b3c43b07066a44a33c293c7fc90ae0aa [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESCRIPTION = "libreference-ril"
xf.li742dd022023-06-08 01:43:32 -07002DEPENDS = "libatchn libsoftap libnvram libsofttimer libatutils libtinyalsa libvoice libmedia"
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/reference-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
30 install -m 0755 ${S}/ril/reference-ril/libreference-ril.so ${D}${libdir}/
31
lh758261d2023-07-13 05:52:04 -070032 install -m 0644 ${S}/ril/include/telephony/*.h ${D}/usr/include/telephony/
lh9ed821d2023-04-07 01:36:19 -070033
34 #install elfs
35 install -d ${ELFS-PATH}/
36 install -m 0755 ${S}/ril/reference-ril/libreference-ril.so ${ELFS-PATH}/
37}
38
39#清库
40do_cleanlibs () {
41 rm -fr ${ELFS-PATH}/libreference-ril.so
42}
43
44#rootfs包含的文件
45FILES_${PN} += "${libdir}/*.so"
46FILES_${PN}-dbg += "${libdir}/.debug"
47FILES_SOLIBSDEV = ""
48INSANE_SKIP_${PN} = "dev-so"
xf.li138ae442023-06-21 07:01:10 -070049RDEPENDS_${PN} = "libatchn libsoftap libnvram libsofttimer libatutils libtinyalsa libvoice libmedia"