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,97 @@
From 702988467d67c3a33255de4c543f56767c64c72e Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: Sat, 23 Dec 2023 21:30:30 +0100
Subject: [PATCH] Fix build issues with libxml2 2.12
Based on initial work from Bernd Kuhls <bernd@kuhls.net>, improved by
Yaakov Selkowitz.
Upstream: https://sourceforge.net/p/xmlstar/patches/22/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
src/trans.h | 1 +
src/xml.c | 2 +-
src/xml_edit.c | 1 +
src/xml_elem.c | 2 +-
src/xml_format.c | 1 +
src/xmlstar.h | 2 +-
6 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/trans.h b/src/trans.h
index 016304e..395462c 100644
--- a/src/trans.h
+++ b/src/trans.h
@@ -36,6 +36,7 @@ THE SOFTWARE.
#include <libxml/xinclude.h>
#include <libxml/parserInternals.h>
#include <libxml/uri.h>
+#include <libxml/globals.h>
#include <libxslt/xslt.h>
#include <libxslt/xsltInternals.h>
diff --git a/src/xml.c b/src/xml.c
index cf47cc2..e6f19c1 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -104,7 +104,7 @@ void reportGenericError(void* ctx, const char * msg, ...) {
/* by default all errors are reported */
static ErrorInfo errorInfo = { NULL, NULL, VERBOSE, CONTINUE };
-void reportError(void *ptr, xmlErrorPtr error)
+void reportError(void *ptr, const xmlError *error)
{
ErrorInfo *errorInfo = (ErrorInfo*) ptr;
assert(errorInfo);
diff --git a/src/xml_edit.c b/src/xml_edit.c
index e199178..b3da8a4 100644
--- a/src/xml_edit.c
+++ b/src/xml_edit.c
@@ -42,6 +42,7 @@ THE SOFTWARE.
#include <libxml/xpointer.h>
#include <libxml/parserInternals.h>
#include <libxml/uri.h>
+#include <libxml/globals.h>
#include <libexslt/exslt.h>
#include "xmlstar.h"
diff --git a/src/xml_elem.c b/src/xml_elem.c
index 024e62a..a73038a 100644
--- a/src/xml_elem.c
+++ b/src/xml_elem.c
@@ -186,7 +186,7 @@ typedef struct {
* put @name into @data->array[@data->offset]
*/
static void
-hash_key_put(void *payload, void *data, xmlChar *name)
+hash_key_put(void *payload, void *data, const xmlChar *name)
{
ArrayDest *dest = data;
dest->array[dest->offset++] = name;
diff --git a/src/xml_format.c b/src/xml_format.c
index e9da4df..ddd6614 100644
--- a/src/xml_format.c
+++ b/src/xml_format.c
@@ -42,6 +42,7 @@ THE SOFTWARE.
#include <libxml/xpointer.h>
#include <libxml/parserInternals.h>
#include <libxml/uri.h>
+#include <libxml/globals.h>
#include "xmlstar.h"
diff --git a/src/xmlstar.h b/src/xmlstar.h
index 3e1eed3..e8d7177 100644
--- a/src/xmlstar.h
+++ b/src/xmlstar.h
@@ -32,7 +32,7 @@ typedef struct _errorInfo {
ErrorStop stop;
} ErrorInfo;
-void reportError(void *ptr, xmlErrorPtr error);
+void reportError(void *ptr, const xmlError *error);
void suppressErrors(void);
typedef struct _gOptions {
--
2.43.0

View File

@@ -0,0 +1,49 @@
From 6b3ca3549abb998947088bdf264d65a0a86684cd Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Sun, 12 Oct 2025 18:38:54 +0200
Subject: [PATCH] xml_pyx: remove ATTRIBUTE_UNUSED
This define was removed in libxml2 2.14.0:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/208f27f9641a59863ce1f7d4992df77f7eb0ea9d
Upstream: https://sourceforge.net/p/xmlstar/patches/23/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/xml_pyx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/xml_pyx.c b/src/xml_pyx.c
index ab295f1..8adc028 100644
--- a/src/xml_pyx.c
+++ b/src/xml_pyx.c
@@ -200,7 +200,7 @@ pyxExternalEntityReferenceHandler(void* userData,
}
static void
-pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
+pyxExternalSubsetHandler(void *ctx, const xmlChar *name,
const xmlChar *ExternalID, const xmlChar *SystemID)
{
fprintf(stdout, "D %s PUBLIC", name); /* TODO: re-check */
@@ -215,7 +215,7 @@ pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
}
static void
-pyxCommentHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
+pyxCommentHandler(void *ctx, const xmlChar *value)
{
fprintf(stdout,"C");
SanitizeData(value, xmlStrlen(value));
@@ -223,7 +223,7 @@ pyxCommentHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
}
static void
-pyxCdataBlockHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value, int len)
+pyxCdataBlockHandler(void *ctx, const xmlChar *value, int len)
{
fprintf(stdout,"[");
SanitizeData(value, len);
--
2.47.3

View File

@@ -0,0 +1,9 @@
config BR2_PACKAGE_XMLSTARLET
bool "xmlstarlet"
select BR2_PACKAGE_LIBXML2
select BR2_PACKAGE_LIBXSLT
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
help
Command Line XML Toolkit
http://xmlstar.sourceforge.net/

View File

@@ -0,0 +1,5 @@
# From https://sourceforge.net/projects/xmlstar/files/xmlstarlet/1.6.1/
sha1 87bb104f546caca71b9540807c5b2738944cb219 xmlstarlet-1.6.1.tar.gz
md5 f3c5dfa3b1a2ee06cd57c255cc8b70a0 xmlstarlet-1.6.1.tar.gz
# Locally computed
sha256 6641cc5b00c1651fa22175f34efd01695e64a348b1ba07048538276f44866862 COPYING

View File

@@ -0,0 +1,34 @@
################################################################################
#
# xmlstarlet
#
################################################################################
XMLSTARLET_VERSION = 1.6.1
XMLSTARLET_SITE = http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/$(XMLSTARLET_VERSION)
XMLSTARLET_LICENSE = MIT
XMLSTARLET_LICENSE_FILES = COPYING
XMLSTARLET_DEPENDENCIES += libxml2 libxslt \
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
XMLSTARLET_CONF_OPTS += \
--with-libxml-prefix=$(STAGING_DIR)/usr \
--with-libxslt-prefix=$(STAGING_DIR)/usr \
--with-libiconv-prefix=$(STAGING_DIR)/usr
ifeq ($(BR2_STATIC_LIBS),y)
XMLSTARLET_CONF_OPTS += --enable-static-libs
XMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0 libexslt`"
else
XMLSTARLET_CONF_OPTS += --disable-static-libs
endif
HOST_XMLSTARLET_DEPENDENCIES += host-libxml2 host-libxslt
HOST_XMLSTARLET_CONF_OPTS += \
--with-libxml-prefix=$(HOST_DIR) \
--with-libxslt-prefix=$(HOST_DIR)
$(eval $(autotools-package))
$(eval $(host-autotools-package))