blob: 22ad792790761f6e8f1daa4dbb2d16930cba7051 [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路径信息。
xf.libdd93d52023-05-12 07:10:14 -07009FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
lh9ed821d2023-04-07 01:36:19 -070010SRC_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}/
xf.libdd93d52023-05-12 07:10:14 -070027 install -d ${D}/usr/include/tinyalsa
lh9ed821d2023-04-07 01:36:19 -070028 install -m 0755 ${S}/libtinyalsa/libtinyalsa.so ${D}${libdir}/
29 install -m 0755 ${S}/libtinyalsa/libtinyalsa.a ${D}${libdir}/
30
xf.libdd93d52023-05-12 07:10:14 -070031 install -m 0644 ${S}/libtinyalsa/include/tinyalsa/*.h ${D}/usr/include/tinyalsa
32
lh9ed821d2023-04-07 01:36:19 -070033 #install elfs
34 install -d ${ELFS-PATH}/
35 install -m 0755 ${S}/libtinyalsa/libtinyalsa.so ${ELFS-PATH}/
36
37 install -d ${D}${bindir}/
38 install -m 0755 ${S}/libtinyalsa/tinyplay ${D}${bindir}/
39 install -m 0755 ${S}/libtinyalsa/tinycap ${D}${bindir}/
40 install -m 0755 ${S}/libtinyalsa/tinymix ${D}${bindir}/
41 install -m 0755 ${S}/libtinyalsa/tinyinfo ${D}${bindir}/
42}
43#清库
44do_cleanlibs () {
45 rm -fr ${ELFS-PATH}/libtinyalsa.so
46}
47
48#rootfs包含的文件
49FILES_${PN} += "${libdir}/*.so"
50FILES_${PN}-dbg += "${libdir}/.debug"
51FILES_SOLIBSDEV = ""
52INSANE_SKIP_${PN} = "dev-so"