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
+61
View File
@@ -0,0 +1,61 @@
comment "gstreamer 1.x needs a toolchain w/ wchar, threads"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_GSTREAMER1
bool "gstreamer 1.x"
depends on BR2_USE_WCHAR # glib2
depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
depends on BR2_USE_MMU # glib2
select BR2_PACKAGE_LIBGLIB2
help
GStreamer is an open source multimedia framework. This 1.x
version of Gstreamer is incompatible with Gstreamer 0.10.x.
https://gstreamer.freedesktop.org/
if BR2_PACKAGE_GSTREAMER1
config BR2_PACKAGE_GSTREAMER1_CHECK
bool "enable unit test libraries"
help
Enable building unit test libraries for gstreamer.
config BR2_PACKAGE_GSTREAMER1_PARSE
bool "enable command-line parser"
default y
help
Enable command line parser for gstreamer. This may increase
the CPU overhead by a small amount.
config BR2_PACKAGE_GSTREAMER1_TRACE
bool "enable tracing subsystem"
default y
help
Enable the tracing subsystem within gstreamer. This may
increase CPU overhead by a small amount.
config BR2_PACKAGE_GSTREAMER1_GST_DEBUG
bool "enable gst-debug trace support"
default y
help
Enable support for the gst-debug tracing functionality in
gstreamer. This has limited CPU overhead, but does increase
the rootfs size somewhat.
config BR2_PACKAGE_GSTREAMER1_PLUGIN_REGISTRY
bool "enable plugin registry"
default y
help
Enable support for the GStreamer plugin registry. This may
increase the launch-time for a GStreamer application.
config BR2_PACKAGE_GSTREAMER1_INSTALL_TOOLS
bool "install tools"
default y
help
Install the gst-inspect, gst-launch, gst-stats and
gst-typefind tools. This will take up additional space on
the target.
endif
@@ -0,0 +1,3 @@
# From https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.18.5.tar.xz.sha256sum
sha256 55862232a63459bbf56abebde3085ca9aec211b478e891dacea4d6df8cafe80a gstreamer-1.18.5.tar.xz
sha256 f445dc78b88496f7e20c7a2a461b95baba5865c8919b8289ac24ac0a80c6ce7a COPYING
@@ -0,0 +1,62 @@
################################################################################
#
# gstreamer1
#
################################################################################
GSTREAMER1_VERSION = 1.18.5
GSTREAMER1_SOURCE = gstreamer-$(GSTREAMER1_VERSION).tar.xz
GSTREAMER1_SITE = https://gstreamer.freedesktop.org/src/gstreamer
GSTREAMER1_INSTALL_STAGING = YES
GSTREAMER1_LICENSE_FILES = COPYING
GSTREAMER1_LICENSE = LGPL-2.0+, LGPL-2.1+
GSTREAMER1_CPE_ID_VENDOR = gstreamer_project
GSTREAMER1_CPE_ID_PRODUCT = gstreamer
GSTREAMER1_CONF_OPTS = \
-Dexamples=disabled \
-Dtests=disabled \
-Dbenchmarks=disabled \
-Dtools=$(if $(BR2_PACKAGE_GSTREAMER1_INSTALL_TOOLS),enabled,disabled) \
-Dgtk_doc=disabled \
-Dgobject-cast-checks=disabled \
-Dglib-asserts=disabled \
-Dglib-checks=disabled \
-Dextra-checks=disabled \
-Dcheck=$(if $(BR2_PACKAGE_GSTREAMER1_CHECK),enabled,disabled) \
-Dtracer_hooks=$(if $(BR2_PACKAGE_GSTREAMER1_TRACE),true,false) \
-Doption-parsing=$(if $(BR2_PACKAGE_GSTREAMER1_PARSE),true,false) \
-Dgst_debug=$(if $(BR2_PACKAGE_GSTREAMER1_GST_DEBUG),true,false) \
-Dgst_parse=true \
-Dregistry=$(if $(BR2_PACKAGE_GSTREAMER1_PLUGIN_REGISTRY),true,false) \
-Ddoc=disabled
GSTREAMER1_DEPENDENCIES = \
host-bison \
host-flex \
host-pkgconf \
libglib2 \
$(if $(BR2_PACKAGE_LIBUNWIND),libunwind) \
$(if $(BR2_PACKAGE_VALGRIND),valgrind) \
$(TARGET_NLS_DEPENDENCIES)
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
GSTREAMER1_CONF_OPTS += -Dintrospection=enabled
GSTREAMER1_DEPENDENCIES += gobject-introspection
else
GSTREAMER1_CONF_OPTS += -Dintrospection=disabled
endif
GSTREAMER1_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
# By default, girdir uses datadir as its prefix of which pkg-config will not
# append the sysroot directory. This results in a build failure with
# gst1-plugins-base. Changing prefix to ${libdir}/../share prevents this error.
define GSTREAMER1_FIX_GIRDIR
$(SED) "s%girdir=.*%girdir=\$${libdir}/../share/gir-1.0%g" \
$(STAGING_DIR)/usr/lib/pkgconfig/gstreamer-1.0.pc \
$(STAGING_DIR)/usr/lib/pkgconfig/gstreamer-base-1.0.pc
endef
GSTREAMER1_POST_INSTALL_STAGING_HOOKS += GSTREAMER1_FIX_GIRDIR
$(eval $(meson-package))