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,26 @@
From 898a997855168c0e6a689072fefba89246271a5d Mon Sep 17 00:00:00 2001
From: Nathan Moinvaziri <nathan@nathanm.com>
Date: Tue, 19 Dec 2023 14:35:05 -0800
Subject: [PATCH] Fixed missing include for std::find_if.
Throws an error when compiling on Windows.
Change-Id: Ieb34c00cf199aaa1b45a440086c48b8ed363b3c7
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5137658
Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
Upstream: https://github.com/google/breakpad/commit/898a997855168c0e6a689072fefba89246271a5d
Signed-off-by: Kadambini Nema <kadambini.nema@gmail.com>
---
diff --git a/src/common/module.cc b/src/common/module.cc
index 0eb5aad..b6f5da7 100644
--- a/src/common/module.cc
+++ b/src/common/module.cc
@@ -42,6 +42,7 @@
#include <stdio.h>
#include <string.h>
+#include <algorithm>
#include <functional>
#include <iostream>
#include <memory>

View File

@@ -0,0 +1,54 @@
config BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
bool
default y if BR2_i386 || BR2_x86_64 || BR2_arm || BR2_aarch64 || \
BR2_mips || BR2_mipsel
config BR2_PACKAGE_GOOGLE_BREAKPAD
bool "google-breakpad"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
depends on BR2_USE_WCHAR
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_TOOLCHAIN_USES_GLIBC
depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
depends on BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
select BR2_PACKAGE_LINUX_SYSCALL_SUPPORT
select BR2_PACKAGE_ZLIB
help
Google-Breakpad is a library and tool suite that allows you
to distribute an application to users with compiler-provided
debugging information removed, record crashes in compact
"minidump" files, send them back to your server, and produce
C and C++ stack traces from these minidumps. Breakpad can
also write minidumps on request for programs that have not
crashed.
You may want to set BR2_ENABLE_DEBUG, in order to get useful
results.
This target package installs a static library named
libbreakpad_client.a which should be linked into programs
willing to use Google Breakpad. A host variant of this
package is also available, and provides the different tools
needed to extract the debugging symbols from target
binaries.
https://chromium.googlesource.com/breakpad/breakpad
if BR2_PACKAGE_GOOGLE_BREAKPAD
config BR2_PACKAGE_GOOGLE_BREAKPAD_TOOLS
bool "Build target tools"
help
Build processor and tools for target: dump_syms,
minidump_stackwalk and microdump_stackwalk.
endif
comment "google-breakpad requires a glibc toolchain w/ wchar, threads, C++, gcc >= 7"
depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
depends on BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_USES_GLIBC || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_7

View File

@@ -0,0 +1,8 @@
config BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
bool
default y if BR2_HOSTARCH = "x86_64"
default y if BR2_HOSTARCH = "x86"
default y if BR2_HOSTARCH = "arm"
default y if BR2_HOSTARCH = "aarch64"
default y if BR2_HOSTARCH = "mips"
default y if BR2_HOSTARCH = "mipsel"

View File

@@ -0,0 +1,34 @@
#!/bin/sh
NAME="${0##*/}"
STAGING_DIR="${1}"
TARGET_DIR="${2}"
shift 2
SYMBOLS_DIR="${STAGING_DIR}/usr/share/google-breakpad-symbols"
rm -rf "${SYMBOLS_DIR}"
mkdir -p "${SYMBOLS_DIR}"
error() {
fmt="${1}"; shift
printf "%s: ${fmt}" "${NAME}" "${@}" >&2
exit 1
}
for FILE in "${@}"; do
f="${TARGET_DIR}${FILE}"
if [ ! -e "${f}" ]; then
error "%s: No such file or directory\n" "${FILE}"
fi
if [ -d "${f}" ]; then
error "%s: Is a directory\n" "${FILE}"
fi
if dump_syms "${f}" > "${SYMBOLS_DIR}/tmp.sym" 2>/dev/null; then
hash=$(head -n1 "${SYMBOLS_DIR}/tmp.sym" | cut -d ' ' -f 4);
filename=$(basename "${FILE}");
mkdir -p "${SYMBOLS_DIR}/${filename}/${hash}"
mv "${SYMBOLS_DIR}/tmp.sym" "${SYMBOLS_DIR}/${filename}/${hash}/${filename}.sym";
else
error "Error dumping symbols for: '%s'\n" "${FILE}"
fi
done
rm -rf "${SYMBOLS_DIR}/tmp"

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 23d74651790fd8168a9f5d910988a93abee7d4c5297ec477dca545b037a237c0 google-breakpad-f49c2f1a2023da0cb055874fba050563dfea57db-git4.tar.gz
sha256 69b3d80c19a460e09716910d54d1ada5d800716e2b73751bebac44352590f646 LICENSE

