blob: c50c362b71b810fd16b607df37d019bd32d6dea6 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESCRIPTION = "libsofttimer"
2SECTION = "lib"
3LICENSE = "zte"
4PV = "1.0.0"
5PR = "r0"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
7#配置code路径信息。
xf.libdd93d52023-05-12 07:10:14 -07008FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:"
lh9ed821d2023-04-07 01:36:19 -07009SRC_URI = " \
10 file://libsofttimer \
11 "
12
13DEPENDS = ""
14S = "${WORKDIR}"
15#引用公用头文件和编译选项。
16include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
17
18do_compile () {
19 make -C libsofttimer
20}
21
22do_install () {
23 install -d ${D}${libdir}/
24 install -d ${D}/usr/include
25 install -m 0755 ${S}/libsofttimer/libsofttimer.so ${D}${libdir}/
26 install -m 0755 ${S}/libsofttimer/libsofttimer.a ${D}${libdir}/
27 ln -s -r ${D}${libdir}/libsofttimer.a ${D}${libdir}/libsoft_timer.a
28 ln -s -r ${D}${libdir}/libsofttimer.so ${D}${libdir}/libsoft_timer.so
29 install -m 0644 ${S}/libsofttimer/soft_timer.h ${D}/usr/include/
30
31 install -d ${ELFS-PATH}/
32 install -m 0755 ${S}/libsofttimer/libsofttimer.so ${ELFS-PATH}/
33 rm -fv ${ELFS-PATH}/libsoft_timer.so && ln -s -r ${ELFS-PATH}/libsofttimer.so ${ELFS-PATH}/libsoft_timer.so
34}
35
36#清库
37do_cleanlibs () {
38 rm -fv ${ELFS-PATH}/libsofttimer.so
39 rm -fv ${ELFS-PATH}/libsoft_timer.so
40}
41
42addtask cleanlibs after do_clean before do_cleansstate
43
44FILES_${PN} += "${libdir}/*.so"
45FILES_${PN}-dbg += "${libdir}/.debug"
46FILES_SOLIBSDEV = ""
47INSANE_SKIP_${PN} = "dev-so"