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,35 @@
From 9500f9964a1ef03890376c61f1b17db88753c8e2 Mon Sep 17 00:00:00 2001
From: Adam Duskett <aduskett@gmail.com>
Date: Mon, 28 Jun 2021 12:24:59 -0700
Subject: [PATCH] add build support for php8
Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
php_geoip.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/php_geoip.h b/php_geoip.h
index 2f67cb6..d19d612 100644
--- a/php_geoip.h
+++ b/php_geoip.h
@@ -30,6 +30,17 @@ extern zend_module_entry geoip_module_entry;
typedef long zend_long;
#endif
+/* Small change to let it build after a major internal change for php8.0
+ * More info:
+ * https://github.com/php/php-src/blob/php-8.0.0/UPGRADING.INTERNALS#L47
+ */
+#if PHP_MAJOR_VERSION >= 8
+# define TSRMLS_DC
+# define TSRMLS_D
+# define TSRMLS_CC
+# define TSRMLS_C
+# endif
+
#ifdef PHP_WIN32
#define PHP_GEOIP_API __declspec(dllexport)
#else
--
2.31.1
+7
View File
@@ -0,0 +1,7 @@
config BR2_PACKAGE_PHP_GEOIP
bool "php-geoip"
select BR2_PACKAGE_GEOIP
help
PHP GeoIP-based IP address mapper to geographical places.
http://pecl.php.net/package/geoip
+3
View File
@@ -0,0 +1,3 @@
# Locally calculated
sha256 b2d05c03019d46135c249b5a7fa0dbd43ca5ee98aea8ed807bc7aa90ac8c0f06 geoip-1.1.1.tgz
sha256 93eb7fe81da0861e7013d12fe82cc8691a450822d889c2b0443a434be6c28ef4 geoip.c
+26
View File
@@ -0,0 +1,26 @@
################################################################################
#
# php-geoip
#
################################################################################
PHP_GEOIP_VERSION = 1.1.1
PHP_GEOIP_SOURCE = geoip-$(PHP_GEOIP_VERSION).tgz
PHP_GEOIP_SITE = https://pecl.php.net/get
PHP_GEOIP_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
--with-geoip=$(STAGING_DIR)/usr
# phpize does the autoconf magic
PHP_GEOIP_DEPENDENCIES = geoip php host-autoconf
PHP_GEOIP_LICENSE = PHP-3.01
PHP_GEOIP_LICENSE_FILES = geoip.c
define PHP_GEOIP_PHPIZE
(cd $(@D); \
PHP_AUTOCONF=$(HOST_DIR)/bin/autoconf \
PHP_AUTOHEADER=$(HOST_DIR)/bin/autoheader \
$(STAGING_DIR)/usr/bin/phpize)
endef
PHP_GEOIP_PRE_CONFIGURE_HOOKS += PHP_GEOIP_PHPIZE
$(eval $(autotools-package))