initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -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;
+19
View File
@@ -0,0 +1,19 @@
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
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
help
Microsoft Azure IoT Hub device SDK for C is used
to connect devices running C code to Azure IoT Hub.
https://github.com/Azure/azure-iot-sdk-c
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
@@ -0,0 +1,5 @@
# Locally computed:
sha256 987b469aa76d6c81e5dbcd62e81f4ece0620770930cf65722754c76aedd6049f azure-iot-sdk-c-LTS_01_2021_Ref01-br1.tar.gz
# Hash for license files:
sha256 be2e9913fad9ff33607287c728f392579e2a6cc83e51b203ef6274c41db02ee7 LICENSE
@@ -0,0 +1,75 @@
################################################################################
#
# azure-iot-sdk-c
#
################################################################################
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
AZURE_IOT_SDK_C_LICENSE = MIT
AZURE_IOT_SDK_C_LICENSE_FILES = LICENSE
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))