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,33 @@
From ac52380eeca27e1e2e7eb5fb9d39059dbe58b919 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Wed, 7 Dec 2016 22:48:27 +0100
Subject: [PATCH] Remove -Werror
-Werror might cause build failures with newer versions of gcc or C
libraries, not tested by upstream, for example:
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
cc1: all warnings being treated as errors
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ae8ba4..825342f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ PROJECT(uhttpd C)
INCLUDE (CheckFunctionExists)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
-ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -Os -Wall -Werror -Wmissing-declarations --std=gnu99 -g3)
+ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -Os -Wall -Wmissing-declarations --std=gnu99 -g3)
OPTION(TLS_SUPPORT "TLS support" ON)
OPTION(LUA_SUPPORT "Lua support" ON)
--
2.7.4

View File

@@ -0,0 +1,30 @@
From adbab70d3602d77736781be344cfdc5508cb0600 Mon Sep 17 00:00:00 2001
From: Peter Seiderer <ps.report@gmx.net>
Date: Mon, 3 Apr 2017 19:22:30 +0200
Subject: [PATCH] Fix TCP_FASTOPEN related compile error.
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
listen.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/listen.c b/listen.c
index 2a54888..4dabe34 100644
--- a/listen.c
+++ b/listen.c
@@ -96,6 +96,12 @@ static void listener_cb(struct uloop_fd *fd, unsigned int events)
uh_block_listener(l);
}
+#ifdef linux
+#ifndef TCP_FASTOPEN
+#define TCP_FASTOPEN 23
+#endif
+#endif
+
void uh_setup_listeners(void)
{
struct listener *l;
--
2.11.0

19
package/uhttpd/Config.in Normal file
View File

@@ -0,0 +1,19 @@
config BR2_PACKAGE_UHTTPD
bool "uhttpd"
depends on !BR2_STATIC_LIBS # dlopen()
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c, libubox -> json-c
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBUBOX
select BR2_PACKAGE_JSON_C
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help
uHTTPd is a tiny single threaded HTTP server with TLS, CGI
and Lua support. It is intended as a drop-in replacement for
the Busybox HTTP daemon.
https://wiki.openwrt.org/doc/howto/http.uhttpd
comment "uhttpd needs a toolchain w/ dynamic library"
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on BR2_USE_MMU
depends on BR2_STATIC_LIBS

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 5835ced5fd67358b95c07d41a3e2a5991719048f99b5d43bf191287524d8fabe uhttpd-506e24987b97fbc866005bfb71316bd63601a1ef-git4.tar.gz
sha256 b98de120bce554de7d205fbc5734c2b72973e55ce36ef6403510c4583cbe2e14 uhttpd.h

40
package/uhttpd/uhttpd.mk Normal file
View File

@@ -0,0 +1,40 @@
################################################################################
#
# uhttpd
#
################################################################################
UHTTPD_VERSION = 506e24987b97fbc866005bfb71316bd63601a1ef
UHTTPD_SITE = https://git.openwrt.org/project/uhttpd.git
UHTTPD_SITE_METHOD = git
UHTTPD_LICENSE = ISC
UHTTPD_LICENSE_FILES = uhttpd.h
UHTTPD_DEPENDENCIES = libubox json-c
UHTTPD_CONF_OPTS += -DUCODE_SUPPORT=OFF
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
UHTTPD_DEPENDENCIES += libxcrypt
endif
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
UHTTPD_DEPENDENCIES += lua
UHTTPD_CONF_OPTS += -DLUA_SUPPORT=ON
else
UHTTPD_CONF_OPTS += -DLUA_SUPPORT=OFF
endif
ifeq ($(BR2_PACKAGE_USTREAM_SSL),y)
UHTTPD_DEPENDENCIES += ustream-ssl
UHTTPD_CONF_OPTS += -DTLS_SUPPORT=ON
else
UHTTPD_CONF_OPTS += -DTLS_SUPPORT=OFF
endif
ifeq ($(BR2_PACKAGE_UBUS),y)
UHTTPD_DEPENDENCIES += ubus
UHTTPD_CONF_OPTS += -DUBUS_SUPPORT=ON
else
UHTTPD_CONF_OPTS += -DUBUS_SUPPORT=OFF
endif
$(eval $(cmake-package))