blob: f04df7c3645d3505aa80719d6d13bb500086e8b8 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001DESCRIPTION = "libflags"
2DEPENDS = ""
3SECTION = "lib"
4LICENSE = "zte"
5PV = "1.0.0"
6PR = "r0"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
8
9#配置code路径信息。
10FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
11SRC_URI = " \
12 file://libflags \
13 "
14
15S = "${WORKDIR}"
16#引用公用头文件和编译选项。
17include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
18include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
19
20CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}"
21
22do_compile () {
23 make -C libflags
24}
25
26do_install () {
27 install -d ${D}${libdir}/
28 install -d ${D}/usr/include
29 install -m 0755 ${S}/libflags/libflags.so ${D}${libdir}/
30 install -m 0755 ${S}/libflags/libflags.a ${D}${libdir}/
31
32 #install elfs
33 install -d ${ELFS-PATH}/
34 install -m 0755 ${S}/libflags/libflags.so ${ELFS-PATH}/
35}
36
37#清库
38
39do_cleanlibs () {
40 rm -fr ${ELFS-PATH}/libflags.so
41}
42
43FILES_${PN} += "${libdir}/*.so"
44FILES_${PN}-dbg += "${libdir}/.debug"
45FILES_SOLIBSDEV = ""
46INSANE_SKIP_${PN} = "dev-so"