Initial Commit
- initial default booting image
This commit is contained in:
42
package/fmt/0001-fix-fallback-uint128-bitwise-not.patch
Normal file
42
package/fmt/0001-fix-fallback-uint128-bitwise-not.patch
Normal file
@@ -0,0 +1,42 @@
|
||||
From 588b3a0f8f6a8bcf2a959cae882d5b2703e86737 Mon Sep 17 00:00:00 2001
|
||||
From: Vinay Kumar <vkslog69@gmail.com>
|
||||
Date: Thu, 18 Jun 2026 12:22:12 +0530
|
||||
Subject: [PATCH] Fix fallback uint128 bitwise not (#4813)
|
||||
|
||||
Upstream: https://github.com/fmtlib/fmt/commit/588b3a0f8f6a8bcf2a959cae882d5b2703e86737
|
||||
Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
|
||||
---
|
||||
include/fmt/format.h | 3 +++
|
||||
test/format-test.cc | 5 +++++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/include/fmt/format.h b/include/fmt/format.h
|
||||
index 5044befdd863..570627922c62 100644
|
||||
--- a/include/fmt/format.h
|
||||
+++ b/include/fmt/format.h
|
||||
@@ -326,6 +326,9 @@ class uint128 {
|
||||
-> uint128 {
|
||||
return {lhs.hi_ & rhs.hi_, lhs.lo_ & rhs.lo_};
|
||||
}
|
||||
+ friend constexpr auto operator~(const uint128& n) -> uint128 {
|
||||
+ return {~n.hi_, ~n.lo_};
|
||||
+ }
|
||||
friend FMT_CONSTEXPR auto operator+(const uint128& lhs, const uint128& rhs)
|
||||
-> uint128 {
|
||||
auto result = uint128(lhs);
|
||||
diff --git a/test/format-test.cc b/test/format-test.cc
|
||||
index 9a2258d5921f..8c2670a19fc3 100644
|
||||
--- a/test/format-test.cc
|
||||
+++ b/test/format-test.cc
|
||||
@@ -82,6 +82,11 @@ TEST(uint128_test, minus) {
|
||||
EXPECT_EQ(n - 2, 40);
|
||||
}
|
||||
|
||||
+TEST(uint128_test, bitwise_not) {
|
||||
+ auto n = ~uint128(0x123456789abcdef0, 0x0fedcba987654321);
|
||||
+ EXPECT_EQ(n, uint128(0xedcba9876543210f, 0xf0123456789abcde));
|
||||
+}
|
||||
+
|
||||
TEST(uint128_test, plus_assign) {
|
||||
auto n = uint128(32);
|
||||
n += uint128(10);
|
||||
13
package/fmt/Config.in
Normal file
13
package/fmt/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_FMT
|
||||
bool "fmt"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_WCHAR
|
||||
help
|
||||
fmt is an open-source formatting library for C++. It can be
|
||||
used as a safe alternative to printf or as a fast alternative
|
||||
to IOStreams.
|
||||
|
||||
https://fmt.dev
|
||||
|
||||
comment "fmt needs a toolchain w/ C++, wchar"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR
|
||||
3
package/fmt/fmt.hash
Normal file
3
package/fmt/fmt.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 a2f4a8d51178f954e4c339007f77edd76ba0cb2e36f87a48e5a5403d9be5878f fmt-12.2.0.zip
|
||||
sha256 a65fcc5a1095fc33cc37e4fff69366e49d7e92f613558a2b95ed1b70e33758b4 LICENSE
|
||||
23
package/fmt/fmt.mk
Normal file
23
package/fmt/fmt.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
#
|
||||
# fmt
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FMT_VERSION = 12.2.0
|
||||
FMT_SITE = https://github.com/fmtlib/fmt/releases/download/$(FMT_VERSION)
|
||||
FMT_SOURCE = fmt-$(FMT_VERSION).zip
|
||||
FMT_LICENSE = MIT with exception
|
||||
FMT_LICENSE_FILES = LICENSE
|
||||
FMT_CPE_ID_VENDOR = fmt
|
||||
FMT_INSTALL_STAGING = YES
|
||||
|
||||
FMT_CONF_OPTS = \
|
||||
-DFMT_INSTALL=ON \
|
||||
-DFMT_TEST=OFF
|
||||
|
||||
define FMT_EXTRACT_CMDS
|
||||
$(UNZIP) -d $(BUILD_DIR) $(FMT_DL_DIR)/$(FMT_SOURCE)
|
||||
endef
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user