xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/libsoc/libsoc_0.8.2.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Library for interfacing with common SoC peripherals"
2DESCRIPTION = "libsoc is a C library to interface with common peripherals (gpio, i2c, spi, pwm) \
3               found in SoC (System on Chips) through generic Linux Kernel interfaces."
4
5HOMEPAGE = "https://github.com/jackmitch/libsoc"
6
7LICENSE = "LGPL-2.1-only"
8LIC_FILES_CHKSUM = "file://LICENCE;md5=e0bfebea12a718922225ba987b2126a5"
9
10inherit autotools pkgconfig python3-dir
11
12SRCREV = "fd1ad6e7823fa76d8db0d3c5884faffa8ffddafb"
13SRC_URI = "git://github.com/jackmitch/libsoc.git;branch=master;protocol=https"
14
15S = "${WORKDIR}/git"
16
17BOARD ??= "devboard"
18
19PACKAGECONFIG ?= ""
20
21PACKAGECONFIG[disabledebug] = "--disable-debug,,"
22PACKAGECONFIG[allboardconfigs] = "--with-board-configs,,"
23PACKAGECONFIG[enableboardconfig] = "--enable-board=${BOARD},,"
24PACKAGECONFIG[python] = "--enable-python=${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN},,${PYTHON_PN} ${PYTHON_PN}-native"
25
26PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', \
27    '${PYTHON_PN}-libsoc-staticdev ${PYTHON_PN}-libsoc', '', d)}"
28
29RDEPENDS:${PN} = "libgcc"
30
31FILES:${PYTHON_PN}-libsoc-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*/*.a"
32FILES:${PYTHON_PN}-libsoc += "${PYTHON_SITEPACKAGES_DIR}"
33