Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From b9bf3936b3778912444eff7f7866db1d66f4c50b Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Perale <perale.thomas@gmail.com>
|
||||
Date: Sun, 6 Jul 2025 20:14:31 +0200
|
||||
Subject: [PATCH] fix: cmake required minimum version
|
||||
|
||||
When trying to compile the project with CMake 4 the following error
|
||||
shows up:
|
||||
|
||||
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
|
||||
Compatibility with CMake < 3.5 has been removed from CMake.
|
||||
|
||||
This commit bump the minimum required cmake version to meet the needs of
|
||||
CMake v4.
|
||||
|
||||
For more information see:
|
||||
- https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features
|
||||
|
||||
Upstream: https://github.com/zhaojh329/libuhttpd/commit/b9bf3936b3778912444eff7f7866db1d66f4c50b
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 6719e5f..0392f25 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.0)
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(libuhttpd C)
|
||||
|
||||
16
package/libuhttpd/Config.in
Normal file
16
package/libuhttpd/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_LIBUHTTPD
|
||||
bool "libuhttpd"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
select BR2_PACKAGE_LIBEV
|
||||
select BR2_PACKAGE_WOLFSSL_ALL if BR2_PACKAGE_WOLFSSL && \
|
||||
!BR2_STATIC_LIBS
|
||||
help
|
||||
A lightweight and fully asynchronous HTTP server
|
||||
library based on libev
|
||||
|
||||
https://github.com/zhaojh329/libuhttpd
|
||||
|
||||
comment "libuhttpd needs a toolchain w/ gcc >= 4.9"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
3
package/libuhttpd/libuhttpd.hash
Normal file
3
package/libuhttpd/libuhttpd.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 ce2abbc599a922c4bac12f1cdf3e9c9740f387f819a54ca01e9fed60905baa40 libuhttpd-3.14.2.tar.gz
|
||||
sha256 99efed4bbc0b62f96f999ef23399e38234fb91651af734fd389a52b033a85b55 LICENSE
|
||||
49
package/libuhttpd/libuhttpd.mk
Normal file
49
package/libuhttpd/libuhttpd.mk
Normal file
@@ -0,0 +1,49 @@
|
||||
################################################################################
|
||||
#
|
||||
# libuhttpd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBUHTTPD_VERSION = 3.14.2
|
||||
LIBUHTTPD_SITE = https://github.com/zhaojh329/libuhttpd/releases/download/v$(LIBUHTTPD_VERSION)
|
||||
LIBUHTTPD_LICENSE = MIT
|
||||
LIBUHTTPD_LICENSE_FILES = LICENSE
|
||||
LIBUHTTPD_INSTALL_STAGING = YES
|
||||
LIBUHTTPD_DEPENDENCIES = libev
|
||||
LIBUHTTPD_CONF_OPTS = -DBUILD_WERROR=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIBUHTTPD_DEPENDENCIES += openssl
|
||||
LIBUHTTPD_CONF_OPTS += \
|
||||
-DSSL_SUPPORT=ON \
|
||||
-DUSE_MBEDTLS=OFF \
|
||||
-DUSE_OPENSSL=ON \
|
||||
-DUSE_WOLFSSL=OFF
|
||||
else ifeq ($(BR2_PACKAGE_WOLFSSL_ALL),y)
|
||||
LIBUHTTPD_DEPENDENCIES += wolfssl
|
||||
LIBUHTTPD_CONF_OPTS += \
|
||||
-DSSL_SUPPORT=ON \
|
||||
-DUSE_MBEDTLS=OFF \
|
||||
-DUSE_OPENSSL=OFF \
|
||||
-DUSE_WOLFSSL=ON
|
||||
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
||||
LIBUHTTPD_DEPENDENCIES += mbedtls
|
||||
LIBUHTTPD_CONF_OPTS += \
|
||||
-DSSL_SUPPORT=ON \
|
||||
-DUSE_MBEDTLS=ON \
|
||||
-DUSE_OPENSSL=OFF \
|
||||
-DUSE_WOLFSSL=OFF
|
||||
else
|
||||
LIBUHTTPD_CONF_OPTS += \
|
||||
-DSSL_SUPPORT=OFF
|
||||
endif
|
||||
|
||||
# BUILD_STATIC builds *only* the static lib, which is not what we want for
|
||||
# BR2_SHARED_STATIC.
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBUHTTPD_CONF_OPTS += -DBUILD_STATIC=ON
|
||||
else
|
||||
LIBUHTTPD_CONF_OPTS += -DBUILD_STATIC=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user