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 28c3533e5fb350fe1c27cf06dee6928825bc7bf2 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Sat, 18 Jul 2026 07:46:09 +0200
Subject: [PATCH] Fix static link of libevent
Change link order to fix build error
/home/thomas/autobuild/instance-2/output-1/host/lib/gcc/i686-buildroot-linux-musl/14.3.0/../../../../i686-buildroot-linux-musl/bin/ld:
/home/thomas/autobuild/instance-2/output-1/host/i686-buildroot-linux-musl/sysroot/usr/lib/libevent_extra.a(http.o):
in function `evhttp_connection_retry':
http.c:(.text+0x1f7b): undefined reference to `bufferevent_socket_get_conn_address_'
Upstream: Not applicable (libevent support was removed in master branch)
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ad18115bbc..8e2a7bfcce 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -355,8 +355,8 @@ if(BUILD_CLI)
bitcoin_cli
bitcoin_common
bitcoin_util
- libevent::core
libevent::extra
+ libevent::core
)
install_binary_component(bitcoin-cli HAS_MANPAGE)
endif()
--
2.47.3

View File

@@ -0,0 +1,30 @@
From 4d33b5bcc924c9271c40a19796f8316ba6aaa276 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Sat, 18 Jul 2026 08:10:21 +0200
Subject: [PATCH] CMakeLists.txt: Don't force -fstack-protector
This allows the environment to decide whether SSP should be used or
not, for example to support toolchains that don't have SSP support.
Upstream: N/A Buildroot specific
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
CMakeLists.txt | 1 -
1 file changed, 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 892f30d94b..93ccbf71ec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -532,7 +532,6 @@ else()
unset(cxx_supports_fortify_source)
try_append_cxx_flags("-Wstack-protector" TARGET core_interface SKIP_LINK)
- try_append_cxx_flags("-fstack-protector-all" TARGET core_interface)
try_append_cxx_flags("-fcf-protection=full" TARGET core_interface)
if(MINGW)
--
2.47.3

56
package/bitcoin/Config.in Normal file
View File

@@ -0,0 +1,56 @@
config BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS
bool
default y if BR2_TOOLCHAIN_HAS_ATOMIC
# bitcoin uses 8-byte __atomic intrinsics, which are not
# available on ARM noMMU platforms that we
# support. BR2_TOOLCHAIN_HAS_ATOMIC does not provide a
# size-level granularity to express this dependency.
depends on !(BR2_arm || BR2_armeb) || BR2_USE_MMU
# error: static assertion failed: Units of size ELEM_SIZE_ALIGN
# need to be able to store a ListNode
# note: the comparison reduces to ‘(4 <= 2)’
depends on !BR2_m68k
config BR2_PACKAGE_BITCOIN
bool "bitcoin"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-thread, boost-filesystem
depends on BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_12
depends on BR2_TOOLCHAIN_HAS_THREADS # boost
depends on BR2_USE_WCHAR
select BR2_HOST_CMAKE_AT_LEAST_3_22
select BR2_PACKAGE_BOOST
select BR2_PACKAGE_LIBEVENT
help
Bitcoin Core is an open source project which maintains and
releases Bitcoin client software called “Bitcoin Core”.
It is a direct descendant of the original Bitcoin software
client released by Satoshi Nakamoto after he published the
famous Bitcoin whitepaper.
Bitcoin Core consists of both "full-node" software for fully
validating the blockchain as well as a bitcoin wallet. The
project also currently maintains related software such as
the cryptography library libsecp256k1 and others located at
GitHub.
https://bitcoincore.org
if BR2_PACKAGE_BITCOIN
config BR2_PACKAGE_BITCOIN_WALLET
bool "wallet support"
select BR2_PACKAGE_SQLITE
help
Enable bitcoin wallet support.
endif
comment "bitcoin needs a toolchain w/ C++, threads, wchar, gcc >= 12"
depends on BR2_PACKAGE_BITCOIN_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_12

View File

@@ -0,0 +1,7 @@
# Hash from: https://bitcoincore.org/bin/bitcoin-core-31.1/SHA256SUMS
# After checking pgp signature from:
# https://bitcoincore.org/bin/bitcoin-core-31.1/SHA256SUMS.asc
sha256 50411d5b43c7e4c90099394759eb6c2add6e7c2dbe728840893d638b6fc6afc9 bitcoin-31.1.tar.gz
# Hash for license file
sha256 b028769f3852a9368ab10bd754ff01ebb741f84a2fa658c9aff82a631bc6ecfc COPYING

View File

@@ -0,0 +1,38 @@
################################################################################
#
# bitcoin
#
################################################################################
BITCOIN_VERSION = 31.1
BITCOIN_SITE = https://bitcoincore.org/bin/bitcoin-core-$(BITCOIN_VERSION)
BITCOIN_LICENSE = MIT
BITCOIN_LICENSE_FILES = COPYING
BITCOIN_CPE_ID_VENDOR = bitcoin
BITCOIN_CPE_ID_PRODUCT = bitcoin_core
BITCOIN_DEPENDENCIES = host-pkgconf boost libevent
BITCOIN_SUPPORTS_IN_SOURCE_BUILD = NO
BITCOIN_MAKE_ENV = BITCOIN_GENBUILD_NO_GIT=1
BITCOIN_CONF_OPTS = \
-DBUILD_BENCH=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_GUI=OFF \
-DENABLE_IPC=OFF
ifeq ($(BR2_PACKAGE_BITCOIN_WALLET),y)
BITCOIN_DEPENDENCIES += sqlite
BITCOIN_CONF_OPTS += \
-DENABLE_WALLET=ON
else
BITCOIN_CONF_OPTS += \
-DENABLE_WALLET=OFF
endif
ifeq ($(BR2_PACKAGE_ZEROMQ),y)
BITCOIN_DEPENDENCIES += zeromq
BITCOIN_CONF_OPTS += -DWITH_ZMQ=ON
else
BITCOIN_CONF_OPTS += -DWITH_ZMQ=OFF
endif
$(eval $(cmake-package))