View File

@@ -0,0 +1,56 @@
################################################################################
#
# google-breakpad
#
################################################################################
GOOGLE_BREAKPAD_VERSION = f49c2f1a2023da0cb055874fba050563dfea57db
GOOGLE_BREAKPAD_SITE = https://chromium.googlesource.com/breakpad/breakpad
GOOGLE_BREAKPAD_SITE_METHOD = git
GOOGLE_BREAKPAD_INSTALL_STAGING = YES
# APSL-2.0, BSD-4-Clause, Apache-2.0, BSD-2-Clause not listed, only
# used for Mac code, GPL-2.0 not listed, only used for autotools code
GOOGLE_BREAKPAD_LICENSE = \
BSD-3-Clause, \
Unicode-DFS-2015 (UTF code), \
MIT (src/common/linux/breakpad_getcontext.S), \
curl (src/third_party/curl/), \
ClArtistic (src/third_party/libdisasm)
GOOGLE_BREAKPAD_LICENSE_FILES = LICENSE
# Needed because the configure/Makefile.in provided in the Git
# repository is out of date, and links with -lzstd even if
# --disable-zstd is passed
GOOGLE_BREAKPAD_AUTORECONF = YES
GOOGLE_BREAKPAD_DEPENDENCIES = host-google-breakpad linux-syscall-support zlib
GOOGLE_BREAKPAD_CONF_OPTS = --disable-zstd
HOST_GOOGLE_BREAKPAD_DEPENDENCIES = host-linux-syscall-support host-zlib
HOST_GOOGLE_BREAKPAD_CONF_OPTS = --disable-zstd
ifeq ($(BR2_PACKAGE_GOOGLE_BREAKPAD_TOOLS),)
GOOGLE_BREAKPAD_INSTALL_TARGET = NO
endif
# Avoid using depot-tools to download this file.
define HOST_GOOGLE_BREAKPAD_LSS
$(INSTALL) -D -m 0644 \
$(HOST_DIR)/include/linux_syscall_support.h \
$(@D)/src/third_party/lss/linux_syscall_support.h
endef
HOST_GOOGLE_BREAKPAD_PRE_CONFIGURE_HOOKS += HOST_GOOGLE_BREAKPAD_LSS
define GOOGLE_BREAKPAD_LSS
$(INSTALL) -D -m 0644 \
$(STAGING_DIR)/usr/include/linux_syscall_support.h \
$(@D)/src/third_party/lss/linux_syscall_support.h
endef
GOOGLE_BREAKPAD_PRE_CONFIGURE_HOOKS += GOOGLE_BREAKPAD_LSS
define GOOGLE_BREAKPAD_EXTRACT_SYMBOLS
$(EXTRA_ENV) package/google-breakpad/gen-syms.sh $(STAGING_DIR) \
$(TARGET_DIR) $(call qstrip,$(BR2_GOOGLE_BREAKPAD_INCLUDE_FILES))
endef
GOOGLE_BREAKPAD_TARGET_FINALIZE_HOOKS += GOOGLE_BREAKPAD_EXTRACT_SYMBOLS
$(eval $(autotools-package))
$(eval $(host-autotools-package))