xf.li | 742dd02 | 2023-06-08 01:43:32 -0700 | [diff] [blame^] | 1 | DESCRIPTION = "libsclog"
|
| 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 |
|
| 8 | #配置code路径信息。
|
| 9 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:"
|
| 10 | SRC_URI = " \
|
| 11 | file://libsclog \
|
| 12 | "
|
| 13 |
|
| 14 | S = "${WORKDIR}"
|
| 15 | #引用公用头文件和编译选项。
|
| 16 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
|
| 17 |
|
| 18 | #编译
|
| 19 | do_compile () {
|
| 20 | make -C libsclog
|
| 21 | }
|
| 22 |
|
| 23 | #库和头文件的安装
|
| 24 | do_install () {
|
| 25 | install -d ${D}${libdir}/
|
| 26 | install -d ${D}/usr/include
|
| 27 | install -m 0755 ${S}/libsclog/libsclog.so ${D}${libdir}/
|
| 28 | install -m 0755 ${S}/libsclog/libsclog.a ${D}${libdir}/
|
| 29 |
|
| 30 | #install elfs
|
| 31 | install -d ${ELFS-PATH}/
|
| 32 | install -m 0755 ${S}/libsclog/libsclog.so ${ELFS-PATH}/
|
| 33 | }
|
| 34 |
|
| 35 | #清库
|
| 36 | do_cleanlibs () {
|
| 37 | rm -fr ${ELFS-PATH}/libsclog.so
|
| 38 | }
|
| 39 |
|
| 40 | #rootfs包含的文件
|
| 41 | FILES_${PN} += "${libdir}/*.so"
|
| 42 | FILES_${PN}-dbg += "${libdir}/.debug"
|
| 43 | FILES_SOLIBSDEV = ""
|
| 44 | INSANE_SKIP_${PN} = "dev-so"
|