blob: e33f9eaf8dfb16bb17bd29edeb98460e229d33bd [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001DESCRIPTION = "libtinyalsa"
2SECTION = "lib"
3LICENSE = "zte"
4PV = "1.0.0"
5PR = "r0"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
7
8#配置code路径信息。
9FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}:"
10SRC_URI = " \
11 file://libtinyalsa \
12 "
13
14DEPENDS = ""
15S = "${WORKDIR}"
16#引用公用头文件和编译选项。
17include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
18
19#编译
20do_compile () {
21 make -C libtinyalsa
22}
23
24#库和头文件的安装
25do_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#清库
42do_cleanlibs () {
43 rm -fr ${ELFS-PATH}/libtinyalsa.so
44}
45
46#rootfs包含的文件
47FILES_${PN} += "${libdir}/*.so"
48FILES_${PN}-dbg += "${libdir}/.debug"
49FILES_SOLIBSDEV = ""
50INSANE_SKIP_${PN} = "dev-so"