mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-12 06:57:57 +04:00
The display target feature gates every DRM module, but it says nothing useful: it is set on ten targets, so a mediatek/mt7623 board can have a display while a filogic board with a MIPI DBI panel cannot, and rockchip claims it for a NanoPi R2S as much as for a Rock 5B. Whether a board drives a panel is a per-device choice, not a property of the SoC family. The DRM and V4L2 nodes also end up 0600 root:root, so a display server runs as root or not at all. Add a video-support package which allocates the video and video-capture groups and installs the hotplug rules for the DRM and V4L2 nodes, and make the modules depend on it. The dependency is a plain one, not a select, so the modules are offered once the feature is chosen. Targets whose display drivers are built into the kernel carry the package in DEFAULT_PACKAGES, since no module pulls it in for them, and the one device profile that ships a DRM module on another target lists it directly. DISPLAY_SUPPORT stays for now, so this changes no existing selection. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
33 lines
705 B
Makefile
33 lines
705 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
ARCH:=i386
|
|
BOARD:=x86
|
|
BOARDNAME:=x86
|
|
FEATURES:=squashfs ext4 vdi vmdk vhdx pcmcia targz fpu boot-part rootfs-part
|
|
SUBTARGETS:=generic legacy geode 64
|
|
|
|
KERNEL_PATCHVER:=6.18
|
|
|
|
KERNELNAME:=bzImage
|
|
|
|
include $(INCLUDE_DIR)/target.mk
|
|
|
|
DEFAULT_PACKAGES += \
|
|
partx-utils mkf2fs \
|
|
e2fsprogs kmod-button-hotplug \
|
|
grub2-bios-setup
|
|
DEFAULT_PACKAGES += video-support
|
|
|
|
$(eval $(call BuildTarget))
|
|
|
|
$(eval $(call $(if $(CONFIG_ISO_IMAGES),SetupHostCommand,Ignore),mkisofs, \
|
|
Please install mkisofs. , \
|
|
mkisofs -v 2>&1 , \
|
|
genisoimage -v 2>&1 | grep genisoimage, \
|
|
xorrisofs -v 2>&1 | grep xorriso \
|
|
))
|