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,29 @@
From 07309a49ad6c3e18c8c84fe54f1fdb9e103c4cc5 Mon Sep 17 00:00:00 2001
From: Francois Perrad <francois.perrad@gadz.org>
Date: Sun, 22 Oct 2017 13:00:01 +0200
Subject: [PATCH] Do not reference host directory for headers
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
cmake/FindSDL2.cmake | 5 -----
1 file changed, 5 deletions(-)
diff --git a/cmake/FindSDL2.cmake b/cmake/FindSDL2.cmake
index 5cf4115..5e17919 100644
--- a/cmake/FindSDL2.cmake
+++ b/cmake/FindSDL2.cmake
@@ -73,11 +73,6 @@ find_path(SDL2_INCLUDE_DIR SDL.h
PATH_SUFFIXES include/SDL2 include
)
-# On FreeBSD SDL depends on libiconv and SDL_stdinc.h includes iconv.h, which is
-# located in ${LOCALBASE}/include. Append {LOCALBASE}/include to
-# the SDL_INCLUDE_DIR, thus allow to build SDL apps out of box.
-list(APPEND SDL2_INCLUDE_DIR /usr/local/include)
-
find_library(SDL_LIBRARY_TEMP
NAMES SDL2 SDL2-2.0
HINTS
--
2.13.6

View File

@@ -0,0 +1,58 @@
From 5732174debfe027f7620af55c283060201f0ad03 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Thu, 2 Nov 2017 22:54:51 +0100
Subject: [PATCH] CMakeLists: do not require C++
The project doesn't use C++, so don't let CMake check for a C++
compiler by explicitly specifying that this is a C-only project.
Submitted-upstream: https://github.com/Tangent128/luasdl2/pull/69
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
common/CMakeLists.txt | 2 +-
examples/CMakeLists.txt | 2 +-
tutorials/CMakeLists.txt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index 9e19709..8cfb748 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -15,7 +15,7 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-project(common)
+project(common C)
set(
SOURCES
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 572b3b7..4e3af4d 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -16,7 +16,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
-project(examples)
+project(examples C)
# Option to enable / disable examples installation
option(WITH_DOCS "Installation of documentation and examples" On)
diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt
index adefbc9..6ec069e 100644
--- a/tutorials/CMakeLists.txt
+++ b/tutorials/CMakeLists.txt
@@ -16,7 +16,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
-project(tutorials)
+project(tutorials C)
# Option to enable / disable examples installation
option(WITH_DOCS "Installation of tutorials" On)
--
2.13.6

View File

@@ -0,0 +1,29 @@
From 8bb1cbb2b346502d6285a40e25e52d3e41551afb Mon Sep 17 00:00:00 2001
From: David Demelier <markand@malikania.fr>
Date: Sun, 24 Jan 2021 14:28:15 +0100
Subject: [PATCH] cmake: use a better FindSDL2 based on components
Upstream: https://github.com/Tangent128/luasdl2/commit/feb49bb1eea77aa953313f2a641576e515f0ec3b
[Bernd: Partially backported to fix build error with cmake 4]
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 f5b59de..cc28bdf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.10)
project(Lua-SDL2 C)
# Project information
--
2.47.3

View File

@@ -0,0 +1,13 @@
config BR2_PACKAGE_LUA_SDL2
bool "lua-sdl2"
depends on !BR2_STATIC_LIBS
depends on !BR2_PACKAGE_LUA_5_4
select BR2_PACKAGE_SDL2
help
Lua-SDL2 is a pure C binding of SDL2 to Lua 5.1, Lua 5.2,
Lua 5.3, and LuaJIT.
https://github.com/Tangent128/luasdl2
comment "lua-sdl2 needs a toolchain w/ dynamic library, Lua <= 5.3"
depends on BR2_STATIC_LIBS || BR2_PACKAGE_LUA_5_4

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 cee7875106062fbc00cf8acb3b2738e336e2327df73ede011968cb060c094bfb lua-sdl2-2.0.5-6.0.tar.gz
sha256 4f56a5b6943a8ff9611a39e7d4d88dba9ad314dcdf56c62a1425798a6e624494 LICENSE

View File

@@ -0,0 +1,47 @@
################################################################################
#
# lua-sdl2
#
################################################################################
LUA_SDL2_VERSION = 2.0.5-6.0
LUA_SDL2_SITE = $(call github,Tangent128,luasdl2,v$(LUA_SDL2_VERSION))
LUA_SDL2_LICENSE = ISC
LUA_SDL2_LICENSE_FILES = LICENSE
LUA_SDL2_DEPENDENCIES = luainterpreter sdl2
ifeq ($(BR2_PACKAGE_LUAJIT),y)
LUA_SDL2_LUAVER = JIT
else ifeq ($(BR2_PACKAGE_LUA_5_3),y)
LUA_SDL2_LUAVER = 53
else
LUA_SDL2_LUAVER = 51
endif
LUA_SDL2_CONF_OPTS += -DWITH_LUAVER=$(LUA_SDL2_LUAVER) -DLUA_INCLUDE_DIR=$(STAGING_DIR)/usr/include
ifeq ($(BR2_PACKAGE_SDL2_IMAGE),y)
LUA_SDL2_DEPENDENCIES += sdl2_image
else
LUA_SDL2_CONF_OPTS += -DWITH_IMAGE=Off
endif
ifeq ($(BR2_PACKAGE_SDL2_MIXER),y)
LUA_SDL2_DEPENDENCIES += sdl2_mixer
else
LUA_SDL2_CONF_OPTS += -DWITH_MIXER=Off
endif
ifeq ($(BR2_PACKAGE_SDL2_NET),y)
LUA_SDL2_DEPENDENCIES += sdl2_net
else
LUA_SDL2_CONF_OPTS += -DWITH_NET=Off
endif
ifeq ($(BR2_PACKAGE_SDL2_TTF),y)
LUA_SDL2_DEPENDENCIES += sdl2_ttf
else
LUA_SDL2_CONF_OPTS += -DWITH_TTF=Off
endif
$(eval $(cmake-package))