blob: 1d04e98364d239781baddd00a82b677abd3563c6 [file] [log] [blame]
xf.li742dd022023-06-08 01:43:32 -07001DESCRIPTION = "libsclog"
2SECTION = "lib"
3LICENSE = "zte"
4PV = "1.0.0"
5PR = "r0"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
7
8#配置code路径信息。
9FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:"
10SRC_URI = " \
11 file://libsclog \
12 "
13
14S = "${WORKDIR}"
15#引用公用头文件和编译选项。
16include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
17
18#编译
19do_compile () {
20 make -C libsclog
21}
22
23#库和头文件的安装
24do_install () {
25 install -d ${D}${libdir}/
26 install -d ${D}/usr/include
xf.li742dd022023-06-08 01:43:32 -070027 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#清库
36do_cleanlibs () {
37 rm -fr ${ELFS-PATH}/libsclog.so
38}
39
40#rootfs包含的文件
41FILES_${PN} += "${libdir}/*.so"
42FILES_${PN}-dbg += "${libdir}/.debug"
43FILES_SOLIBSDEV = ""
44INSANE_SKIP_${PN} = "dev-so"