xf.li | 7ccf837 | 2024-03-07 00:08:02 -0800 | [diff] [blame^] | 1 | DESCRIPTION = "libscrtc" |
| 2 | DEPENDS = "libscipc libsofttimer libsoftap libnvram" |
| 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}/sdk:" |
| 11 | SRC_URI = " \ |
| 12 | file://libscrtc \ |
| 13 | " |
| 14 | |
| 15 | S = "${WORKDIR}" |
| 16 | #引用公用头文件和编译选项。 |
| 17 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 18 | CFLAGS_append = "-I ${BSPDIR}/zxic_code/zxic_source/zxic_app_open/platform/at_ctl/inc" |
| 19 | |
| 20 | do_compile () { |
| 21 | make -C libscrtc |
| 22 | } |
| 23 | |
| 24 | do_install () { |
| 25 | install -d ${D}${libdir}/ |
| 26 | install -d ${D}/usr/include |
| 27 | |
| 28 | install -m 0755 ${S}/libscrtc/libscrtc.so ${D}${libdir}/ |
| 29 | install -m 0755 ${S}/libscrtc/libscrtc.a ${D}${libdir}/ |
| 30 | |
| 31 | install -m 0644 ${S}/libscrtc/*.h ${D}/usr/include/ |
| 32 | |
| 33 | #install elfs |
| 34 | install -d ${ELFS-PATH}/ |
| 35 | install -m 0755 ${S}/libscrtc/libscrtc.so ${ELFS-PATH}/ |
| 36 | } |
| 37 | |
| 38 | #清库 |
| 39 | do_cleanlibs () { |
| 40 | rm -fr ${ELFS-PATH}/libscrtc.so |
| 41 | } |
| 42 | |
| 43 | FILES_${PN} += "${libdir}/*.so" |
| 44 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 45 | FILES_SOLIBSDEV = "" |
| 46 | INSANE_SKIP_${PN} = "dev-so" |
| 47 | RDEPENDS_${PN} = " libscipc libsofttimer libsoftap libnvram" |