openwrt/target/linux/bcm27xx/modules/video.mk
Adrian Schmutzler 7d7aa2fd92 brcm2708: rename target to bcm27xx
This change makes the names of Broadcom targets consistent by using
the common notation based on SoC/CPU ID (which is used internally
anyway), bcmXXXX instead of brcmXXXX.
This is even used for target TITLE in make menuconfig already,
only the short target name used brcm so far.

Despite, since subtargets range from bcm2708 to bcm2711, it seems
appropriate to use bcm27xx instead of bcm2708 (again, as already done
for BOARDNAME).

This also renames the packages brcm2708-userland and brcm2708-gpu-fw.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
2020-02-14 14:10:51 +01:00

86 lines
2.4 KiB
Makefile

#
# Copyright (C) 2019 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
define KernelPackage/camera-bcm2835
TITLE:=BCM2835 Camera
KCONFIG:= \
CONFIG_VIDEO_BCM2835 \
CONFIG_VIDEO_BCM2835_MMAL
FILES:= \
$(LINUX_DIR)/drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko
AUTOLOAD:=$(call AutoLoad,65,bcm2835-v4l2)
$(call AddDepends/video,@TARGET_bcm27xx +kmod-vchiq-mmal-bcm2835 +kmod-video-videobuf2)
endef
define KernelPackage/camera-bcm2835/description
Camera host interface devices for Broadcom BCM2835 SoC.
This operates over the VCHIQ interface to a service running on VideoCore.
endef
$(eval $(call KernelPackage,camera-bcm2835))
define KernelPackage/drm-vc4
SUBMENU:=$(VIDEO_MENU)
TITLE:=Broadcom VC4 Graphics
DEPENDS:= \
@TARGET_bcm27xx +kmod-drm \
+kmod-sound-core \
+kmod-sound-soc-core
KCONFIG:= \
CONFIG_DRM_VC4 \
CONFIG_DRM_VC4_HDMI_CEC=n \
CONFIG_DRM_V3D=n \
CONFIG_DRM_TVE200=n
FILES:= \
$(LINUX_DIR)/drivers/gpu/drm/vc4/vc4.ko \
$(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
AUTOLOAD:=$(call AutoProbe,vc4)
endef
define KernelPackage/drm-vc4/description
Direct Rendering Manager (DRM) support for Broadcom VideoCore IV GPU
used in BCM2835, BCM2836 and BCM2837 SoCs (e.g. Raspberry Pi).
endef
$(eval $(call KernelPackage,drm-vc4))
define KernelPackage/vc-sm-cma
TITLE:=VideoCore Shared Memory (CMA) driver
KCONFIG:= \
CONFIG_BCM_VC_SM_CMA
FILES:= \
$(LINUX_DIR)/drivers/staging/vc04_services/vc-sm-cma/vc-sm-cma.ko
$(call AddDepends/video,@TARGET_bcm27xx)
endef
define KernelPackage/vc-sm-cma/description
Shared memory interface that supports sharing dmabufs with VideoCore.
This operates over the VCHIQ interface to a service running on VideoCore.
endef
$(eval $(call KernelPackage,vc-sm-cma))
define KernelPackage/vchiq-mmal-bcm2835
TITLE:=BCM2835 MMAL VCHIQ service
KCONFIG:= \
CONFIG_BCM2835_VCHIQ_MMAL \
CONFIG_VIDEO_CODEC_BCM2835=n
FILES:= \
$(LINUX_DIR)/drivers/staging/vc04_services/vchiq-mmal/bcm2835-mmal-vchiq.ko
$(call AddDepends/video,@TARGET_bcm27xx +kmod-vc-sm-cma)
endef
define KernelPackage/vchiq-mmal-bcm2835/description
Enables the MMAL API over VCHIQ as used for the
majority of the multimedia services on VideoCore.
endef
$(eval $(call KernelPackage,vchiq-mmal-bcm2835))