media: staging/media: add a STAGING_MEDIA_DEPRECATED option

Add a kernel config option to build deprecated media drivers
that are scheduled for removal. Move stkwebcam to the deprecated
directory to make it clear that this driver is deprecated.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Hans Verkuil 2022-08-10 13:54:45 +02:00 committed by Mauro Carvalho Chehab
parent f068a6cec0
commit 1943fb1e50
8 changed files with 17 additions and 3 deletions

View File

@ -38,10 +38,24 @@ source "drivers/staging/media/omap4iss/Kconfig"
source "drivers/staging/media/rkvdec/Kconfig"
source "drivers/staging/media/stkwebcam/Kconfig"
source "drivers/staging/media/sunxi/Kconfig"
source "drivers/staging/media/tegra-video/Kconfig"
menuconfig STAGING_MEDIA_DEPRECATED
bool "Media staging drivers (DEPRECATED)"
default n
help
This option enables deprecated media drivers that are
scheduled for future removal from the kernel.
If you wish to work on these drivers to prevent their removal,
then contact the linux-media@vger.kernel.org mailing list.
If in doubt, say N here.
if STAGING_MEDIA_DEPRECATED
source "drivers/staging/media/deprecated/stkwebcam/Kconfig"
endif
endif

View File

@ -5,7 +5,7 @@ obj-$(CONFIG_VIDEO_MAX96712) += max96712/
obj-$(CONFIG_VIDEO_MESON_VDEC) += meson/vdec/
obj-$(CONFIG_VIDEO_OMAP4) += omap4iss/
obj-$(CONFIG_VIDEO_ROCKCHIP_VDEC) += rkvdec/
obj-$(CONFIG_VIDEO_STKWEBCAM) += stkwebcam/
obj-$(CONFIG_VIDEO_STKWEBCAM) += deprecated/stkwebcam/
obj-$(CONFIG_VIDEO_SUNXI) += sunxi/
obj-$(CONFIG_VIDEO_TEGRA) += tegra-video/
obj-$(CONFIG_VIDEO_HANTRO) += hantro/