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