lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | DESCRIPTION = "libreference-ril" |
| 2 | DEPENDS = "libatchn libsoftap libnvram libsofttimer libatutils" |
| 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路径信息。 |
| 10 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}:" |
| 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/reference-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 | |
| 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 | #清库 |
| 40 | do_cleanlibs () { |
| 41 | rm -fr ${ELFS-PATH}/libreference-ril.so |
| 42 | } |
| 43 | |
| 44 | #rootfs包含的文件 |
| 45 | FILES_${PN} += "${libdir}/*.so" |
| 46 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 47 | FILES_SOLIBSDEV = "" |
| 48 | INSANE_SKIP_${PN} = "dev-so" |
| 49 | RDEPENDS_${PN} = "libatchn libsoftap libnvram libsofttimer libatutils" |