xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | DESCRIPTION = "libflags" |
| 2 | DEPENDS = "" |
| 3 | SECTION = "lib" |
| 4 | LICENSE = "zte" |
| 5 | PV = "1.0.0" |
| 6 | PR = "r0" |
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| 8 | |
| 9 | #配置code路径信息。 |
| 10 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:" |
| 11 | SRC_URI = " \ |
| 12 | file://libflags \ |
| 13 | " |
| 14 | |
| 15 | S = "${WORKDIR}" |
| 16 | #引用公用头文件和编译选项。 |
| 17 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 18 | include ${BSPDIR}/sources/meta-zxic/conf/pub.inc |
| 19 | |
| 20 | CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}" |
| 21 | |
| 22 | do_compile () { |
| 23 | make -C libflags |
| 24 | } |
| 25 | |
| 26 | do_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 | |
| 39 | do_cleanlibs () { |
| 40 | rm -fr ${ELFS-PATH}/libflags.so |
| 41 | } |
| 42 | |
| 43 | FILES_${PN} += "${libdir}/*.so" |
| 44 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 45 | FILES_SOLIBSDEV = "" |
| 46 | INSANE_SKIP_${PN} = "dev-so" |