Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,48 @@
From 35076fd4592ca23136ff5eacdf8eaebc926e0224 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Thu, 23 Feb 2023 13:04:08 +0100
Subject: [PATCH] configure.ac: fix popt static build
Fix the following popt static build failure:
configure:18149: checking for poptGetContext in -lpopt
configure:18172: /home/buildroot/autobuild/instance-2/output-1/host/bin/m68k-buildroot-linux-uclibc-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -static -I/home/buildroot/autobuild/instance-2/output-1/host/bin/../m68k-buildroot-linux-uclibc/sysroot/usr/include/uuid -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -static conftest.c -lpopt -L/home/buildroot/autobuild/instance-2/output-1/host/bin/../m68k-buildroot-linux-uclibc/sysroot/usr/lib -luuid >&5
/home/buildroot/autobuild/instance-2/output-1/host/lib/gcc/m68k-buildroot-linux-uclibc/10.4.0/../../../../m68k-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-2/output-1/host/bin/../m68k-buildroot-linux-uclibc/sysroot/usr/lib/libpopt.a(poptint.o): in function `POPT_fprintf':
poptint.c:(.text+0x28a): undefined reference to `libiconv_open'
[...]
checking for poptGetContext in -lpopt... no
configure: error: Cannot find popt.
Fixes:
- http://autobuild.buildroot.org/results/4f465fe15664b1f9df3f26c331dc550852972f2f
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: not upstreamable as popt has been removed with
https://github.com/efficios/babeltrace/commit/916d0d910ad5407bc7826505aa05b277f5739a34]
---
configure.ac | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index a17c23c3..8f700d3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -223,8 +223,11 @@ AC_CHECK_LIB([c], [faccessat],
]
)
-AC_CHECK_LIB([popt], [poptGetContext], [],
- [AC_MSG_ERROR([Cannot find popt.])]
+PKG_CHECK_MODULES([POPT], [popt], [LIBS="${POPT_LIBS} ${LIBS}"],
+[
+ AC_CHECK_LIB([popt], [poptGetContext], [],
+ [AC_MSG_ERROR([Cannot find popt.])])
+]
)
# For Python
--
2.39.1

View File

@@ -0,0 +1,35 @@
config BR2_PACKAGE_LTTNG_BABELTRACE
bool "lttng-babeltrace"
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_MMU # libglib2
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_POPT
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

View File

@@ -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

View File

@@ -0,0 +1,7 @@
# From http://www.efficios.com/files/babeltrace/babeltrace-1.5.7.tar.bz2.sha256
sha256 215331e025ffd39c665a34231b9429180e48aca78f79fb972d0bf1322d2b807b babeltrace-1.5.7.tar.bz2
# Hash for license files
sha256 2f801b7c2494850c3d91da820eb230502dc0192c9d0db024db37ec08d0be1434 mit-license.txt
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 gpl-2.0.txt
sha256 12d4222ac628fe4092cba8ed90bc5227a4dedd0b94973273cecbc393325bf1c2 LICENSE

View File

@@ -0,0 +1,32 @@
################################################################################
#
# lttng-babeltrace
#
################################################################################
LTTNG_BABELTRACE_SITE = http://www.efficios.com/files/babeltrace
LTTNG_BABELTRACE_VERSION = 1.5.7
LTTNG_BABELTRACE_SOURCE = babeltrace-$(LTTNG_BABELTRACE_VERSION).tar.bz2
LTTNG_BABELTRACE_LICENSE = MIT, LGPL-2.1 (include/babeltrace/list.h), GPL-2.0 (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
# We're patching tests/lib/Makefile.am
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))