Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
From 31b6b6bc14197cd4183bdbd311fddeb36b5ae100 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
|
||||
Date: Sat, 19 Sep 2015 22:53:29 +0200
|
||||
Subject: [PATCH] Fix use of compact eh frames on MIPS
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Newer MIPS toolchains use a different (compact) eh_frame format.
|
||||
libffi don't like them, so we have to switch to the older format.
|
||||
|
||||
This patch add -mno-compact-eh to CFLAGS when compiling for
|
||||
Mips and compiler support it.
|
||||
|
||||
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
|
||||
[unfuzz for 3.2.1]
|
||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||
[rebased for 3.4.6]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
configure.ac | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index a7bf5ee..36cd0d4 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -238,6 +238,16 @@ esac
|
||||
AM_CONDITIONAL(FFI_EXEC_TRAMPOLINE_TABLE, test x$FFI_EXEC_TRAMPOLINE_TABLE = x1)
|
||||
AC_SUBST(FFI_EXEC_TRAMPOLINE_TABLE)
|
||||
|
||||
+if test x$TARGET = xMIPS; then
|
||||
+ save_CFLAGS="$CFLAGS"
|
||||
+ CFLAGS=-mno-compact-eh
|
||||
+ AC_MSG_CHECKING([whether the C compiler needs -mno-compact-eh])
|
||||
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
||||
+ [AC_MSG_RESULT([yes])]; [save_CFLAGS="$save_CFLAGS -mno-compact-eh"],
|
||||
+ [AC_MSG_RESULT([no])])
|
||||
+ CFLAGS="$save_CFLAGS"
|
||||
+fi
|
||||
+
|
||||
if test x$TARGET = xX86_64; then
|
||||
AC_CACHE_CHECK([toolchain supports unwind section type],
|
||||
libffi_cv_as_x86_64_unwind_section_type, [
|
||||
--
|
||||
2.5.3
|
||||
|
||||
13
package/libffi/Config.in
Normal file
13
package/libffi/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_LIBFFI
|
||||
bool "libffi"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
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.
|
||||
|
||||
http://sourceware.org/libffi/
|
||||
|
||||
comment "libffi needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
4
package/libffi/libffi.hash
Normal file
4
package/libffi/libffi.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/libffi/libffi/releases/tag/v3.8.0
|
||||
sha256 7da3e2d9a171eb0a038f592ecad3ff2bb2550f3496d87b3b29ad0cf4430c0db4 libffi-3.8.0.tar.gz
|
||||
# License files, locally calculated
|
||||
sha256 17b64dc60f3b6897a60f971e288b973f655c2edcdf08b25f3c3dd5549857881c LICENSE
|
||||
23
package/libffi/libffi.mk
Normal file
23
package/libffi/libffi.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
#
|
||||
# libffi
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBFFI_VERSION = 3.8.0
|
||||
LIBFFI_SITE = \
|
||||
https://github.com/libffi/libffi/releases/download/v$(LIBFFI_VERSION)
|
||||
LIBFFI_LICENSE = MIT
|
||||
LIBFFI_LICENSE_FILES = LICENSE
|
||||
LIBFFI_CPE_ID_VALID = YES
|
||||
LIBFFI_INSTALL_STAGING = YES
|
||||
# We're patching configure.ac
|
||||
LIBFFI_AUTORECONF = YES
|
||||
LIBFFI_CONF_OPTS = --disable-multi-os-directory
|
||||
|
||||
# The static exec trampolines is enabled by default since
|
||||
# libffi 3.4.2. However it doesn't work with gobject-introspection.
|
||||
LIBFFI_CONF_OPTS += --disable-exec-static-tramp
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user