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
+98
View File
@@ -0,0 +1,98 @@
comment "gst1-imx needs a toolchain w/ dynamic library"
depends on BR2_arm
depends on BR2_STATIC_LIBS
menuconfig BR2_PACKAGE_GST1_IMX
bool "gst1-imx"
depends on BR2_arm # Only relevant for i.MX
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_GST1_PLUGINS_BASE
help
This is a set of GStreamer 1.0 plugins for plugins for
Freescale's i.MX platforms, which make use of the i.MX
multimedia capabilities.
https://github.com/Freescale/gstreamer-imx
if BR2_PACKAGE_GST1_IMX
config BR2_PACKAGE_GST1_IMX_EGLVISINK
bool "imxeglvivsink"
depends on BR2_PACKAGE_IMX_GPU_VIV
help
Elements leveraging the 3D GPU
comment "imxeglvivsink needs the Vivante 3D libraries"
depends on !BR2_PACKAGE_IMX_GPU_VIV
config BR2_PACKAGE_GST1_IMX_G2D
bool "imxg2d"
depends on BR2_PACKAGE_IMX_GPU_G2D
help
Elements leveraging the 2D GPU
comment "imxg2d needs the G2D libraries"
depends on !BR2_PACKAGE_IMX_GPU_G2D
config BR2_PACKAGE_GST1_IMX_IPU
bool "imxipu"
depends on BR2_LINUX_KERNEL
help
Elements leveraging the IPU
comment "imxipu needs an imx-specific Linux kernel to be built"
depends on !BR2_LINUX_KERNEL
config BR2_PACKAGE_GST1_IMX_MP3ENCODER
bool "mp3encoder"
depends on BR2_PACKAGE_IMX_CODEC
help
Elements for MP3 encoding
comment "mp3encoder needs the i.MX codec binaries"
depends on !BR2_PACKAGE_IMX_CODEC
config BR2_PACKAGE_GST1_IMX_PXP
bool "imxpxp"
depends on BR2_LINUX_KERNEL
help
Elements leveraging the PXP
comment "imxpxp needs an imx-specific Linux kernel to be built"
depends on !BR2_LINUX_KERNEL
config BR2_PACKAGE_GST1_IMX_UNIAUDIODEC
bool "uniaudiodec"
depends on BR2_PACKAGE_IMX_CODEC
help
Elements for audio decoding
comment "uniaudiodec needs the i.MX codec binaries"
depends on !BR2_PACKAGE_IMX_CODEC
config BR2_PACKAGE_GST1_IMX_VPU
bool "imxvpu"
depends on BR2_PACKAGE_LIBIMXVPUAPI
help
Elements leveraging the VPU
comment "imxvpu needs the VPU imxvpuapi library"
depends on !BR2_PACKAGE_LIBIMXVPUAPI
config BR2_PACKAGE_GST1_IMX_V4L2VIDEOSRC
bool "imxv4l2videosrc"
select BR2_PACKAGE_GST1_PLUGINS_BAD
help
Elements for V4L2 capture
config BR2_PACKAGE_GST1_IMX_V4L2VIDEOSINK
bool "imxv4l2videosink"
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2 # V4L2_COLORSPACE_DEFAULT
select BR2_PACKAGE_GST1_PLUGINS_BAD
help
Elements for V4L2 output
comment "imxv4l2videosink needs a toolchain w/ headers >= 4.2"
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
endif
@@ -0,0 +1,3 @@
# locally computed hash
sha256 21feb24130c18e4a1f8cc4f72d575903d1f9134dd0604e41e91b5e783d81e320 gst1-imx-0.13.1.tar.gz
sha256 94b03f1a60a7fd5007149530626a895a6ef5a8b9342abfd56860c5f3956f5d23 LICENSE
+104
View File
@@ -0,0 +1,104 @@
################################################################################
#
# gst1-imx
#
################################################################################
GST1_IMX_VERSION = 0.13.1
GST1_IMX_SITE = $(call github,Freescale,gstreamer-imx,$(GST1_IMX_VERSION))
GST1_IMX_LICENSE = LGPL-2.0+
GST1_IMX_LICENSE_FILES = LICENSE
GST1_IMX_INSTALL_STAGING = YES
GST1_IMX_NEEDS_EXTERNAL_WAF = YES
GST1_IMX_DEPENDENCIES += \
host-pkgconf \
gstreamer1 \
gst1-plugins-base
GST1_IMX_CONF_OPTS = --prefix="/usr"
ifeq ($(BR2_LINUX_KERNEL),y)
# IPU and PXP need access to imx-specific kernel headers
GST1_IMX_DEPENDENCIES += linux
GST1_IMX_CONF_OPTS += --kernel-headers="$(LINUX_DIR)/include"
endif
ifeq ($(BR2_PACKAGE_IMX_CODEC),y)
GST1_IMX_DEPENDENCIES += imx-codec
endif
ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
GST1_IMX_DEPENDENCIES += imx-gpu-viv
endif
ifeq ($(BR2_PACKAGE_IMX_GPU_G2D),y)
GST1_IMX_DEPENDENCIES += imx-gpu-g2d
endif
ifeq ($(BR2_PACKAGE_GST1_IMX_EGLVISINK),y)
# There's no --enable-eglvivsink option
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
GST1_IMX_DEPENDENCIES += xlib_libX11
GST1_IMX_CONF_OPTS += --egl-platform=x11
else
ifeq ($(BR2_PACKAGE_WAYLAND),y)
GST1_IMX_DEPENDENCIES += wayland
GST1_IMX_CONF_OPTS += --egl-platform=wayland
else
GST1_IMX_CONF_OPTS += --egl-platform=fb
endif
endif
else
GST1_IMX_CONF_OPTS += --disable-eglvivsink
endif
# There's no --enable-g2d option
ifeq ($(BR2_PACKAGE_GST1_IMX_G2D),)
GST1_IMX_CONF_OPTS += --disable-g2d
endif
# There's no --enable-ipu option
ifeq ($(BR2_PACKAGE_GST1_IMX_IPU),)
GST1_IMX_CONF_OPTS += --disable-ipu
endif
# There's no --enable-mp3encoder option
ifeq ($(BR2_PACKAGE_GST1_IMX_MP3ENCODER),)
GST1_IMX_CONF_OPTS += --disable-mp3encoder
endif
# There's no --enable-pxp option
ifeq ($(BR2_PACKAGE_GST1_IMX_PXP),)
GST1_IMX_CONF_OPTS += --disable-pxp
endif
# There's no --enable-uniaudiodec option
ifeq ($(BR2_PACKAGE_GST1_IMX_UNIAUDIODEC),)
GST1_IMX_CONF_OPTS += --disable-uniaudiodec
endif
ifeq ($(BR2_PACKAGE_GST1_IMX_VPU),y)
# There's no --enable-vpu option
GST1_IMX_DEPENDENCIES += libimxvpuapi
else
GST1_IMX_CONF_OPTS += --disable-vpu
endif
ifeq ($(BR2_PACKAGE_GST1_IMX_V4L2VIDEOSRC),y)
# There's no --enable-imxv4l2videosrc option
GST1_IMX_DEPENDENCIES += gst1-plugins-bad
else
GST1_IMX_CONF_OPTS += --disable-imxv4l2videosrc
endif
ifeq ($(BR2_PACKAGE_GST1_IMX_V4L2VIDEOSINK),y)
# There's no --enable-imxv4l2videosink option
GST1_IMX_DEPENDENCIES += gst1-plugins-bad
else
GST1_IMX_CONF_OPTS += --disable-imxv4l2videosink
endif
$(eval $(waf-package))