xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1DESCRIPTION = "TinyALSA is a small library to interface with ALSA in \
2the Linux kernel. It is a lightweight alternative to libasound."
3HOMEPAGE = "https://github.com/tinyalsa/tinyalsa"
4SECTION = "libs/multimedia"
5
6LICENSE = "BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://NOTICE;md5=dbdefe400d894b510a9de14813181d0b"
8
9SRCREV = "8449529c7e50f432091539ba7b438e79b04059b5"
10SRC_URI = "git://github.com/tinyalsa/tinyalsa;branch=master;protocol=https \
11           file://0001-Use-CMAKE_INSTALL_-path-instead-of-hardcoding-bin-li.patch \
12          "
13PV = "1.1.1+git${SRCPV}"
14
15S = "${WORKDIR}/git"
16
17inherit cmake
18
19# tinyalsa is built as a static library. Enable PIC to avoid relocation
20# errors like these:
21#
22#    unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17'
23CFLAGS += " -fPIC -DPIC "
24