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,56 @@
From c21cde9010175e2355df17d4e81fedd6020603f8 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sat, 14 May 2022 00:03:51 +0200
Subject: [PATCH] fix build with libressl >= 3.5.0
Fix the following build failure with libressl >= 3.5.0:
crypto-openssl-10.cpp:78:18: error: field 'ctx' has incomplete type 'HMAC_CTX' {aka 'hmac_ctx_st'}
78 | HMAC_CTX ctx;
| ^~~
Fixes:
- http://autobuild.buildroot.org/results/98747d470c2ad59280934e160d24bd3fdad1503c
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: https://github.com/AGWA/git-crypt/pull/249]
---
crypto-openssl-10.cpp | 4 +++-
crypto-openssl-11.cpp | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/crypto-openssl-10.cpp b/crypto-openssl-10.cpp
index f0f2c53..a7a5d52 100644
--- a/crypto-openssl-10.cpp
+++ b/crypto-openssl-10.cpp
@@ -29,8 +29,10 @@
*/
#include <openssl/opensslconf.h>
+#include <openssl/opensslv.h>
-#if !defined(OPENSSL_API_COMPAT)
+#if !defined(OPENSSL_API_COMPAT) && \
+ !(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x30500000L)
#include "crypto.hpp"
#include "key.hpp"
diff --git a/crypto-openssl-11.cpp b/crypto-openssl-11.cpp
index adf03bb..32c2483 100644
--- a/crypto-openssl-11.cpp
+++ b/crypto-openssl-11.cpp
@@ -29,8 +29,10 @@
*/
#include <openssl/opensslconf.h>
+#include <openssl/opensslv.h>
-#if defined(OPENSSL_API_COMPAT)
+#if defined(OPENSSL_API_COMPAT) || \
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x30500000L)
#include "crypto.hpp"
#include "key.hpp"
--
2.35.1

View File

@@ -0,0 +1,22 @@
config BR2_PACKAGE_GIT_CRYPT
bool "git-crypt"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
depends on BR2_USE_MMU # git
select BR2_PACKAGE_GIT # runtime
select BR2_PACKAGE_OPENSSL
help
git-crypt enables transparent encryption and decryption of
files in a git repository.
https://www.agwa.name/projects/git-crypt/
comment "git-crypt needs a toolchain w/ C++, gcc >= 4.9"
depends on !BR2_INSTALL_LIBSTDCPP \
|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
depends on BR2_USE_MMU
comment "git-crypt needs a toolchain not affected by GCC bug 64735"
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735

View File

@@ -0,0 +1,5 @@
# Locally calculated after checking pgp signature
sha256 50f100816a636a682404703b6c23a459e4d30248b2886a5cf571b0d52527c7d8 git-crypt-0.7.0.tar.gz
# Locally calculated
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
sha256 506657e7a381165550e6c33e35b3b03bbef3e1feb68ba5529e264bd75ed2dc64 parse_options.hpp

View File

@@ -0,0 +1,27 @@
################################################################################
#
# git-crypt
#
################################################################################
GIT_CRYPT_VERSION = 0.7.0
GIT_CRYPT_SITE = https://www.agwa.name/projects/git-crypt/downloads
GIT_CRYPT_DEPENDENCIES = host-pkgconf openssl
GIT_CRYPT_LICENSE = GPL-3.0+, MIT
GIT_CRYPT_LICENSE_FILES = COPYING parse_options.hpp
GIT_CRYPT_LIBS = `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
define GIT_CRYPT_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
LDFLAGS="$(TARGET_LDFLAGS) $(GIT_CRYPT_LIBS)" \
CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11 -DOPENSSL_API_COMPAT=0x30000000L" \
PREFIX=/usr
endef
define GIT_CRYPT_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
PREFIX=/usr install
endef
$(eval $(generic-package))