Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
From 8c3a5d0921090e2fc3c4e2561509d23eb9ffa6dd Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 2 Apr 2021 21:07:07 +0200
|
||||
Subject: [PATCH] configure.ac: add --disable-tests
|
||||
|
||||
Allow the user to explicitly disable tests
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/lttng/lttng-tools/pull/162]
|
||||
---
|
||||
configure.ac | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 04f9cef4..372cdf3d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -862,6 +862,8 @@ AC_ARG_ENABLE([bin-lttng-sessiond], AS_HELP_STRING([--disable-bin-lttng-sessiond
|
||||
[Disable the build of lttng-sessiond binaries]))
|
||||
AC_ARG_ENABLE([extras], AS_HELP_STRING([--disable-extras],
|
||||
[Disable the build of the extra components]))
|
||||
+AC_ARG_ENABLE([tests], AS_HELP_STRING([--disable-tests],
|
||||
+ [Disable the build of the test components]))
|
||||
|
||||
|
||||
build_lib_consumer=no
|
||||
@@ -1013,6 +1015,7 @@ AM_CONDITIONAL([BUILD_BIN_LTTNG_SESSIOND], [test x$enable_bin_lttng_sessiond !=
|
||||
|
||||
# Export the tests and extras build conditions.
|
||||
AS_IF([\
|
||||
+test "x$enable_tests" != "xno" && \
|
||||
test "x$enable_bin_lttng" != "xno" && \
|
||||
test "x$enable_bin_lttng_consumerd" != "xno" && \
|
||||
test "x$enable_bin_lttng_crash" != "xno" && \
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
From d94d2b90c5148c4d83f1424b6e984044f2d8191f Mon Sep 17 00:00:00 2001
|
||||
From: Mingli Yu <mingli.yu@windriver.com>
|
||||
Date: Thu, 24 Jul 2025 14:35:51 +0800
|
||||
Subject: [PATCH] Fix: eventfd.cpp: Remove the scope resolution operator
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=utf8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Remove the scope resolution operator :: to fix the below build failure
|
||||
with musl.
|
||||
| ../../../sources/lttng-tools-2.14.0/src/common/eventfd.cpp:18:31: error: expected id-expression before numeric constant
|
||||
| 18 | int flags = ::EFD_CLOEXEC;
|
||||
| | ^~~~~~~~~~~
|
||||
| ../../../sources/lttng-tools-2.14.0/src/common/eventfd.cpp:21:36: error: expected id-expression before numeric constant
|
||||
| 21 | flags |= ::EFD_SEMAPHORE;
|
||||
| | ^~~~~~~~~~~~~
|
||||
|
||||
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
|
||||
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
|
||||
Change-Id: I405f6f15a25f7e6b7f0676093091a9e8a384739d
|
||||
|
||||
Upstream: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff;h=d94d2b90c5148c4d83f1424b6e984044f2d8191f
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/common/eventfd.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/common/eventfd.cpp b/src/common/eventfd.cpp
|
||||
index d331bbe40..447520f25 100644
|
||||
--- a/src/common/eventfd.cpp
|
||||
+++ b/src/common/eventfd.cpp
|
||||
@@ -15,10 +15,10 @@
|
||||
|
||||
lttng::eventfd::eventfd(bool use_semaphore_semantics, std::uint64_t initial_value) :
|
||||
file_descriptor([use_semaphore_semantics, initial_value]() {
|
||||
- int flags = ::EFD_CLOEXEC;
|
||||
+ int flags = EFD_CLOEXEC;
|
||||
|
||||
if (use_semaphore_semantics) {
|
||||
- flags |= ::EFD_SEMAPHORE;
|
||||
+ flags |= EFD_SEMAPHORE;
|
||||
}
|
||||
|
||||
const auto raw_fd = ::eventfd(initial_value, flags);
|
||||
--
|
||||
2.47.3
|
||||
|
||||
34
package/lttng-tools/Config.in
Normal file
34
package/lttng-tools/Config.in
Normal file
@@ -0,0 +1,34 @@
|
||||
config BR2_PACKAGE_LTTNG_TOOLS
|
||||
bool "lttng-tools"
|
||||
# liburcu only works on some architectures and requires thread support
|
||||
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS # uses dlfcn
|
||||
depends on BR2_INSTALL_LIBSTDCPP # liburcu
|
||||
select BR2_PACKAGE_LIBURCU
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
select BR2_PACKAGE_POPT
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
help
|
||||
Userspace utilities for the LTTng 2.x tracing
|
||||
infrastructure.
|
||||
|
||||
Those utilities are required on the target system to start
|
||||
and stop tracing sessions. Analysis of the trace can be done
|
||||
on the host machine using the babeltrace utility. This
|
||||
utility is automatically built by Buildroot in
|
||||
$(O)/host/bin/babeltrace, as a dependency of
|
||||
lttng-tools. However, there is also a lttng-babeltrace
|
||||
package for the target, if babeltrace on the target is
|
||||
interesting.
|
||||
|
||||
If userspace tracing is desired, you need to enable
|
||||
lttng-libust.
|
||||
|
||||
http://lttng.org
|
||||
|
||||
comment "lttng-tools needs a toolchain w/ threads, dynamic library, C++"
|
||||
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
|
||||
!BR2_INSTALL_LIBSTDCPP
|
||||
10
package/lttng-tools/lttng-tools.hash
Normal file
10
package/lttng-tools/lttng-tools.hash
Normal file
@@ -0,0 +1,10 @@
|
||||
# From https://lttng.org/files/lttng-tools/lttng-tools-2.14.0.tar.bz2.sha256
|
||||
sha256 d8c39c26cec13b7bd82551cd52a22efc358b888e36ebcf9c1b60ef1c3a3c2fd3 lttng-tools-2.14.0.tar.bz2
|
||||
|
||||
# Locally computed
|
||||
sha256 068e55c7dbe597400199aee75ac5e71bdb2ca88c4c9a4cfa8e1fbc61f933eda5 LICENSE
|
||||
sha256 6313108c23efffa36948f8b2cff1560a5935373b527b0e1a837cc77e6ed1bacd LICENSES/BSD-2-Clause
|
||||
sha256 7a83b1aeb460458db9a4bd521d7f237c45b1650f6e60ea5ffc71e49472454de3 LICENSES/BSD-3-Clause
|
||||
sha256 6841c85b94f9dab319356e3aaf9e969fcedad51d3aaadf665bf86f34f4186b62 LICENSES/GPL-2.0
|
||||
sha256 d72921266bc8452a8789f8a04a82755373990d00b7e0b0f1a8edb8f854e94d1c LICENSES/LGPL-2.1
|
||||
sha256 323c587d0ccf10e376f8bf9a7f31fb4ca6078105194b42e0b1e0ee2bc9bde71f LICENSES/MIT
|
||||
28
package/lttng-tools/lttng-tools.mk
Normal file
28
package/lttng-tools/lttng-tools.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# lttng-tools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LTTNG_TOOLS_VERSION = 2.14.0
|
||||
LTTNG_TOOLS_SITE = https://lttng.org/files/lttng-tools
|
||||
LTTNG_TOOLS_SOURCE = lttng-tools-$(LTTNG_TOOLS_VERSION).tar.bz2
|
||||
LTTNG_TOOLS_INSTALL_STAGING = YES
|
||||
LTTNG_TOOLS_LICENSE = GPL-2.0, LGPL-2.1 (include/lttng/*, src/lib/lttng-ctl/*)
|
||||
LTTNG_TOOLS_LICENSE_FILES = LICENSE $(addprefix LICENSES/,BSD-2-Clause BSD-3-Clause GPL-2.0 LGPL-2.1 MIT)
|
||||
LTTNG_TOOLS_DEPENDENCIES = liburcu libxml2 popt util-linux
|
||||
# We're patching configure.ac
|
||||
LTTNG_TOOLS_AUTORECONF = YES
|
||||
LTTNG_TOOLS_CONF_OPTS = \
|
||||
--disable-man-pages \
|
||||
--disable-tests \
|
||||
--with-lttng-system-rundir=/run/lttng
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LTTNG_LIBUST),y)
|
||||
LTTNG_TOOLS_CONF_OPTS += --with-lttng-ust
|
||||
LTTNG_TOOLS_DEPENDENCIES += lttng-libust
|
||||
else
|
||||
LTTNG_TOOLS_CONF_OPTS += --without-lttng-ust
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user