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,38 @@
[PATCH] ensure internal print operations are declared before use
Stock rapidxml-1.13 does not allow implementers of the
`rapidxml_print.hpp` header to build under GCC 4.7 (or newer) due to
compliation issues. This is a result of "Name lookup changes" introduced
in GCC 4.7 [1]. The following adds forward declarations required to
compile with GCC 4.7+.
This issue has been mentioned upstream [2], but it has yet to be fixed
in official sources.
[1]: https://gcc.gnu.org/gcc-4.7/porting_to.html
[2]: https://sourceforge.net/p/rapidxml/bugs/16/
Signed-off-by: James Knight <james.knight@rockwellcollins.com>
Index: b/rapidxml_print.hpp
===================================================================
--- a/rapidxml_print.hpp
+++ b/rapidxml_print.hpp
@@ -101,7 +101,16 @@
///////////////////////////////////////////////////////////////////////////
// Internal printing operations
-
+
+ template<class OutIt, class Ch> inline OutIt print_cdata_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+ template<class OutIt, class Ch> inline OutIt print_children(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+ template<class OutIt, class Ch> inline OutIt print_comment_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+ template<class OutIt, class Ch> inline OutIt print_data_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+ template<class OutIt, class Ch> inline OutIt print_declaration_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+ template<class OutIt, class Ch> inline OutIt print_doctype_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+ template<class OutIt, class Ch> inline OutIt print_element_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+ template<class OutIt, class Ch> inline OutIt print_pi_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+
// Print node
template<class OutIt, class Ch>
inline OutIt print_node(OutIt out, const xml_node<Ch> *node, int flags, int indent)
+11
View File
@@ -0,0 +1,11 @@
config BR2_PACKAGE_RAPIDXML
bool "rapidxml"
help
RapidXml is an attempt to create the fastest XML parser
possible, while retaining useability, portability and
reasonable W3C compatibility. It is an in-situ parser with
parsing speed approaching speed of strlen function executed
on the same data.
http://sourceforge.net/projects/rapidxml/
https://en.wikipedia.org/wiki/RapidXml
+7
View File
@@ -0,0 +1,7 @@
# From https://sourceforge.net/projects/rapidxml/files/rapidxml/rapidxml%201.13/
sha1 f5fd4fbc5ad7e96045313697811d65ea8089a950 rapidxml-1.13.zip
md5 7b4b42c9331c90aded23bb55dc725d6a rapidxml-1.13.zip
# Locally calculated
sha256 c3f0b886374981bb20fabcf323d755db4be6dba42064599481da64a85f5b3571 rapidxml-1.13.zip
sha256 794bf3b2ecf5cf0c740ac6c524d66ce6284c4b1de1f983d21a242b8abbeb9720 license.txt
+28
View File
@@ -0,0 +1,28 @@
################################################################################
#
# rapidxml
#
################################################################################
RAPIDXML_VERSION = 1.13
RAPIDXML_SOURCE = rapidxml-$(RAPIDXML_VERSION).zip
RAPIDXML_SITE = http://downloads.sourceforge.net/project/rapidxml/rapidxml/rapidxml%20$(RAPIDXML_VERSION)
RAPIDXML_LICENSE = BSL-1.0 or MIT
RAPIDXML_LICENSE_FILES = license.txt
# C++ headers only
RAPIDXML_INSTALL_TARGET = NO
RAPIDXML_INSTALL_STAGING = YES
define RAPIDXML_EXTRACT_CMDS
$(UNZIP) -d $(@D) $(RAPIDXML_DL_DIR)/$(RAPIDXML_SOURCE)
mv $(@D)/rapidxml-$(RAPIDXML_VERSION)/* $(@D)/
rmdir $(@D)/rapidxml-$(RAPIDXML_VERSION)
endef
define RAPIDXML_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/include/rapidxml
cp -dpfr $(@D)/*hpp $(STAGING_DIR)/usr/include/rapidxml
endef
$(eval $(generic-package))