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,107 @@
From fb3943378d84a6ced1182502eb839d6fc6e51914 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: Tue, 16 Dec 2025 15:31:38 +0100
Subject: [PATCH] CMakeLists.txt: make it compatible with CMake 4
The build with CMake >= 4 currently fails with:
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
we simply need to specify that the minimum version is 3.5 to fix the
build.
Upstream: https://github.com/artyom-beilis/cppcms/pull/106
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
CMakeLists.txt | 2 +-
booster/CMakeLists.txt | 2 +-
contrib/server_side/sessions/CMakeLists.txt | 2 +-
contrib/server_side/sessions/berkeley_db/CMakeLists.txt | 2 +-
contrib/server_side/sessions/cppdb/CMakeLists.txt | 2 +-
contrib/server_side/sessions/sqlite3/CMakeLists.txt | 2 +-
examples/message_board/CMakeLists.txt | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a9c601b..826e87f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
diff --git a/booster/CMakeLists.txt b/booster/CMakeLists.txt
index 6ec1ffa..8f63254 100644
--- a/booster/CMakeLists.txt
+++ b/booster/CMakeLists.txt
@@ -6,7 +6,7 @@
# http://www.boost.org/LICENSE_1_0.txt)
#
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
project(booster)
include(CheckFunctionExists)
include(CheckCXXSourceCompiles)
diff --git a/contrib/server_side/sessions/CMakeLists.txt b/contrib/server_side/sessions/CMakeLists.txt
index 0909fa6..e7ae01f 100644
--- a/contrib/server_side/sessions/CMakeLists.txt
+++ b/contrib/server_side/sessions/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
add_subdirectory(sqlite3)
add_subdirectory(cppdb)
diff --git a/contrib/server_side/sessions/berkeley_db/CMakeLists.txt b/contrib/server_side/sessions/berkeley_db/CMakeLists.txt
index 6bbac69..534bce2 100644
--- a/contrib/server_side/sessions/berkeley_db/CMakeLists.txt
+++ b/contrib/server_side/sessions/berkeley_db/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
if(WIN32 OR CYGWIN)
add_definitions(-DDLL_EXPORT)
diff --git a/contrib/server_side/sessions/cppdb/CMakeLists.txt b/contrib/server_side/sessions/cppdb/CMakeLists.txt
index 9781be9..792ec39 100644
--- a/contrib/server_side/sessions/cppdb/CMakeLists.txt
+++ b/contrib/server_side/sessions/cppdb/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
if(WIN32 OR CYGWIN)
add_definitions(-DDLL_EXPORT)
diff --git a/contrib/server_side/sessions/sqlite3/CMakeLists.txt b/contrib/server_side/sessions/sqlite3/CMakeLists.txt
index 4c236e3..82808f4 100644
--- a/contrib/server_side/sessions/sqlite3/CMakeLists.txt
+++ b/contrib/server_side/sessions/sqlite3/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
if(WIN32 OR CYGWIN)
add_definitions(-DDLL_EXPORT)
endif()
diff --git a/examples/message_board/CMakeLists.txt b/examples/message_board/CMakeLists.txt
index 0e5c555..96a56c2 100644
--- a/examples/message_board/CMakeLists.txt
+++ b/examples/message_board/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
project(cppcms)
include_directories(${CMAKE_SOURCE_DIR})
--
2.52.0

View File

