initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
From 04377d28135e351c8d096c4392a493e937416815 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
|
||||
Date: Thu, 24 Jul 2014 23:15:20 +0200
|
||||
Subject: [PATCH] Allow building with uclibc toolchains
|
||||
|
||||
Unfortunately, uclicbc doesn't define SHT_ARM_ATTRIBUTES in elf.h
|
||||
|
||||
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
|
||||
---
|
||||
sysdeps/linux-gnu/arm/plt.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/sysdeps/linux-gnu/arm/plt.c b/sysdeps/linux-gnu/arm/plt.c
|
||||
index 9e9e37f0c5b0..a0a5795eb9cb 100644
|
||||
--- a/sysdeps/linux-gnu/arm/plt.c
|
||||
+++ b/sysdeps/linux-gnu/arm/plt.c
|
||||
@@ -28,6 +28,10 @@
|
||||
#include "library.h"
|
||||
#include "ltrace-elf.h"
|
||||
|
||||
+#ifndef SHT_ARM_ATTRIBUTES
|
||||
+#define SHT_ARM_ATTRIBUTES 0x70000003
|
||||
+#endif
|
||||
+
|
||||
static int
|
||||
get_hardfp(uint64_t abi_vfp_args)
|
||||
{
|
||||
--
|
||||
1.9.1
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
From 4e58f53b7886420d002e5919f279acd6d7c4afd1 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Tue, 22 Dec 2015 21:47:45 +0100
|
||||
Subject: [PATCH] sparc: add missing library.h include
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes the following build failure on sparc:
|
||||
|
||||
plt.c: In function ‘sym2addr’:
|
||||
plt.c:33:12: error: dereferencing pointer to incomplete type
|
||||
return sym->enter_addr;
|
||||
^
|
||||
plt.c:34:1: warning: control reaches end of non-void function [-Wreturn-type]
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
sysdeps/linux-gnu/sparc/plt.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/sysdeps/linux-gnu/sparc/plt.c b/sysdeps/linux-gnu/sparc/plt.c
|
||||
index 3d2e589..959eed1 100644
|
||||
--- a/sysdeps/linux-gnu/sparc/plt.c
|
||||
+++ b/sysdeps/linux-gnu/sparc/plt.c
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <gelf.h>
|
||||
#include "proc.h"
|
||||
#include "common.h"
|
||||
+#include "library.h"
|
||||
|
||||
GElf_Addr
|
||||
arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) {
|
||||
--
|
||||
2.6.4
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From b8d5d086489ff20339e221323a60c140a9820e67 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sat, 9 Oct 2021 09:39:52 +0200
|
||||
Subject: [PATCH] configure.ac: fix autoreconf with autoconf >= 2.70
|
||||
|
||||
Drop AC_CONFIG_AUX_DIR to avoid the following build failure with
|
||||
autoconf >= 2.70:
|
||||
|
||||
autoreconf: error: cannot create config/autoconf: No such file or directory
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/433599039d6e1ee301465f9867e169c121a0646f
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: not sent as upstream is unmaintained:
|
||||
https://gitlab.com/cespedes/ltrace/-/issues/8]
|
||||
---
|
||||
configure.ac | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index b9c39fa..486589b 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -28,7 +28,6 @@ AC_INIT([ltrace],[0.7.91],[ltrace-devel@lists.alioth.debian.org],
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_SRCDIR(libltrace.c)
|
||||
AC_CONFIG_MACRO_DIR([config/m4])
|
||||
-AC_CONFIG_AUX_DIR([config/autoconf])
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
config BR2_PACKAGE_LTRACE_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_aarch64
|
||||
default y if BR2_arm
|
||||
default y if BR2_i386
|
||||
default y if BR2_mips
|
||||
default y if BR2_mipsel
|
||||
default y if BR2_powerpc
|
||||
default y if BR2_sparc
|
||||
default y if BR2_x86_64
|
||||
default y if BR2_xtensa
|
||||
|
||||
config BR2_PACKAGE_LTRACE
|
||||
bool "ltrace"
|
||||
depends on BR2_USE_WCHAR # elfutils
|
||||
depends on !BR2_STATIC_LIBS # elfutils
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils
|
||||
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
|
||||
depends on BR2_PACKAGE_LTRACE_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_ELFUTILS
|
||||
help
|
||||
Debugging program which runs a specified command until it
|
||||
exits. While the command is executing, ltrace intercepts and
|
||||
records the dynamic library calls which are called by the
|
||||
executed process and the signals received by that process.
|
||||
|
||||
http://ltrace.org
|
||||
|
||||
comment "ltrace needs a uClibc or glibc toolchain w/ wchar, dynamic library, threads"
|
||||
depends on BR2_PACKAGE_LTRACE_ARCH_SUPPORTS
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|
||||
|| !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 4aecf69e4a33331aed1e50ce4907e73a98cbccc4835febc3473863474304d547 ltrace-82c66409c7a93ca6ad2e4563ef030dfb7e6df4d4.tar.gz
|
||||
sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4 COPYING
|
||||
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
#
|
||||
# ltrace
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# This github version has some extra fixes on top of https://ltrace.org/
|
||||
# in particular the following commit to avoid a crash:
|
||||
# 192e0a6 void struct members are now ignored
|
||||
LTRACE_VERSION = 82c66409c7a93ca6ad2e4563ef030dfb7e6df4d4
|
||||
LTRACE_SITE = $(call github,dkogan,ltrace,$(LTRACE_VERSION))
|
||||
LTRACE_DEPENDENCIES = elfutils
|
||||
LTRACE_CONF_OPTS = --disable-werror
|
||||
LTRACE_LICENSE = GPL-2.0
|
||||
LTRACE_LICENSE_FILES = COPYING
|
||||
LTRACE_AUTORECONF = YES
|
||||
|
||||
# ltrace can use libunwind only if libc has backtrace() support
|
||||
# We don't normally do so for uClibc and we can't know if it's external
|
||||
# Also ltrace with libunwind support is broken for MIPS so we disable it
|
||||
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_mips)$(BR2_mipsel),)
|
||||
# --with-elfutils only selects unwinding support backend. elfutils is a
|
||||
# mandatory dependency regardless.
|
||||
LTRACE_CONF_OPTS += --with-libunwind=yes --with-elfutils=no
|
||||
LTRACE_DEPENDENCIES += libunwind
|
||||
else
|
||||
LTRACE_CONF_OPTS += --with-libunwind=no
|
||||
endif
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user