summaryrefslogtreecommitdiffstats
path: root/package/libffi
Commit message (Collapse)AuthorAgeFilesLines
* libffi: bump to version 3.3-rc0Fabrice Fontaine2018-11-095-141/+8
| | | | | | | | | | | | | | | | | | - Update site to github (for the time being, as 3.3-rc0 is a release candidate, it is not published on the official ftp) - Update third patch - Remove fourth and fifth patches (already in version) - Remove uneeded hooks, as public headers are now installed in the standard path since https://github.com/libffi/libffi/commit/982b89c01aca99c7bc229914fc1521f96930919b - New risc-v support: https://github.com/libffi/libffi/commit/3840d49aaa831d649b1597518a2903dfed0d57f3 Fixes: - http://autobuild.buildroot.org/results/3edf66362ea5a83291f19373e4b6f2e5cce98d7b Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/libffi: add license hashSamuel Martin2017-11-051-0/+2
| | | | | Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* libffi: add patch to fix MIPS supportMauro Condarelli2017-10-221-0/+37
| | | | | | | | | | | | | | | | | | Building Python 3.x on MIPS with musl fails because the libffi code uses a "#ifdef linux" test to decide if we're building on Linux or not. When building with -std=c99, "linux" is not defined, so instead of including <asm/sgidefs.h>, libffi's code tries to include <sgidefs.h>, which doesn't exist on musl. The right fix is to use __linux__, which is POSIX compliant, and therefore defined even when -std=c99 is used. Note that glibc and uClibc were not affected because they do provide a <sgidefs.h> header in addition to the <asm/sgidefs.h> one. Signed-off-by: Mauro Condarelli <mc5686@mclink.it> [Thomas: reformat patch with Git, add a better commit log and description.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libffi: avoid $(HOST_DIR)/usr while moving headersArnout Vandecappelle2017-07-051-4/+4
| | | | | Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libffi: fix m68k coldfire compileWaldemar Brodkorb2016-08-201-0/+77
| | | | | | | | | | | Fix suggested upstream: https://github.com/libffi/libffi/pull/273 Fixes: http://autobuild.buildroot.net/results/1014a22cfdd3b18f349dde33f14acca4131dbd5b/ Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libffi: fix headers location for host-libffiYegor Yefremov2016-02-031-4/+8
| | | | | | | | | | | | There is a special hook for target-libffi, that moves headers from /usr/lib/libffi-version/include to /usr/include. This patch adds the same procedure for host-libffi. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> [Thomas: - factorize code between the staging headers cleanup and the host headers cleanup.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libffi: fix staging headers cleanupThomas Petazzoni2016-02-031-1/+1
| | | | | | | | | | | The LIBFFI_MOVE_STAGING_HEADERS function is responsible for moving around libffi headers to a standard location. Once this is done, it removes the no longer used directory, but does so in $(TARGET_DIR) and not $(STAGING_DIR). This directory is already cleaned up in $(TARGET_DIR) in the LIBFFI_REMOVE_TARGET_HEADERS post-install target hook. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libffi: fix the build for MIPS soft-float with recent compilersVicente Olivert Riera2016-01-181-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent MIPS compilers have an stricter agreement between the compiler and the assembler on the ABI. The compiler now passes -msoft-float to the assembler where it previously did not. libffi uses MIPS hard-float instructions so when we try to build it for soft-float using a recent compiler it fails because of the explained above. This package should be fixed in order to add support for soft-float. In the meantime we can add a little hack in order to be able to build it for soft-float. Basically we add ".set hardfloat" so the assembler will not disable the hard-float instructions. The build will of course include some hard-float bits which shouldn't exist in a soft-float build, and that may cause runtime problems. But that's what we already had before and we had lived with it. We choose to apply this temporary fix because it only affects MIPS soft-float builds. Otherwise we would need to disable libffi and recursively all the packages depending on it (python, libglib2...) for MIPS soft-float, which would be a bit overkill. Fixes: http://autobuild.buildroot.net/results/6b0607b7cb0ac5525c2e47e819301f38bd2d6b30/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/libffi: bump to version 3.2.1Jörg Krause2015-09-207-134/+34
| | | | | | | | | Also: - unfuzz patches #1 and #2 - remove applied patches upstream Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libffi: add hash fileGustavo Zacarias2015-04-071-0/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/*: rename patches according to the new policyPeter Korsgaard2015-02-035-0/+0
| | | | | | | Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345) Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* .mk files: bulk aligment and whitespace cleanup of assignmentsThomas De Schampheleire2014-10-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Buildroot coding style defines one space around make assignments and does not align the assignment symbols. This patch does a bulk fix of offending packages. The package infrastructures (or more in general assignments to calculated variable names, like $(2)_FOO) are not touched. Alignment of line continuation characters (\) is kept as-is. The sed command used to do this replacement is: find * -name "*.mk" | xargs sed -i \ -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*$#\1 \2#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\]\+\)$#\1 \2 \3#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\s*\([^\\ \t]\+\s*\\\)\s*$#\1 \2 \3#' -e 's#^\([A-Z0-9a-z_]\+\)\s*\([?:+]\?=\)\(\s*\\\)#\1 \2\3#' Brief explanation of this command: ^\([A-Z0-9a-z_]\+\) a regular variable at the beginning of the line \([?:+]\?=\) any assignment character =, :=, ?=, += \([^\\]\+\) any string not containing a line continuation \([^\\ \t]\+\s*\\\) string, optional whitespace, followed by a line continuation character \(\s*\\\) optional whitespace, followed by a line continuation character Hence, the first subexpression handles empty assignments, the second handles regular assignments, the third handles regular assignments with line continuation, and the fourth empty assignments with line continuation. This expression was tested on following test text: (initial tab not included) FOO = spaces before FOO = spaces before and after FOO = tab before FOO = tab and spaces before FOO = tab after FOO = tab and spaces after FOO = spaces and tab after FOO = \ FOO = bar \ FOO = bar space \ FOO = \ GENIMAGE_DEPENDENCIES = host-pkgconf libconfuse FOO += spaces before FOO ?= spaces before and after FOO := FOO = FOO = FOO = FOO = $(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C AT91BOOTSTRAP3_DEFCONFIG = \ AXEL_DISABLE_I18N=--i18n=0 After this bulk change, following manual fixups were done: - fix line continuation alignment in cegui06 and spice (the sed expression leaves the number of whitespace between the value and line continuation character intact, but the whitespace before that could have changed, causing misalignment. - qt5base was reverted, as this package uses extensive alignment which actually makes the code more readable. Finally, the end result was manually reviewed. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Cc: Yann E. Morin <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libffi and python: need threads supportJérôme Pouiller2014-09-131-0/+4
| | | | | | | | | | | | | | | | libffi depends on pthreads. Python depends on libffi (it can provide a builtin libffi, but also depends on pthreads). Thus this patch also disable Python support if toolchain is compiled w/o treads support. Fixes http://sysmic.org/~jezz/results/204099dd: ../src/closures.c:119:21: fatal error: pthread.h: No such file or directory [Peter: fix comment dependencies, add python3] Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: remove the trailing slash sign from <PKG>_SITE variableJerzy Grzegorek2014-07-311-1/+1
| | | | | | | | | | | | Since the trailing slash is stripped from $($(PKG)_SITE) by pkg-generic.mk: $(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE)) so it is redundant. This patch removes it from $(PKG)_SITE variable for BR consistency. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libffi: remove some header files installed in /usr/lib in the targetThomas Petazzoni2014-07-011-0/+6
| | | | | | | | | | | For some reason, libffi installs some header files in /usr/lib/libffi-<version>/include, which is a non-standard location and therefore they do not get removed automatically by the target-finalize logic. This commit adds a post-install hook in libffi.mk to get rid of these unneeded headers on the target. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libffi: bump to 3.1Thomas Petazzoni2014-07-017-866/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | Status of the patches: - libffi-001-Fix-installation-location-of-libffi.patch, preserved. - libffi-002-Fix-use-of-compact-eh-frames-on-MIPS.patch, preserved - libffi-arc-01-Add-ARC-support.patch, removed, ARC support was merged upstream as of commit b082e15091961373c03d10ed0251f619ebb6ed76. - libffi-arc-02-Rebuild-for-ARC-additions.patch, removed, this patch was merged upstream as of commit 0f8690a84c874ec09a090c8c6adfb93c594acac6. - libffi-003-fix-typo.patch, added, reported on the upstream mailing list as being necessary, will be part of the next 3.1.1 release. - libffi-004-Add-missing-GNU-stack-markings-in-win32.S.patch, same status as patch 003. - libffi-005-Fix-paths-in-libffi.pc.in.patch, same status as patch 003. The 3.1 release adds support for a number of architectures: ARC support, ppc64le support, NIOS II support. See https://sourceware.org/ml/libffi-announce/2014/msg00000.html for details. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libffi: back-port support for ARCAlexey Brodkin2014-05-293-0/+865
| | | | | | | | | | | | | | | | | | | | | Support for ARC CPUs was added in libffi after 3.0.13 vesion was cut and up until now no new release has been done. So to enale libffi on ARC we need this set of patches. These are corrsponding commits in libffi: * b082e15091961373c03d10ed0251f619ebb6ed76 - Add ARC support * 0f8690a84c874ec09a090c8c6adfb93c594acac6 - Rebuild for ARC additions * d918d47809c174d62283306b282749f8db93661f - arc: Fix build error The first patch was modified a bit (cut changelog part) to accomodate changes not related to ARC between 3.0.14 and changes in question. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Misca Jonker <mjonker@synopsys.com> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: drop unneeded HOST_<pkg>_AUTORECONF = YESPeter Korsgaard2013-10-041-1/+0
| | | | | | | | Since 97c687000 (pkg-autotools.mk: default host AUTORECONF{,_OPT} to the target values) we automatically enable autoreconf for host builds if it is enabled for the target, so these can go. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libffi: minor corrections in post install hooksnmenegale2013-09-021-10/+1
| | | | | | | | | | | | | In order to be sure that we just deal with the includes related with the actual package described into libffi.mk it is better to explicitly specify the version of the libffi we deal with into the post install hook. As dev files are deprecated in target rootfs target post install hook was also deleted. Signed-off-by: Nicolas Ménégale <nicolas.menegale@openwide.fr> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: Add -mno-compact-eh when compiling for MipsJérôme Pouiller2013-08-102-6/+27
| | | | | | | | | | | | | Fix compilation on Mips. Resolve issues detected here: http://autobuild.buildroot.net/results/f0c9db496233f53c26e92294d7305aa4511ec7b3/ http://autobuild.buildroot.net/results/8968690c248df86b040218867f92b573721e872c/ http://autobuild.buildroot.net/results/a35db8e6a49d022133b486b12f6a8e40b3c95b6e/ Also remove previous special case handling defined in libffi.mk. [Thomas: add Signed-off-by from Jérôme inside the patch itself.] Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Normalize separator size to 80Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: bump to version 3.0.13Gustavo Zacarias2013-03-192-30/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: fix powerpc build breakageGustavo Zacarias2013-02-221-0/+29
| | | | | | | | | Happens with the latest release when there are no FP registers. Fixes: http://autobuild.buildroot.net/results/bc43261d3ddc9d4c320522563249f4a0695a35a4/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: bump versionPeter Korsgaard2013-02-191-22/+5
| | | | | | | | | | It makes more sense to use a released version for 2013.02 rather than a git snapshot. The build system now correctly installs libffi.pc, so we can drop the manual install. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: add patch to fix library installation locationThomas Petazzoni2013-02-081-0/+50
| | | | | | | | | | | | | | | | | The libffi library was installed in a wrong directory when using the non-default variant of a multilib toolchain. We fix this by patching the libffi Makefile.am to install its library in a normal location. The patch has been submitted upstream. Fixes: http://autobuild.buildroot.org/results/471b1d1547c8d726999ba9a865b87fd75429dcab/build-end.log (dbus-glib) http://autobuild.buildroot.org/results/eda3ae14eea61e777511fca561f8d43dc7f4a2a5/build-end.log (shared-mime-info) http://autobuild.buildroot.org/results/9c86692ae3485d5ae371c695bfbb4a9b67aa2368/build-end.log (librsvg) http://autobuild.buildroot.org/results/affd7f20c95f1019d040e2911877694300e3c876/build-end.log (bustle) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: switch to using a Git version, brings Microblaze and Xtensa supportThomas Petazzoni2013-02-053-3376/+23
| | | | | | | | | | | | | | | | | | | | | | | | We already had backported patches for the Blackfin and AArch64 support, and now we would have needed to also backport the Xtensa support and the Microblaze support. This starts to get crazy. Let's switch to using a Git version from Github, until libffi finally releases a new stable version. In order to achieve this, we also need to: * autoreconf the package, so that a libffi.pc file gets generated * manually install the libffi.pc file, because it doesn't get installed by libffi Makefile, for some reason * remove the part of the target post install hook that was messing with libffi.pc, since it was modifying the one in STAGING_DIR (which is odd for a target post install hook), and the libffi.pc file is anyway not installed to the target anymore. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: fix mips build failuresGustavo Zacarias2012-12-281-1/+6
| | | | | | | | Fixes http://autobuild.buildroot.net/results/c4056ed2b969b900f7654e651e0e4cc2e8998e02 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: add aarch64 support from upstreamThomas Petazzoni2012-11-171-0/+2326
| | | | | | | | | Fixes build failures like: http://autobuild.buildroot.org/results/6b4b4c414d366c936df480747c78272050c84293/build-end.log Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: make blackfin patch a proper git patchThomas Petazzoni2012-11-171-76/+99
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: add license infoArnout Vandecappelle (Essensium/Mind)2012-11-141-0/+2
| | | | | Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* all packages: rename XXXTARGETS to xxx-packageArnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* all packages: use new host-xxx-package macrosArnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS,host))/$(eval $(host-generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS,host))/$(eval $(host-autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS,host))/$(eval $(host-cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libffi: bump to 3.0.11 and add blackfin supportThomas Petazzoni2012-05-092-1/+1022
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: bump version to 3.0.10Sagaert Johan2012-03-151-1/+1
| | | | | | Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: enable host targetDaniel Mack2011-12-111-0/+1
| | | | | | | | libffi is a new requirement for libglib, and as libglib has to be built for the host as well, libffi has to follow. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: remove invalid variable 'includedir' in .pc fileDaniel Mack2011-12-111-2/+4
| | | | | | | | | | | Fixes the following error: Variable 'includedir' not defined in '/home/daniel/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/pkgconfig/libffi.pc' Also, use $(SED) instead of 'sed -i'. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: remove useless arguments from AUTOTARGETSThomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* libffi: new packageThomas Petazzoni2011-01-252-0/+42
libffi is needed by the Python interpreter. 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. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
OpenPOWER on IntegriCloud