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,46 @@
From e230f474b87134e8c6c85b630084c612057f253e Mon Sep 17 00:00:00 2001
From: Evgenii Kliuchnikov <eustas@google.com>
Date: Mon, 3 Nov 2025 07:20:19 -0800
Subject: [PATCH] disable BROTLI_MODEL macro for some targets
PiperOrigin-RevId: 827486322
Upstream: https://github.com/google/brotli/commit/e230f474b87134e8c6c85b630084c612057f253e
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
c/common/platform.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/c/common/platform.h b/c/common/platform.h
index b59f9b809..e1254d5ca 100644
--- a/c/common/platform.h
+++ b/c/common/platform.h
@@ -213,6 +213,10 @@ To apply compiler hint, enclose the branching condition into macros, like this:
#define BROTLI_TARGET_MIPS64
#endif
+#if defined(__ia64__) || defined(_M_IA64)
+#define BROTLI_TARGET_IA64
+#endif
+
#if defined(BROTLI_TARGET_X64) || defined(BROTLI_TARGET_ARMV8_64) || \
defined(BROTLI_TARGET_POWERPC64) || defined(BROTLI_TARGET_RISCV64) || \
defined(BROTLI_TARGET_LOONGARCH64) || defined(BROTLI_TARGET_MIPS64)
@@ -665,13 +669,14 @@ BROTLI_UNUSED_FUNCTION void BrotliSuppressUnusedFunctions(void) {
#undef BROTLI_TEST
#endif
-#if BROTLI_GNUC_HAS_ATTRIBUTE(model, 3, 0, 3)
+#if !defined(BROTLI_MODEL) && BROTLI_GNUC_HAS_ATTRIBUTE(model, 3, 0, 3) && \
+ !defined(BROTLI_TARGET_IA64) && !defined(BROTLI_TARGET_LOONGARCH64)
#define BROTLI_MODEL(M) __attribute__((model(M)))
#else
#define BROTLI_MODEL(M) /* M */
#endif
-#if BROTLI_GNUC_HAS_ATTRIBUTE(cold, 4, 3, 0)
+#if !defined(BROTLI_COLD) && BROTLI_GNUC_HAS_ATTRIBUTE(cold, 4, 3, 0)
#define BROTLI_COLD __attribute__((cold))
#else
#define BROTLI_COLD /* cold */

12
package/brotli/Config.in Normal file
View File

@@ -0,0 +1,12 @@
config BR2_PACKAGE_BROTLI
bool "brotli"
help
Generic-purpose lossless compression library. The algorithm
compresses data using a combination of a modern variant of
the LZ77 algorithm, Huffman coding and 2nd order context
modeling, with a compression ratio comparable to the best
currently available general-purpose compression methods. It
is similar in speed with deflate but offers more dense
compression.
https://github.com/google/brotli

View File

@@ -0,0 +1,5 @@
# Locally generated:
sha512 f94542afd2ecd96cc41fd21a805a3da314281ae558c10650f3e6d9ca732b8425bba8fde312823f0a564c7de3993bdaab5b43378edab65ebb798cefb6fd702256 v1.2.0.tar.gz
# Hash for license files:
sha512 bae78184c2f50f86d8c727826d3982c469454c42b9af81f4ef007e39036434fa894cf5be3bf5fc65b7de2301f0a72d067a8186e303327db8a96bd14867e0a3a8 LICENSE

32
package/brotli/brotli.mk Normal file
View File

@@ -0,0 +1,32 @@
################################################################################
#
# brotli
#
################################################################################
BROTLI_VERSION = 1.2.0
BROTLI_SOURCE = v$(BROTLI_VERSION).tar.gz
BROTLI_SITE = https://github.com/google/brotli/archive
BROTLI_LICENSE = MIT
BROTLI_LICENSE_FILES = LICENSE
BROTLI_CPE_ID_VENDOR = google
BROTLI_INSTALL_STAGING = YES
BROTLI_CONF_OPTS = \
-DBROTLI_DISABLE_TESTS=ON \
-DBROTLI_BUNDLED_MODE=OFF
BROTLI_CFLAGS = $(TARGET_CFLAGS)
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
BROTLI_CFLAGS += -O0
endif
# Workaround "Error: value -1234 out of range" assembler issues
# when building with optimizations.
ifeq ($(BR2_m68k),y)
BROTLI_CFLAGS += -Os
endif
BROTLI_CONF_OPTS += -DCMAKE_C_FLAGS="$(BROTLI_CFLAGS)"
$(eval $(cmake-package))