initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From bb71b21eb9407479ad729b3c858b0fc350fae335 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 21 Feb 2021 19:39:59 +0100
|
||||
Subject: [PATCH] CMakeLists.txt: add BUILD_EXAMPLE
|
||||
|
||||
Allow the user to disable example
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[yann.morin.1998@free.fr: backport from upstream]
|
||||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
---
|
||||
CMakeLists.txt | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 110d933..c52ab79 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(libuwsc C)
|
||||
|
||||
+option(BUILD_EXAMPLE "Build example" ON)
|
||||
+
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
||||
|
||||
add_subdirectory(src)
|
||||
-add_subdirectory(example)
|
||||
+if(BUILD_EXAMPLE)
|
||||
+ add_subdirectory(example)
|
||||
+endif()
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From 8cb416140741a596235b8acc46b2b119b13ebfab Mon Sep 17 00:00:00 2001
|
||||
From: Rosen Penev <rosenp@gmail.com>
|
||||
Date: Tue, 6 Jul 2021 21:01:52 -0700
|
||||
Subject: [PATCH] fix bad indentation
|
||||
|
||||
Fixes error with GCC11.
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/zhaojh329/libuwsc/commit/8cb416140741a596235b8acc46b2b119b13ebfab]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/lua/uwsc_lua.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/lua/uwsc_lua.c b/src/lua/uwsc_lua.c
|
||||
index de6932e..84689fe 100644
|
||||
--- a/src/lua/uwsc_lua.c
|
||||
+++ b/src/lua/uwsc_lua.c
|
||||
@@ -178,7 +178,7 @@ static int uwsc_lua_on(lua_State *L)
|
||||
else
|
||||
luaL_argcheck(L, false, 2, "available event name: open message error close");
|
||||
|
||||
- return 0;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
static int __uwsc_lua_send(lua_State *L, int op)
|
||||
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_LIBUWSC
|
||||
bool "libuwsc"
|
||||
select BR2_PACKAGE_LIBEV
|
||||
help
|
||||
A Lightweight and fully asynchronous WebSocket client
|
||||
library based on libev.
|
||||
|
||||
https://github.com/zhaojh329/libuwsc
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 a06b7324671e181ffe3165e93e6f94c7ac1380f69e32a52e80c8da7016acd60d libuwsc-3.3.5.tar.gz
|
||||
sha256 99efed4bbc0b62f96f999ef23399e38234fb91651af734fd389a52b033a85b55 LICENSE
|
||||
@@ -0,0 +1,53 @@
|
||||
################################################################################
|
||||
#
|
||||
# libuwsc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBUWSC_VERSION = 3.3.5
|
||||
LIBUWSC_SITE = https://github.com/zhaojh329/libuwsc/releases/download/v$(LIBUWSC_VERSION)
|
||||
LIBUWSC_LICENSE = MIT
|
||||
LIBUWSC_LICENSE_FILES = LICENSE
|
||||
LIBUWSC_INSTALL_STAGING = YES
|
||||
LIBUWSC_DEPENDENCIES = libev
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIBUWSC_DEPENDENCIES += openssl
|
||||
LIBUWSC_CONF_OPTS += \
|
||||
-DUWSC_SSL_SUPPORT=ON \
|
||||
-DUWSC_USE_MBEDTLS=OFF \
|
||||
-DUWSC_USE_OPENSSL=ON \
|
||||
-DUWSC_USE_WOLFSSL=OFF
|
||||
else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
|
||||
LIBUWSC_DEPENDENCIES += wolfssl
|
||||
LIBUWSC_CONF_OPTS += \
|
||||
-DUWSC_SSL_SUPPORT=ON \
|
||||
-DUWSC_USE_MBEDTLS=OFF \
|
||||
-DUWSC_USE_OPENSSL=OFF \
|
||||
-DUWSC_USE_WOLFSSL=ON
|
||||
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
||||
LIBUWSC_DEPENDENCIES += mbedtls
|
||||
LIBUWSC_CONF_OPTS += \
|
||||
-DUWSC_SSL_SUPPORT=ON \
|
||||
-DUWSC_USE_MBEDTLS=ON \
|
||||
-DUWSC_USE_OPENSSL=OFF \
|
||||
-DUWSC_USE_WOLFSSL=OFF
|
||||
else
|
||||
LIBUWSC_CONF_OPTS += -DUWSC_SSL_SUPPORT=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LUA):$(BR2_STATIC_LIBS),y:)
|
||||
LIBUWSC_DEPENDENCIES += lua
|
||||
LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=ON
|
||||
else
|
||||
LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=OFF
|
||||
endif
|
||||
|
||||
# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable
|
||||
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user