initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -0,0 +1,34 @@
From 78afd1c5f1ceaed05b78ac42c297d87a493295fd Mon Sep 17 00:00:00 2001
From: spacewander <spacewanderlzx@gmail.com>
Date: Tue, 31 Oct 2017 15:48:30 +0800
Subject: [PATCH] Protect declaration of LgdImageCreateFromPng* with GD_PNG
feature test macro
If GD_PNG is false, neither LgdImageCreateFromPng nor
LgdImageCreateFromPngPtr would be implemented. We should avoid declaring
them too.
Fetch from: https://github.com/ittner/lua-gd/pull/8
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
luagd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/luagd.c b/luagd.c
index 9730ff7..98bc03e 100644
--- a/luagd.c
+++ b/luagd.c
@@ -2168,8 +2168,10 @@ static const luaL_Reg LgdFunctions[] =
{ "createFromGif", LgdImageCreateFromGif },
{ "createFromGifStr", LgdImageCreateFromGifPtr },
#endif
+#ifdef GD_PNG
{ "createFromPng", LgdImageCreateFromPng },
{ "createFromPngStr", LgdImageCreateFromPngPtr },
+#endif
{ "createFromGd", LgdImageCreateFromGd },
{ "createFromGdStr", LgdImageCreateFromGdPtr },
{ "createFromGd2", LgdImageCreateFromGd2 },
--
2.17.1
+7
View File
@@ -0,0 +1,7 @@
config BR2_PACKAGE_LUA_GD
bool "lua-gd"
select BR2_PACKAGE_GD
help
GD (graphics library) bindings for Lua.
https://ittner.github.io/lua-gd/
+3
View File
@@ -0,0 +1,3 @@
# Locally calculated
sha256 928fa036b37595d773db1999c9ff43195c4290f0722298fa5b0c3e619c678525 lua-gd-2ce8e478a8591afd71e607506bc8c64b161bbd30.tar.gz
sha256 b0ca41d88ddb0ca785436d37b08b8f413055755eb6bfd3ea0a6ff3214303aa43 COPYING
+47
View File
@@ -0,0 +1,47 @@
################################################################################
#
# lua-gd
#
################################################################################
LUA_GD_VERSION = 2ce8e478a8591afd71e607506bc8c64b161bbd30
LUA_GD_SITE = $(call github,ittner,lua-gd,$(LUA_GD_VERSION))
LUA_GD_LICENSE = MIT
LUA_GD_LICENSE_FILES = COPYING
LUA_GD_DEPENDENCIES = luainterpreter gd
ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
LUA_GD_FEATURES += -DGD_FONTCONFIG
endif
ifeq ($(BR2_PACKAGE_FREETYPE),y)
LUA_GD_FEATURES += -DGD_FREETYPE
endif
ifeq ($(BR2_PACKAGE_JPEG),y)
LUA_GD_FEATURES += -DGD_JPEG
endif
ifeq ($(BR2_PACKAGE_LIBPNG),y)
LUA_GD_FEATURES += -DGD_PNG
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
LUA_GD_FEATURES += -DGD_XPM
endif
# VERSION follows the scheme described on https://ittner.github.io/lua-gd/manual.html#intro,
# the current version of the binding is 3.
define LUA_GD_BUILD_CMDS
$(MAKE) -C $(@D) gd.so \
GDFEATURES="$(LUA_GD_FEATURES)" \
CC=$(TARGET_CC) \
CFLAGS="$(TARGET_CFLAGS) -fPIC -DVERSION=\\\"$(GD_VERSION)r3\\\"" \
LFLAGS="-shared -lgd"
endef
define LUA_GD_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -D $(@D)/gd.so $(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)/gd.so
endef
$(eval $(generic-package))