lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | DESCRIPTION = "libtinyalsa"
|
| 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路径信息。 |
| 9 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}:" |
| 10 | SRC_URI = " \ |
| 11 | file://libtinyalsa \
|
| 12 | "
|
| 13 |
|
| 14 | DEPENDS = ""
|
| 15 | S = "${WORKDIR}" |
| 16 | #引用公用头文件和编译选项。 |
| 17 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 18 | |
| 19 | #编译 |
| 20 | do_compile () { |
| 21 | make -C libtinyalsa
|
| 22 | } |
| 23 | |
| 24 | #库和头文件的安装 |
| 25 | do_install () { |
| 26 | install -d ${D}${libdir}/ |
| 27 | install -d ${D}/usr/include |
| 28 | install -m 0755 ${S}/libtinyalsa/libtinyalsa.so ${D}${libdir}/
|
| 29 | install -m 0755 ${S}/libtinyalsa/libtinyalsa.a ${D}${libdir}/
|
| 30 |
|
| 31 | #install elfs
|
| 32 | install -d ${ELFS-PATH}/
|
| 33 | install -m 0755 ${S}/libtinyalsa/libtinyalsa.so ${ELFS-PATH}/
|
| 34 |
|
| 35 | install -d ${D}${bindir}/
|
| 36 | install -m 0755 ${S}/libtinyalsa/tinyplay ${D}${bindir}/
|
| 37 | install -m 0755 ${S}/libtinyalsa/tinycap ${D}${bindir}/
|
| 38 | install -m 0755 ${S}/libtinyalsa/tinymix ${D}${bindir}/
|
| 39 | install -m 0755 ${S}/libtinyalsa/tinyinfo ${D}${bindir}/
|
| 40 | } |
| 41 | #清库
|
| 42 | do_cleanlibs () {
|
| 43 | rm -fr ${ELFS-PATH}/libtinyalsa.so
|
| 44 | }
|
| 45 | |
| 46 | #rootfs包含的文件 |
| 47 | FILES_${PN} += "${libdir}/*.so" |
| 48 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 49 | FILES_SOLIBSDEV = "" |
| 50 | INSANE_SKIP_${PN} = "dev-so"
|