blob: 15d974c83e885e0eeb52dcf8994f88ef07e27fc7 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "A portable foreign function interface library"
2HOMEPAGE = "http://sourceware.org/libffi/"
3DESCRIPTION = "The `libffi' library provides a portable, high level programming interface to various calling \
4conventions. This allows a programmer to call any function specified by a call interface description at run \
5time. FFI stands for Foreign Function Interface. A foreign function interface is the popular name for the \
6interface that allows code written in one language to call code written in another language. The `libffi' \
7library really only provides the lowest, machine dependent layer of a fully featured foreign function interface. \
8A layer must exist above `libffi' that handles type conversions for values passed between the two languages."
9
10LICENSE = "MIT"
Patrick Williams7784c422022-11-17 07:29:11 -060011LIC_FILES_CHKSUM = "file://LICENSE;md5=32c0d09a0641daf4903e5d61cc8f23a8"
Andrew Geissler82c905d2020-04-13 13:39:40 -050012
Andrew Geissler87f5cff2022-09-30 13:13:31 -050013SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BPN}-${PV}.tar.gz \
Andrew Geissler82c905d2020-04-13 13:39:40 -050014 file://not-win32.patch \
Andrew Geissler09209ee2020-12-13 08:44:15 -060015 file://0001-arm-sysv-reverted-clang-VFP-mitigation.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050016 "
Patrick Williams7784c422022-11-17 07:29:11 -060017SRC_URI[sha256sum] = "d66c56ad259a82cf2a9dfc408b32bf5da52371500b84745f7fb8b645712df676"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
Andrew Geissler5f350902021-07-23 13:09:54 -040019EXTRA_OECONF += "--disable-builddir --disable-exec-static-tramp"
Andrew Geissler615f2f12022-07-15 14:00:58 -050020EXTRA_OECONF:class-native += "--with-gcc-arch=generic"
Patrick Williams213cb262021-08-07 19:21:33 -050021EXTRA_OEMAKE:class-target = "LIBTOOLFLAGS='--tag=CC'"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050022inherit autotools texinfo multilib_header github-releases
Andrew Geissler82c905d2020-04-13 13:39:40 -050023
Patrick Williams213cb262021-08-07 19:21:33 -050024do_install:append() {
Andrew Geissler635e0e42020-08-21 15:58:33 -050025 oe_multilib_header ffi.h ffitarget.h
Andrew Geissler82c905d2020-04-13 13:39:40 -050026}
27
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN}-dev += "${libdir}/libffi-${PV}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050029
30# Doesn't compile in MIPS16e mode due to use of hand-written
31# assembly
32MIPS_INSTRUCTION_SET = "mips"
33
34BBCLASSEXTEND = "native nativesdk"