lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | DESCRIPTION = "libdebug-info" |
| 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路径信息。 |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame^] | 9 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:" |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 10 | SRC_URI = " \ |
| 11 | file://libdebug_info \ |
| 12 | " |
| 13 | |
| 14 | S = "${WORKDIR}" |
| 15 | #引用公用头文件和编译选项。 |
| 16 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 17 | include ${BSPDIR}/sources/meta-zxic/conf/pub.inc |
| 18 | CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}" |
| 19 | |
| 20 | #编译 |
| 21 | do_compile () { |
| 22 | make -C libdebug_info |
| 23 | } |
| 24 | |
| 25 | #库和头文件的安装 |
| 26 | do_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 | #清库 |
| 38 | do_cleanlibs () { |
| 39 | rm -fr ${ELFS-PATH}/libdebug_info.so |
| 40 | } |
| 41 | |
| 42 | #rootfs包含的文件 |
| 43 | FILES_${PN} += "${libdir}/*.so" |
| 44 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 45 | FILES_SOLIBSDEV = "" |
| 46 | INSANE_SKIP_${PN} = "dev-so" |
| 47 | |