@@ -0,0 +1,58 @@
From 58faaa72919076e2c847b595a739469243ac9706 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: Tue, 16 Dec 2025 16:02:41 +0100
Subject: [PATCH] CMakeLists.txt: allow flags passed on the command line to win
over built-in flags
CMakeLists.txt and booster/CMakeLists.txt define some flags in
CXX_FLAGS, and then set CMAKE_CXX_FLAGS in a way that causes the flags
in CXX_FLAGS to override the ones passed (for example on the command
line through CMAKE_CXX_FLAGS). This prevents the user from overriding
those compiler flags in CXX_FLAGS.
A specific example is that CXX_FLAGS sets -std=c++11, but with recent
version of ICU (such as >= 77-1), -std=c++11 is not enough, passing
-std=c++17 is needed. Unfortunately, it cannot be passed through
CMAKE_CXX_FLAGS due to the aforementioned problem.
This commit allows to resolve this by ensuring that CMAKE_CXX_FLAGS
and CMAKE_C_FLAGS win over CXX_FLAGS/C_FLAGS.
Upstream: https://github.com/artyom-beilis/cppcms/pull/107
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
CMakeLists.txt | 4 ++--
booster/CMakeLists.txt | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 826e87f..86693e2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -141,8 +141,8 @@ elseif(MSVC)
set(C_FLAGS "/W3")
endif()
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_FLAGS}")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${C_FLAGS}")
+set(CMAKE_CXX_FLAGS "${CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
+set(CMAKE_C_FLAGS "${C_FLAGS} ${CMAKE_C_FLAGS} ")
#############################################################################
#
diff --git a/booster/CMakeLists.txt b/booster/CMakeLists.txt
index 8f63254..4638f76 100644
--- a/booster/CMakeLists.txt
+++ b/booster/CMakeLists.txt
@@ -223,7 +223,7 @@ if(NOT IS_WINDOWS)
endif()
endif()
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_FLAGS}")
+set(CMAKE_CXX_FLAGS "${CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
#############################################################################
#
--
2.52.0

42
package/cppcms/Config.in Normal file
View File

@@ -0,0 +1,42 @@
config BR2_PACKAGE_CPPCMS
bool "cppcms"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on !BR2_STATIC_LIBS # dlopen()
depends on BR2_USE_WCHAR
help
CppCMS is a Free High Performance Web Development Framework
(not a CMS) aimed for Rapid Web Application Development. It
differs from most of other web development frameworks like:
Python Django or Java Servlets on the following aspects:
- It is designed and tuned to handle extremely high loads.
- It uses modern C++ as primary development language in
order to achieve the above goal.
- It is aimed on development of both Web Sites and Web
Services.
http://cppcms.com
if BR2_PACKAGE_CPPCMS
config BR2_PACKAGE_CPPCMS_ICU
bool "enable icu support"
depends on !BR2_BINFMT_FLAT # icu
depends on BR2_HOST_GCC_AT_LEAST_7 # icu
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # icu
select BR2_PACKAGE_ICU
help
Using ICU allows advanced localization features into CppCMS,
in another hand ICU is heavier than iconv.
comment "icu support needs a toolchain w/ gcc >= 7, host gcc >= 7"
depends on !BR2_BINFMT_FLAT
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
!BR2_HOST_GCC_AT_LEAST_7
endif
comment "cppcms needs a toolchain w/ C++, NPTL, wchar, dynamic library"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
!BR2_USE_WCHAR || BR2_STATIC_LIBS

View File

@@ -0,0 +1,5 @@
# Locally computed:
sha256 4a7a2217b3fa59384650912a7000e016c308b4fa986a3d2562002691e5a9d6e7 cppcms-2.0.1.tar.gz
sha256 fb7c15ddf590037d4cd18ebd61148a2304b9243369d238a64f599182377e32db COPYING.TXT
sha256 3e4012cc5950e05bedfdd2f00ceffe1ef71c46ac8c79f07e237ecb23c773f65f MIT.TXT
sha256 d6ce062e5cf4f7e3c536d7d2fee84c882c45245f1848ed3162401f2b29fa2b4b THIRD_PARTY_SOFTWARE.TXT

65
package/cppcms/cppcms.mk Normal file
View File

@@ -0,0 +1,65 @@
################################################################################
#
# cppcms
#
################################################################################
CPPCMS_VERSION = 2.0.1
CPPCMS_SITE = $(call github,artyom-beilis,cppcms,v$(CPPCMS_VERSION))
CPPCMS_LICENSE = MIT, BSL-1.0 (boost), Public Domain (json2.js), Zlib (md5)
CPPCMS_LICENSE_FILES = COPYING.TXT MIT.TXT THIRD_PARTY_SOFTWARE.TXT
CPPCMS_INSTALL_STAGING = YES
CPPCMS_CXXFLAGS = $(TARGET_CXXFLAGS)
# disable rpath to avoid getting /usr/lib added to the link search
# path
CPPCMS_CONF_OPTS = \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_CXX_FLAGS="$(CPPCMS_CXXFLAGS)" \
-DDISABLE_PCRE=ON
CPPCMS_DEPENDENCIES = host-python3
ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
CPPCMS_CONF_OPTS += -DDISABLE_ICU_LOCALE=OFF
CPPCMS_DEPENDENCIES += icu
CPPCMS_CXXFLAGS += "`$(STAGING_DIR)/usr/bin/icu-config --cxxflags`"
else
CPPCMS_CONF_OPTS += -DDISABLE_ICU_LOCALE=ON
endif
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
CPPCMS_CONF_OPTS += -DDISABLE_GCRYPT=OFF
CPPCMS_DEPENDENCIES += libgcrypt
else
CPPCMS_CONF_OPTS += -DDISABLE_GCRYPT=ON
endif
ifeq ($(BR2_PACKAGE_OPENSSL),y)
CPPCMS_CONF_OPTS += -DDISABLE_OPENSSL=OFF
CPPCMS_DEPENDENCIES += openssl
else
CPPCMS_CONF_OPTS += -DDISABLE_OPENSSL=ON
endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
CPPCMS_CONF_OPTS += -DDISABLE_GZIP=OFF
CPPCMS_DEPENDENCIES += zlib
else
CPPCMS_CONF_OPTS += -DDISABLE_GZIP=ON
endif
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
# posix backend needs monetary.h which isn't available on uClibc
CPPCMS_CONF_OPTS += -DDISABLE_POSIX_LOCALE=on
endif
# We copy cppcms_tmpl_cc from staging to host because this file can be
# needed for compiling packages using cppcms. And it is not worth
# creating a host package just for a python script.
define CPPCMS_INSTALL_HOST_TOOLS
cp $(STAGING_DIR)/usr/bin/cppcms_tmpl_cc $(HOST_DIR)/bin/cppcms_tmpl_cc
endef
CPPCMS_POST_INSTALL_STAGING_HOOKS += CPPCMS_INSTALL_HOST_TOOLS
$(eval $(cmake-package))