mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
a04e0ed79f
With python in PACKAGECONFIGS and with the removal of python2 from host tools the recipe fails to build. Change the recipe to use python3. libsoc configure uses the host python to detect the used version, install and use the python3-native package to have the same version for host and target. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
33 lines
1.2 KiB
BlitzBasic
33 lines
1.2 KiB
BlitzBasic
SUMMARY = "Library for interfacing with common SoC peripherals"
|
|
DESCRIPTION = "libsoc is a C library to interface with common peripherals (gpio, i2c, spi, pwm) \
|
|
found in SoC (System on Chips) through generic Linux Kernel interfaces."
|
|
|
|
HOMEPAGE = "https://github.com/jackmitch/libsoc"
|
|
|
|
LICENSE = "LGPLv2.1"
|
|
LIC_FILES_CHKSUM = "file://LICENCE;md5=e0bfebea12a718922225ba987b2126a5"
|
|
|
|
inherit autotools pkgconfig python3-dir
|
|
|
|
SRCREV = "fd1ad6e7823fa76d8db0d3c5884faffa8ffddafb"
|
|
SRC_URI = "git://github.com/jackmitch/libsoc.git"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
BOARD ??= "devboard"
|
|
|
|
PACKAGECONFIG ?= ""
|
|
|
|
PACKAGECONFIG[disabledebug] = "--disable-debug,,"
|
|
PACKAGECONFIG[allboardconfigs] = "--with-board-configs,,"
|
|
PACKAGECONFIG[enableboardconfig] = "--enable-board=${BOARD},,"
|
|
PACKAGECONFIG[python] = "--enable-python=${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN},,${PYTHON_PN} ${PYTHON_PN}-native"
|
|
|
|
PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', \
|
|
'${PYTHON_PN}-libsoc-staticdev ${PYTHON_PN}-libsoc', '', d)}"
|
|
|
|
RDEPENDS_${PN} = "libgcc"
|
|
|
|
FILES_${PYTHON_PN}-libsoc-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*/*.a"
|
|
FILES_${PYTHON_PN}-libsoc += "${PYTHON_SITEPACKAGES_DIR}"
|