update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From 27e37d2621317d25e08ba0683bf8540b05b9347d Mon Sep 17 00:00:00 2001
|
||||
From: Philippe Proulx <eeppeliteloop@gmail.com>
|
||||
Date: Fri, 28 Oct 2016 02:09:20 -0400
|
||||
Subject: [PATCH] tests/lib/Makefile.am: remove unneeded -static flag
|
||||
|
||||
Having those -static flags breaks the build in shared-only builds.
|
||||
|
||||
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
|
||||
[Philippe: grabbed from this pull request:
|
||||
https://github.com/efficios/babeltrace/pull/49
|
||||
]
|
||||
---
|
||||
tests/lib/Makefile.am | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/tests/lib/Makefile.am b/tests/lib/Makefile.am
|
||||
index 33ada16..c685e77 100644
|
||||
--- a/tests/lib/Makefile.am
|
||||
+++ b/tests/lib/Makefile.am
|
||||
@@ -31,13 +31,11 @@ check_SCRIPTS = test_seek_big_trace \
|
||||
test_ctf_writer_complete
|
||||
|
||||
if ENABLE_DEBUG_INFO
|
||||
-test_dwarf_LDFLAGS = -static
|
||||
test_dwarf_LDADD = $(LIBTAP) \
|
||||
$(top_builddir)/lib/libbabeltrace.la \
|
||||
$(top_builddir)/lib/libdebug-info.la
|
||||
test_dwarf_SOURCES = test_dwarf.c
|
||||
|
||||
-test_bin_info_LDFLAGS = -static
|
||||
test_bin_info_LDADD = $(LIBTAP) \
|
||||
$(top_builddir)/lib/libbabeltrace.la \
|
||||
$(top_builddir)/lib/libdebug-info.la
|
||||
--
|
||||
2.9.3
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
From 697ab0905c59561562dc52cd3b925781e07814f3 Mon Sep 17 00:00:00 2001
|
||||
From: Philippe Proulx <eeppeliteloop@gmail.com>
|
||||
Date: Wed, 2 Nov 2016 01:40:12 -0400
|
||||
Subject: [PATCH] m4/ax_lib_elfutils.m4: add cache variable
|
||||
|
||||
This patch adds an autoconf cache variable to override the
|
||||
AC_RUN_IFELSE() test result when cross-compiling.
|
||||
|
||||
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
|
||||
[Philippe: grabbed from this pull request:
|
||||
https://github.com/efficios/babeltrace/pull/52
|
||||
]
|
||||
---
|
||||
m4/ax_lib_elfutils.m4 | 32 +++++++++++++++++---------------
|
||||
1 file changed, 17 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/m4/ax_lib_elfutils.m4 b/m4/ax_lib_elfutils.m4
|
||||
index fcfe06b..f4fcb0d 100644
|
||||
--- a/m4/ax_lib_elfutils.m4
|
||||
+++ b/m4/ax_lib_elfutils.m4
|
||||
@@ -21,7 +21,9 @@
|
||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Check the currently installed version of elfutils by using the
|
||||
-# _ELFUTILS_PREREQ macro defined in elfutils/version.h.
|
||||
+# `_ELFUTILS_PREREQ` macro defined in <elfutils/version.h>.
|
||||
+#
|
||||
+# The cache variable for this test is `bt_cv_lib_elfutils`.
|
||||
#
|
||||
# AX_LIB_ELFUTILS(MAJOR_VERSION, MINOR_VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -29,7 +31,6 @@ AC_DEFUN([AX_LIB_ELFUTILS], [
|
||||
m4_pushdef([major_version], [$1])
|
||||
m4_pushdef([minor_version], [$2])
|
||||
|
||||
- AC_MSG_CHECKING([for elfutils version >= major_version.minor_version])
|
||||
m4_if([$#], 3, [
|
||||
m4_pushdef([true_action], [$3])
|
||||
], [
|
||||
@@ -43,20 +44,21 @@ AC_DEFUN([AX_LIB_ELFUTILS], [
|
||||
AC_MSG_ERROR(elfutils >= major_version.minor_version is required)])
|
||||
])
|
||||
|
||||
- AC_RUN_IFELSE([
|
||||
- AC_LANG_SOURCE([
|
||||
- #include <stdlib.h>
|
||||
- #include <elfutils/version.h>
|
||||
+ AC_CACHE_CHECK(
|
||||
+ [for elfutils version >= major_version.minor_version],
|
||||
+ [bt_cv_lib_elfutils], [
|
||||
+ AC_RUN_IFELSE([AC_LANG_SOURCE([
|
||||
+ #include <stdlib.h>
|
||||
+ #include <elfutils/version.h>
|
||||
+
|
||||
+ int main(void) {
|
||||
+ return _ELFUTILS_PREREQ(major_version, minor_version) ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
+ }
|
||||
+ ])], [bt_cv_lib_elfutils=yes], [bt_cv_lib_elfutils=no])
|
||||
+ ]
|
||||
+ )
|
||||
|
||||
- int main(void) {
|
||||
- return _ELFUTILS_PREREQ(major_version, minor_version) ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
- }
|
||||
- ])
|
||||
- ],
|
||||
- echo yes
|
||||
- true_action,
|
||||
- echo no
|
||||
- false_action)
|
||||
+ AS_IF([test "x$bt_cv_lib_elfutils" = "xyes"], [true_action], [false_action])
|
||||
|
||||
m4_popdef([false_action])
|
||||
m4_popdef([true_action])
|
||||
--
|
||||
2.9.3
|
||||
|
||||
35
bsp/buildroot-2017.02.11/package/lttng-babeltrace/Config.in
Normal file
35
bsp/buildroot-2017.02.11/package/lttng-babeltrace/Config.in
Normal file
@@ -0,0 +1,35 @@
|
||||
config BR2_PACKAGE_LTTNG_BABELTRACE
|
||||
bool "lttng-babeltrace"
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_POPT
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
help
|
||||
The Babeltrace project provides trace read and write
|
||||
libraries, as well as a trace converter application. Plugins
|
||||
can be created for any trace format to allow its conversion
|
||||
to/from another trace format.
|
||||
|
||||
Babeltrace is the reference implementation of the Common
|
||||
Trace Format (see <http://diamon.org/ctf/>). Babeltrace
|
||||
can decode and display LTTng traces, since the latter are
|
||||
written using the CTF format.
|
||||
|
||||
To get support for debugging information, enable the
|
||||
elfutils package.
|
||||
|
||||
Having this tool on the target is not mandatory. You can
|
||||
transfer the binary trace output from the target to your
|
||||
development workstation, and use babeltrace here.
|
||||
|
||||
See the lttng-babeltrace host utility to install Babeltrace
|
||||
on the host.
|
||||
|
||||
http://diamon.org/babeltrace
|
||||
|
||||
comment "lttng-babeltrace needs a toolchain w/ wchar, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_HOST_LTTNG_BABELTRACE
|
||||
bool "host lttng-babeltrace"
|
||||
help
|
||||
The Babeltrace project provides trace read and write
|
||||
libraries, as well as a trace converter application. Plugins
|
||||
can be created for any trace format to allow its conversion
|
||||
to/from another trace format.
|
||||
|
||||
Babeltrace is the reference implementation of the Common
|
||||
Trace Format (see <http://diamon.org/ctf/>). Babeltrace
|
||||
can decode and display LTTng traces, since the latter are
|
||||
written using the CTF format.
|
||||
|
||||
http://diamon.org/babeltrace
|
||||
@@ -0,0 +1,3 @@
|
||||
# From http://www.efficios.com/files/babeltrace/babeltrace-1.5.1.tar.bz2.{md5,sha1}
|
||||
md5 3f7d29ba2821a966d24759a928a15cdf babeltrace-1.5.1.tar.bz2
|
||||
sha1 07bffefed8ef68317f26e043ae5f71be58fdb783 babeltrace-1.5.1.tar.bz2
|
||||
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
#
|
||||
# lttng-babeltrace
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LTTNG_BABELTRACE_SITE = http://www.efficios.com/files/babeltrace
|
||||
LTTNG_BABELTRACE_VERSION = 1.5.1
|
||||
LTTNG_BABELTRACE_SOURCE = babeltrace-$(LTTNG_BABELTRACE_VERSION).tar.bz2
|
||||
LTTNG_BABELTRACE_LICENSE = MIT, LGPLv2.1 (include/babeltrace/list.h), GPLv2 (test code)
|
||||
LTTNG_BABELTRACE_LICENSE_FILES = mit-license.txt gpl-2.0.txt LICENSE
|
||||
LTTNG_BABELTRACE_DEPENDENCIES = popt util-linux libglib2 host-pkgconf
|
||||
# The host-elfutils dependency is optional, but since we don't have
|
||||
# options for host packages, just build support for it
|
||||
# unconditionally.
|
||||
HOST_LTTNG_BABELTRACE_DEPENDENCIES = \
|
||||
host-popt host-util-linux host-libglib2 host-pkgconf host-elfutils
|
||||
HOST_LTTNG_BABELTRACE_CONF_OPTS += --enable-debug-info
|
||||
|
||||
# For: 0002-m4-ax_lib_elfutils.m4-add-cache-variable.patch
|
||||
LTTNG_BABELTRACE_AUTORECONF = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
|
||||
LTTNG_BABELTRACE_DEPENDENCIES += elfutils
|
||||
LTTNG_BABELTRACE_CONF_OPTS += --enable-debug-info
|
||||
LTTNG_BABELTRACE_CONF_ENV += bt_cv_lib_elfutils=yes
|
||||
else
|
||||
LTTNG_BABELTRACE_CONF_OPTS += --disable-debug-info
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user