mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
From 9ff62052a9490c96366d97096a039dca30702b2d Mon Sep 17 00:00:00 2001
|
||||
From: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
Date: Fri, 3 Jul 2020 21:09:20 -0300
|
||||
Subject: [PATCH] Fix redirection of errno header
|
||||
|
||||
The POSIX correct header to include is <errno.h>.
|
||||
|
||||
The glibc silently redirects incorrect includes, but musl libc prints
|
||||
a warning:
|
||||
#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
|
||||
|
||||
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
---
|
||||
c-utility/pal/linux/socket_async_os.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/c-utility/pal/linux/socket_async_os.h b/c-utility/pal/linux/socket_async_os.h
|
||||
index bd59e487c099..1797089851e3 100644
|
||||
--- a/c-utility/pal/linux/socket_async_os.h
|
||||
+++ b/c-utility/pal/linux/socket_async_os.h
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <sys/select.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
-#include <sys/errno.h>
|
||||
+#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <netdb.h>
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
From 43b313988d66de144a528e4cf57827df1e8c692d Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Tue, 12 Apr 2022 20:00:36 +0200
|
||||
Subject: [PATCH] adapters: fix build with libressl >= 2.8.0 (#589)
|
||||
|
||||
Fix the following build failure with libressl >= 2.8.0 raised since
|
||||
https://github.com/libressl-portable/openbsd/commit/703abab3212b397d500bd8c2f5f7ee6b03feb159:
|
||||
|
||||
/nvmedata/autobuild/instance-20/output-1/build/azure-iot-sdk-c-LTS_01_2022_Ref01/c-utility/adapters/tlsio_openssl.c: In function 'add_certificate_to_store':
|
||||
/nvmedata/autobuild/instance-20/output-1/build/azure-iot-sdk-c-LTS_01_2022_Ref01/c-utility/adapters/tlsio_openssl.c:961:24: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
|
||||
961 | bio_method = BIO_s_mem();
|
||||
| ^
|
||||
cc1: all warnings being treated as errors
|
||||
|
||||
Fix #585
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/873f86fb2311ed29a791140f2341943475985fcc
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Retrieved from:
|
||||
https://github.com/Azure/azure-c-shared-utility/commit/43b313988d66de144a528e4cf57827df1e8c692d]
|
||||
---
|
||||
adapters/tlsio_openssl.c | 2 +-
|
||||
adapters/x509_openssl.c | 4 ++--
|
||||
tests/x509_openssl_ut/x509_openssl_ut.c | 4 ++--
|
||||
3 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/c-utility/adapters/tlsio_openssl.c b/c-utility/adapters/tlsio_openssl.c
|
||||
index 4a3df8496..aa48ce52d 100644
|
||||
--- a/c-utility/adapters/tlsio_openssl.c
|
||||
+++ b/c-utility/adapters/tlsio_openssl.c
|
||||
@@ -953,7 +953,7 @@ static int add_certificate_to_store(TLS_IO_INSTANCE* tls_io_instance, const char
|
||||
}
|
||||
else
|
||||
{
|
||||
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L)
|
||||
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
const BIO_METHOD* bio_method;
|
||||
#else
|
||||
BIO_METHOD* bio_method;
|
||||
diff --git a/c-utility/adapters/x509_openssl.c b/c-utility/adapters/x509_openssl.c
|
||||
index 5a9e5ac29..46195b403 100644
|
||||
--- a/c-utility/adapters/x509_openssl.c
|
||||
+++ b/c-utility/adapters/x509_openssl.c
|
||||
@@ -75,7 +75,7 @@ static int load_certificate_chain(SSL_CTX* ssl_ctx, const char* certificate)
|
||||
// certificates.
|
||||
|
||||
/* Codes_SRS_X509_OPENSSL_07_006: [ If successful x509_openssl_add_ecc_credentials shall to import each certificate in the cert chain. ] */
|
||||
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L)
|
||||
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
SSL_CTX_clear_extra_chain_certs(ssl_ctx);
|
||||
#else
|
||||
if (ssl_ctx->extra_certs != NULL)
|
||||
@@ -345,7 +345,7 @@ int x509_openssl_add_certificates(SSL_CTX* ssl_ctx, const char* certificates)
|
||||
else
|
||||
{
|
||||
/*Codes_SRS_X509_OPENSSL_02_012: [ x509_openssl_add_certificates shall get the memory BIO method function by calling BIO_s_mem. ]*/
|
||||
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L)
|
||||
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
const BIO_METHOD* bio_method;
|
||||
#else
|
||||
BIO_METHOD* bio_method;
|
||||
diff --git a/c-utility/tests/x509_openssl_ut/x509_openssl_ut.c b/c-utility/tests/x509_openssl_ut/x509_openssl_ut.c
|
||||
index b3349f6b0..f73191e3f 100644
|
||||
--- a/c-utility/tests/x509_openssl_ut/x509_openssl_ut.c
|
||||
+++ b/c-utility/tests/x509_openssl_ut/x509_openssl_ut.c
|
||||
@@ -348,7 +348,7 @@ BEGIN_TEST_SUITE(x509_openssl_unittests)
|
||||
STRICT_EXPECTED_CALL(BIO_new_mem_buf((void*)TEST_PUBLIC_CERTIFICATE, -1));
|
||||
STRICT_EXPECTED_CALL(PEM_read_bio_X509_AUX(IGNORED_PTR_ARG, NULL, NULL, NULL));
|
||||
STRICT_EXPECTED_CALL(SSL_CTX_use_certificate(IGNORED_PTR_ARG, IGNORED_PTR_ARG));
|
||||
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L)
|
||||
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
// Actual macro name: SSL_CTX_clear_extra_chain_certs:
|
||||
STRICT_EXPECTED_CALL(SSL_CTX_ctrl(TEST_SSL_CTX_STRUCTURE, SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS, 0, NULL));
|
||||
#endif
|
||||
@@ -537,7 +537,7 @@ BEGIN_TEST_SUITE(x509_openssl_unittests)
|
||||
|
||||
umock_c_negative_tests_snapshot();
|
||||
|
||||
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L)
|
||||
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
#ifdef __APPLE__
|
||||
size_t calls_cannot_fail_rsa[] = { 4, 5, 6, 10, 12, 13, 14 };
|
||||
size_t calls_cannot_fail_ecc[] = { 3, 4, 8, 10, 11, 12} ;
|
||||
@@ -0,0 +1,35 @@
|
||||
From 3a7997af72e7a4f70109d1639e6725b39046443e Mon Sep 17 00:00:00 2001
|
||||
From: Francesco Giancane <30423178+fgiancane8@users.noreply.github.com>
|
||||
Date: Fri, 2 Jul 2021 20:47:38 +0200
|
||||
Subject: [PATCH] hmac.c: fix mismatching function prototype (#537)
|
||||
|
||||
The reported function raises a warning when compilers assert the flag
|
||||
`-Warray-parameter=`, signaling that an array-type argument was promoted
|
||||
to a pointer-type argument.
|
||||
|
||||
While in practice in most C implementations this is correct, fixing the
|
||||
warning (and, in this case, indicating the maximum size for the array)
|
||||
would represent a best-practice for finding out-of-bound accesses or
|
||||
identifying wrongly-sized arrays passed in the function.
|
||||
|
||||
Signed-off-by: Francesco Giancane <francesco.giancane@accenture.com>
|
||||
[Retrieved from:
|
||||
https://github.com/Azure/azure-c-shared-utility/commit/3a7997af72e7a4f70109d1639e6725b39046443e]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/hmac.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/hmac.c b/src/hmac.c
|
||||
index 53f2411f8..160af9d2f 100644
|
||||
--- a/c-utility/src/hmac.c
|
||||
+++ b/c-utility/src/hmac.c
|
||||
@@ -208,7 +208,7 @@ int hmacFinalBits(HMACContext *ctx,
|
||||
* sha Error Code.
|
||||
*
|
||||
*/
|
||||
-int hmacResult(HMACContext *ctx, uint8_t *digest)
|
||||
+int hmacResult(HMACContext *ctx, uint8_t digest[USHAMaxHashSize])
|
||||
{
|
||||
if (!ctx) return shaNull;
|
||||
|
||||
@@ -2,6 +2,7 @@ config BR2_PACKAGE_AZURE_IOT_SDK_C
|
||||
bool "azure-iot-sdk-c"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
@@ -13,5 +14,6 @@ config BR2_PACKAGE_AZURE_IOT_SDK_C
|
||||
|
||||
https://github.com/Azure/azure-iot-sdk-c
|
||||
|
||||
comment "azure-iot-sdk-c needs a toolchain w/ C++ and NPTL"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
comment "azure-iot-sdk-c needs a toolchain w/ C++, NPTL and wchar"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_USE_WCHAR
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Locally computed:
|
||||
sha256 36f41f4f59eb0b4a61e7d64ba8fabb4bcc66ab21473688273cd45c2a7b65bb49 azure-iot-sdk-c-LTS_02_2020_Ref01.tar.gz
|
||||
sha256 987b469aa76d6c81e5dbcd62e81f4ece0620770930cf65722754c76aedd6049f azure-iot-sdk-c-LTS_01_2021_Ref01-br1.tar.gz
|
||||
|
||||
# Hash for license files:
|
||||
sha256 be2e9913fad9ff33607287c728f392579e2a6cc83e51b203ef6274c41db02ee7 LICENSE
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AZURE_IOT_SDK_C_VERSION = LTS_02_2020_Ref01
|
||||
AZURE_IOT_SDK_C_VERSION = LTS_01_2021_Ref01
|
||||
AZURE_IOT_SDK_C_SITE = https://github.com/Azure/azure-iot-sdk-c
|
||||
AZURE_IOT_SDK_C_SITE_METHOD = git
|
||||
AZURE_IOT_SDK_C_GIT_SUBMODULES = YES
|
||||
@@ -14,62 +14,4 @@ AZURE_IOT_SDK_C_INSTALL_STAGING = YES
|
||||
AZURE_IOT_SDK_C_DEPENDENCIES = libxml2 openssl libcurl util-linux
|
||||
AZURE_IOT_SDK_C_CONF_OPTS = -Dskip_samples=ON
|
||||
|
||||
# The project only supports building one kind of library.
|
||||
# Further the install target installs the wrong files, so we do it here:
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
AZURE_IOT_SDK_C_LIBS += \
|
||||
uamqp/libuamqp.a \
|
||||
c-utility/libaziotsharedutil.a \
|
||||
iothub_client/libiothub_client.a \
|
||||
iothub_client/libiothub_client_mqtt_ws_transport.a \
|
||||
iothub_client/libiothub_client_amqp_ws_transport.a \
|
||||
iothub_client/libiothub_client_http_transport.a \
|
||||
iothub_client/libiothub_client_amqp_transport.a \
|
||||
iothub_client/libiothub_client_mqtt_transport.a \
|
||||
iothub_service_client/libiothub_service_client.a \
|
||||
serializer/libserializer.a \
|
||||
umqtt/libumqtt.a \
|
||||
deps/uhttp/libuhttp.a \
|
||||
deps/umock-c/libumock_c.a \
|
||||
libparson.a
|
||||
else
|
||||
AZURE_IOT_SDK_C_LIBS += \
|
||||
uamqp/libuamqp.so \
|
||||
c-utility/libaziotsharedutil.so \
|
||||
iothub_client/libiothub_client.so \
|
||||
iothub_client/libiothub_client_mqtt_ws_transport.so \
|
||||
iothub_client/libiothub_client_amqp_ws_transport.so \
|
||||
iothub_client/libiothub_client_http_transport.so \
|
||||
iothub_client/libiothub_client_amqp_transport.so \
|
||||
iothub_client/libiothub_client_mqtt_transport.so \
|
||||
iothub_service_client/libiothub_service_client.so \
|
||||
serializer/libserializer.so \
|
||||
umqtt/libumqtt.so.1.1.12 \
|
||||
deps/uhttp/libuhttp.so \
|
||||
deps/umock-c/libumock_c.so \
|
||||
libparson.so
|
||||
|
||||
define AZURE_IOT_SDK_C_CREATE_SYMLINKS
|
||||
ln -sf libumqtt.so.1.1.12 $(1)/usr/lib/libumqtt.so.1
|
||||
ln -sf libumqtt.so.1.1.12 $(1)/usr/lib/libumqtt.so
|
||||
endef
|
||||
endif
|
||||
|
||||
define AZURE_IOT_SDK_C_INSTALL_LIBS
|
||||
$(foreach l,$(AZURE_IOT_SDK_C_LIBS), \
|
||||
$(INSTALL) -D -m 0755 $(@D)/$(l) $(1)/usr/lib/$(notdir $(l))
|
||||
)
|
||||
$(call AZURE_IOT_SDK_C_CREATE_SYMLINKS,$(1))
|
||||
endef
|
||||
|
||||
define AZURE_IOT_SDK_C_INSTALL_STAGING_CMDS
|
||||
$(call AZURE_IOT_SDK_C_INSTALL_LIBS,$(STAGING_DIR))
|
||||
cp -a $(@D)/c-utility/inc/* $(STAGING_DIR)/usr/include/
|
||||
cp -a $(@D)/iothub_client/inc/* $(STAGING_DIR)/usr/include/
|
||||
endef
|
||||
|
||||
define AZURE_IOT_SDK_C_INSTALL_TARGET_CMDS
|
||||
$(call AZURE_IOT_SDK_C_INSTALL_LIBS,$(TARGET_DIR))
|
||||
endef
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
||||
Reference in New Issue
Block a user