mirror of
https://git.yoctoproject.org/poky
synced 2026-03-04 06:19:40 +01:00
Patch is added to address an issue preventing libffi from compiling under clang. Change-Id: I55e36d252ec8e84de9b35fea18044c2c0e8c5aab (From OE-Core rev: a4944e9b553ddf55da9d9a1243fadc93a620b003) Signed-off-by: Brett Warren <brett.warren@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 01e8c53488dd5ebb206bef2415549e8ac1ac7601) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
43 lines
2.0 KiB
BlitzBasic
43 lines
2.0 KiB
BlitzBasic
SUMMARY = "A portable foreign function interface library"
|
|
HOMEPAGE = "http://sourceware.org/libffi/"
|
|
DESCRIPTION = "The `libffi' library provides a portable, high level programming interface to various calling \
|
|
conventions. This allows a programmer to call any function specified by a call interface description at run \
|
|
time. FFI stands for Foreign Function Interface. A foreign function interface is the popular name for the \
|
|
interface that allows code written in one language to call code written in another language. The `libffi' \
|
|
library really only provides the lowest, machine dependent layer of a fully featured foreign function interface. \
|
|
A layer must exist above `libffi' that handles type conversions for values passed between the two languages."
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=492385fe22195952f5b9b197868ba268"
|
|
|
|
SRC_URI = "https://github.com/libffi/libffi/releases/download/v${PV}/${BPN}-${PV}.tar.gz \
|
|
file://not-win32.patch \
|
|
file://0001-Fixed-missed-ifndef-for-__mips_soft_float.patch \
|
|
file://0001-arm-sysv-reverted-clang-VFP-mitigation.patch \
|
|
file://0001-powerpc-fix-build-failure-on-power7-and-older-532.patch \
|
|
file://0001-Address-platforms-with-no-__int128.patch \
|
|
file://0001-Address-platforms-with-no-__int128-part2.patch \
|
|
file://0001-ffi_powerpc.h-fix-build-failure-with-powerpc7.patch \
|
|
"
|
|
SRC_URI[md5sum] = "6313289e32f1d38a9df4770b014a2ca7"
|
|
SRC_URI[sha256sum] = "72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056"
|
|
UPSTREAM_CHECK_URI = "https://github.com/libffi/libffi/releases/"
|
|
UPSTREAM_CHECK_REGEX = "libffi-(?P<pver>\d+(\.\d+)+)\.tar"
|
|
|
|
EXTRA_OECONF += "--disable-builddir"
|
|
EXTRA_OEMAKE_class-target = "LIBTOOLFLAGS='--tag=CC'"
|
|
inherit autotools texinfo multilib_header
|
|
|
|
do_install_append() {
|
|
oe_multilib_header ffi.h ffitarget.h
|
|
}
|
|
|
|
FILES_${PN}-dev += "${libdir}/libffi-${PV}"
|
|
|
|
# Doesn't compile in MIPS16e mode due to use of hand-written
|
|
# assembly
|
|
MIPS_INSTRUCTION_SET = "mips"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|