71c4debac5
All drm modules are added to the first and second stages, except for nouveau and nvidia. Nouveau is added to stage2. nvidia needs to be added to live and the base system separately. This is an auxiliary target. See also https://bugzilla.altlinux.org/31971
48 lines
1.2 KiB
Makefile
48 lines
1.2 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) $$(STAGE1_NVIDIA_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 set,STAGE1_NVIDIA_KMODULES,drm-nouveau)
|
|
|
|
use/drm/stage2/nvidia: use/drm/stage2/nouveau
|
|
@$(call set,STAGE1_NVIDIA_KMODULES,)
|
|
|
|
use/drm/stage2/full: use/drm/stage2/ancient use/drm/stage2/radeon \
|
|
use/drm/stage2/nouveau; @:
|