mkimage-profiles/features.in/drm/config.mk
Anton Midyukov da9180838f drm, plymouth, stage2, x11: initial feature drm
The drm feature solves the problem of creating a common entry
point for adding kernel drm modules for different package lists.
The need for allocation into a separate feature arose from one
parties to the need to make a switch between free and proprietary
NVIDIA driver, on the other, because of the need to add only drm
modules kernels for purposes such as use/stage2/kms and use/plymouth.

Also no more switch needed for RADEON, as only the free video driver
remains.
2020-11-06 19:20:01 +07:00

51 lines
1.3 KiB
Makefile

use/drm:
@$(call add_feature)
@$(call add,DRM_KMODULES,drm)
@$(call add,THE_KMODULES,$$(DRM_KMODULES))
use/drm/ancient: use/drm
@$(call add,DRM_KMODULES,drm-ancient)
use/drm/radeon: use/drm
@$(call add,DRM_KMODULES,drm-radeon)
use/drm/nouveau: use/drm
@$(call try,NVIDIA_KMODULES,drm-nouveau)
@$(call add,DRM_KMODULES,$$(NVIDIA_KMODULES))
use/drm/nvidia:: use/drm/nouveau; @:
use/drm/nvidia/optimus:: use/drm/nvidia; @:
ifeq (,$(filter-out i586 x86_64 aarch64,$(ARCH)))
use/drm/nvidia::
@$(call set,NVIDIA_KMODULES,nvidia)
use/drm/nvidia/optimus::
@$(call add,NVIDIA_KMODULES,bbswitch)
endif
use/drm/full: use/drm/ancient use/drm/radeon \
use/drm/nouveau; @:
use/drm/stage2:
@$(call add,STAGE1_DRM_KMODULES,drm)
@$(call add,STAGE1_KMODULES,$$(STAGE1_DRM_KMODULES))
use/drm/stage2/ancient: use/drm/stage2
@$(call add,STAGE1_DRM_KMODULES,drm-ancient)
use/drm/stage2/radeon: use/drm/stage2
@$(call add,STAGE1_DRM_KMODULES,drm-radeon)
use/drm/stage2/nouveau: use/drm/stage2
@$(call try,STAGE1_NVIDIA_KMODULES,drm-nouveau)
@$(call add,STAGE1_DRM_KMODULES,$$(STAGE1_NVIDIA_KMODULES))
use/drm/stage2/nvidia: use/drm/stage2/nouveau; @:
ifeq (,$(filter-out i586 x86_64 aarch64,$(ARCH)))
@$(call set,STAGE1_NVIDIA_KMODULES,nvidia)
endif
use/drm/stage2/full: use/drm/stage2/ancient use/drm/stage2/radeon \
use/drm/stage2/nouveau; @: