Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
From 9a6d50b3f355c1e4d72a235aa0bac4856dff1785 Mon Sep 17 00:00:00 2001
|
||||
From: Adrian Perez de Castro <aperez@igalia.com>
|
||||
Date: Tue, 27 Mar 2018 19:59:23 +0100
|
||||
Subject: [PATCH] CMake: Handle multiple libraries being returned for Brotli
|
||||
|
||||
Brotli is built as three libraries: libbrotlienc, libbrotlidec, and
|
||||
libbrotlicommon. When requesting the linker flags using pkg-config for
|
||||
e.g. libbrotlidec, it will return both libbrotlidec and libbrotlicommon.
|
||||
The FindBrotli*.cmake files ignore the names of the libraries returned
|
||||
by pkg-config, and hardcode only the libbrotli{enc,dec} names. While
|
||||
this is fine when using shared libraries (they contain an entry for
|
||||
libbrotlicommon as required library in their headers), it will cause
|
||||
linker errors when Brotli has been built as static libraries, due to
|
||||
the missing symbols from libbrotlicommon being unknown to the linker.
|
||||
|
||||
This fixes FindBrotli*.cmake files by using the library names reported
|
||||
by pkg-config (instead of hardcoding them), and applying find_library()
|
||||
to each of the libraries to find their absolute paths. If any of the
|
||||
libraries is missing, the corresponding BROTLI{ENC,DEC}_LIBRARIES is
|
||||
unset to let find_package_handle_standard_args() report an error.
|
||||
---
|
||||
cmake/FindBrotliDec.cmake | 13 +++++++++----
|
||||
cmake/FindBrotliEnc.cmake | 14 ++++++++++----
|
||||
2 files changed, 19 insertions(+), 8 deletions(-)
|
||||
|
||||
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
|
||||
Upstream-Status: Submitted [https://github.com/google/woff2/pull/112]
|
||||
|
||||
diff --git a/cmake/FindBrotliDec.cmake b/cmake/FindBrotliDec.cmake
|
||||
index abb06f4..9cbb415 100644
|
||||
--- a/cmake/FindBrotliDec.cmake
|
||||
+++ b/cmake/FindBrotliDec.cmake
|
||||
@@ -18,10 +18,15 @@ find_path(BROTLIDEC_INCLUDE_DIRS
|
||||
HINTS ${PC_BROTLIDEC_INCLUDEDIR}
|
||||
)
|
||||
|
||||
-find_library(BROTLIDEC_LIBRARIES
|
||||
- NAMES brotlidec
|
||||
- HINTS ${PC_BROTLIDEC_LIBDIR}
|
||||
-)
|
||||
+set(BROTLIDEC_LIBRARIES "")
|
||||
+foreach(_lib ${PC_BROTLIDEC_LIBRARIES})
|
||||
+ find_library(PC_BROTLIDEC_PATH_${_lib} ${_lib} HINTS ${PC_BROTLIDEC_LIBRARY_DIRS})
|
||||
+ if(NOT PC_BROTLIDEC_PATH_${_lib})
|
||||
+ unset(BROTLIDEC_LIBRARIES)
|
||||
+ break()
|
||||
+ endif()
|
||||
+ list(APPEND BROTLIDEC_LIBRARIES "${PC_BROTLIDEC_PATH_${_lib}}")
|
||||
+endforeach()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(BrotliDec
|
||||
diff --git a/cmake/FindBrotliEnc.cmake b/cmake/FindBrotliEnc.cmake
|
||||
index 4be347d..55f3932 100644
|
||||
--- a/cmake/FindBrotliEnc.cmake
|
||||
+++ b/cmake/FindBrotliEnc.cmake
|
||||
@@ -18,10 +18,16 @@ find_path(BROTLIENC_INCLUDE_DIRS
|
||||
HINTS ${PC_BROTLIENC_INCLUDEDIR}
|
||||
)
|
||||
|
||||
-find_library(BROTLIENC_LIBRARIES
|
||||
- NAMES brotlienc
|
||||
- HINTS ${PC_BROTLIENC_LIBDIR}
|
||||
-)
|
||||
+set(BROTLIENC_LIBRARIES "")
|
||||
+foreach(_lib ${PC_BROTLIENC_LIBRARIES})
|
||||
+ find_library(PC_BROTLIENC_PATH_${_lib} ${_lib}
|
||||
+ HINTS ${PC_BROTLIENC_LIBRARY_DIRS})
|
||||
+ if(NOT PC_BROTLIENC_PATH_${_lib})
|
||||
+ unset(BROTLIENC_LIBRARIES)
|
||||
+ break()
|
||||
+ endif()
|
||||
+ list(APPEND BROTLIENC_LIBRARIES "${PC_BROTLIENC_PATH_${_lib}}")
|
||||
+endforeach()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(BrotliEnc
|
||||
--
|
||||
2.16.3
|
||||
|
||||
37
package/woff2/0002-Fix-the-build-with-CMake-4.patch
Normal file
37
package/woff2/0002-Fix-the-build-with-CMake-4.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
From ee31ca0647decc493e992eaa3dc5be9d9e1bc871 Mon Sep 17 00:00:00 2001
|
||||
From: Adrian Perez de Castro <aperez@igalia.com>
|
||||
Date: Sat, 25 Oct 2025 22:19:21 +0300
|
||||
Subject: [PATCH] Fix the build with CMake 4
|
||||
|
||||
Require CMake 3.5, which is the latest version that CMake 4 is
|
||||
backwards-compatible with. The CMake build system does not need
|
||||
any change otherwise.
|
||||
|
||||
Fixes #183
|
||||
|
||||
Upstream: https://github.com/google/woff2/pull/187
|
||||
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
|
||||
---
|
||||
CMakeLists.txt | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index ecfbb83..6525747 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -3,11 +3,7 @@
|
||||
# Distributed under MIT license.
|
||||
# See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||
|
||||
-# Ubuntu 12.04 LTS has CMake 2.8.7, and is an important target since
|
||||
-# several CI services, such as Travis and Drone, use it. Solaris 11
|
||||
-# has 2.8.6, and it's not difficult to support if you already have to
|
||||
-# support 2.8.7.
|
||||
-cmake_minimum_required(VERSION 2.8.6)
|
||||
+cmake_minimum_required(VERSION 3.5.0)
|
||||
|
||||
project(woff2)
|
||||
|
||||
--
|
||||
2.51.1
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 08ece7871775c0d7bf4fdff64b961cdc256adf6c Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Trofimovich <slyich@gmail.com>
|
||||
Date: Fri, 2 Aug 2024 22:12:03 +0100
|
||||
Subject: [PATCH] include/woff2/output.h: add missing <stdint.h> include
|
||||
|
||||
Without the change `woff2` build fails on upcoming `gcc-15` as:
|
||||
|
||||
In file included from src/woff2_out.cc:9:
|
||||
include/woff2/output.h:73:25: error: expected ')' before '*' token
|
||||
73 | WOFF2MemoryOut(uint8_t* buf, size_t buf_size);
|
||||
| ~ ^
|
||||
| )
|
||||
include/woff2/output.h:79:3: error: 'uint8_t' does not name a type
|
||||
79 | uint8_t* buf_;
|
||||
| ^~~~~~~
|
||||
include/woff2/output.h:16:1: note: 'uint8_t' is defined in header '<cstdint>';
|
||||
this is probably fixable by adding '#include <cstdint>'
|
||||
15 | #include <string>
|
||||
+++ |+#include <cstdint>
|
||||
16 |
|
||||
|
||||
Upstream: https://github.com/google/woff2/pull/176
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
include/woff2/output.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/include/woff2/output.h b/include/woff2/output.h
|
||||
index dc78ccf..b12d538 100644
|
||||
--- a/include/woff2/output.h
|
||||
+++ b/include/woff2/output.h
|
||||
@@ -9,6 +9,8 @@
|
||||
#ifndef WOFF2_WOFF2_OUT_H_
|
||||
#define WOFF2_WOFF2_OUT_H_
|
||||
|
||||
+#include <stdint.h>
|
||||
+
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
12
package/woff2/Config.in
Normal file
12
package/woff2/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_WOFF2
|
||||
bool "woff2"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_BROTLI
|
||||
help
|
||||
Reference implementation for the WOFF2 font file format,
|
||||
typically used for Web fonts
|
||||
|
||||
https://github.com/google/woff2
|
||||
|
||||
comment "woff2 needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
5
package/woff2/woff2.hash
Normal file
5
package/woff2/woff2.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally generated:
|
||||
sha512 c788bba1530aec463e755e901f9342f4b599e3a07f54645fef1dc388ab5d5c30625535e5dd38e9e792e04a640574baa50eeefb6b7338ab403755f4a4e0c3044d woff2-1.0.2.tar.gz
|
||||
|
||||
# Hash for license files:
|
||||
sha512 8ee924da3fb5d16135adcf6a8fbe9e2e8f3d2d80468617e72ca4fa059a60f8455c9a5f68a8dc381b1297c8bf39c887a912d0f69246d2604ada74d3da9e8e490b LICENSE
|
||||
23
package/woff2/woff2.mk
Normal file
23
package/woff2/woff2.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
#
|
||||
# woff2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
WOFF2_VERSION = 1.0.2
|
||||
WOFF2_SITE = $(call github,google,woff2,v$(WOFF2_VERSION))
|
||||
WOFF2_LICENSE = MIT
|
||||
WOFF2_LICENSE_FILES = LICENSE
|
||||
WOFF2_INSTALL_STAGING = YES
|
||||
WOFF2_DEPENDENCIES = brotli
|
||||
WOFF2_CONF_OPTS = \
|
||||
-DNOISY_LOGGING=OFF
|
||||
|
||||
# The CMake build files for woff2 manually set some RPATH handling options
|
||||
# which make the installation steps fail with static builds, so pass this
|
||||
# to prevent any attempt of mangling RPATH that CMake would do.
|
||||
ifneq ($(BR2_SHARED_LIBS),y)
|
||||
WOFF2_CONF_OPTS += -DCMAKE_SKIP_RPATH=ON
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user