lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | DESCRIPTION = "libsofttimer" |
| 2 | SECTION = "lib" |
| 3 | LICENSE = "zte" |
| 4 | PV = "1.0.0" |
| 5 | PR = "r0" |
| 6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| 7 | #配置code路径信息。 |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame^] | 8 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:" |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 9 | SRC_URI = " \ |
| 10 | file://libsofttimer \ |
| 11 | " |
| 12 | |
| 13 | DEPENDS = "" |
| 14 | S = "${WORKDIR}" |
| 15 | #引用公用头文件和编译选项。 |
| 16 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 17 | |
| 18 | do_compile () { |
| 19 | make -C libsofttimer |
| 20 | } |
| 21 | |
| 22 | do_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 | #清库 |
| 37 | do_cleanlibs () { |
| 38 | rm -fv ${ELFS-PATH}/libsofttimer.so |
| 39 | rm -fv ${ELFS-PATH}/libsoft_timer.so |
| 40 | } |
| 41 | |
| 42 | addtask cleanlibs after do_clean before do_cleansstate |
| 43 | |
| 44 | FILES_${PN} += "${libdir}/*.so" |
| 45 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 46 | FILES_SOLIBSDEV = "" |
| 47 | INSANE_SKIP_${PN} = "dev-so" |