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,42 @@
From 96bbf3a3af45d86f790afdf91a6686c37421e92b Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sun, 15 Nov 2020 10:57:37 +0100
Subject: [PATCH] meson.build: check for pthread.h
Check for pthread.h otherwise the build will fail with some toolchains
that have libphtread.so but not pthread.h:
Run-time dependency threads found: YES
../src/hb-mutex.hh:53:10: fatal error: pthread.h: No such file or directory
#include <pthread.h>
^~~~~~~~~~~
Moreover, fix detection of pthread fallback
Fixes:
- http://autobuild.buildroot.org/results/70c98e89b1d5e5b651d1f6928dc53f465103f57a
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
meson.build | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index bf3925db..6d263d48 100644
--- a/meson.build
+++ b/meson.build
@@ -270,7 +270,9 @@ endif
# threads
thread_dep = null_dep
if host_machine.system() != 'windows'
- thread_dep = dependency('threads', required: false)
+ if cpp.has_header('pthread.h')
+ thread_dep = dependency('threads', required: false)
+ endif
if thread_dep.found()
conf.set('HAVE_PTHREAD', 1)
--
2.29.2

View File

@@ -0,0 +1,17 @@
config BR2_PACKAGE_HARFBUZZ
bool "harfbuzz"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
help
HarfBuzz is an OpenType text shaping engine
https://harfbuzz.github.io/
Harfbuzz can make optional use of cairo, freetype,
glib2 and icu packages if they are selected.
comment "harfbuzz needs a toolchain w/ C++, gcc >= 4.9"
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

View File

@@ -0,0 +1,4 @@
# From https://github.com/harfbuzz/harfbuzz/releases/tag/14.3.1
sha256 9dae9538aae2ffdf70cec31f2c27bf68e2aaeeae3112688467697d5faf6194f7 harfbuzz-14.3.1.tar.xz
# Locally computed
sha256 ba8f810f2455c2f08e2d56bb49b72f37fcf68f1f4fade38977cfd7372050ad64 COPYING

View File

@@ -0,0 +1,98 @@
################################################################################
#
# harfbuzz
#
################################################################################
HARFBUZZ_VERSION = 14.3.1
HARFBUZZ_SITE = https://github.com/harfbuzz/harfbuzz/releases/download/$(HARFBUZZ_VERSION)
HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.xz
HARFBUZZ_LICENSE = MIT, ISC (ucdn library)
HARFBUZZ_LICENSE_FILES = COPYING
HARFBUZZ_CPE_ID_VALID = YES
HARFBUZZ_INSTALL_STAGING = YES
HARFBUZZ_CONF_OPTS = \
-Dgdi=disabled \
-Ddirectwrite=disabled \
-Dcoretext=disabled \
-Dtests=disabled \
-Ddocs=disabled \
-Dbenchmark=disabled \
-Dicu_builtin=false \
-Dexperimental_api=false \
-Dfuzzer_ldflags=""
# freetype & glib2 support required by host-pango
HOST_HARFBUZZ_DEPENDENCIES = \
host-freetype \
host-libglib2
HOST_HARFBUZZ_CONF_OPTS = \
-Dglib=enabled \
-Dgobject=disabled \
-Dcairo=disabled \
-Dicu=disabled \
-Dgraphite=disabled \
-Dfreetype=enabled \
-Dgdi=disabled \
-Ddirectwrite=disabled \
-Dcoretext=disabled \
-Dtests=disabled \
-Dintrospection=disabled \
-Ddocs=disabled \
-Dbenchmark=disabled \
-Dicu_builtin=false \
-Dexperimental_api=false \
-Dfuzzer_ldflags=""
ifeq ($(BR2_PACKAGE_CAIRO),y)
HARFBUZZ_DEPENDENCIES += cairo
HARFBUZZ_CONF_OPTS += -Dcairo=enabled
else
HARFBUZZ_CONF_OPTS += -Dcairo=disabled
endif
ifeq ($(BR2_PACKAGE_FREETYPE),y)
HARFBUZZ_DEPENDENCIES += freetype
HARFBUZZ_CONF_OPTS += -Dfreetype=enabled
else
HARFBUZZ_CONF_OPTS += -Dfreetype=disabled
endif
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
HARFBUZZ_DEPENDENCIES += gobject-introspection
HARFBUZZ_CONF_OPTS += \
-Dgobject=enabled \
-Dintrospection=enabled
else
HARFBUZZ_CONF_OPTS += \
-Dgobject=disabled \
-Dintrospection=disabled
endif
ifeq ($(BR2_PACKAGE_GRAPHITE2),y)
HARFBUZZ_DEPENDENCIES += graphite2
HARFBUZZ_CONF_OPTS += -Dgraphite=enabled
else
HARFBUZZ_CONF_OPTS += -Dgraphite=disabled
endif
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
HARFBUZZ_DEPENDENCIES += libglib2
HARFBUZZ_CONF_OPTS += -Dglib=enabled
else
HARFBUZZ_CONF_OPTS += -Dglib=disabled
endif
ifeq ($(BR2_PACKAGE_ICU),y)
HARFBUZZ_DEPENDENCIES += icu
HARFBUZZ_CONF_OPTS += -Dicu=enabled
else
HARFBUZZ_CONF_OPTS += -Dicu=disabled
endif
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
HARFBUZZ_CXXFLAGS += $(TARGET_CXXFLAGS) -DHB_NO_MT
endif
$(eval $(meson-package))
$(eval $(host-meson-package))