blob: 892ded5fe1d9af1beb676565dd2013a3bdb20251 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESCRIPTION = "libreference-ril"
2DEPENDS = "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路径信息。
10FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}:"
11SRC_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
32 install -m 0644 ${S}/ril/include/telephony/*.h ${D}/usr/include/telephony/
33
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"
49RDEPENDS_${PN} = "libatchn libsoftap libnvram libsofttimer libatutils"