mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 02:45:17 +07:00
43068cb7ba
Currently, the Kbuild core manipulates header search paths in a crazy
way [1].
To fix this mess, I want all Makefiles to add explicit $(srctree)/ to
the search paths in the srctree. Some Makefiles are already written in
that way, but not all. The goal of this work is to make the notation
consistent, and finally get rid of the gross hacks.
Having whitespaces after -I does not matter since commit 48f6e3cf5b
("kbuild: do not drop -I without parameter").
[1]: https://patchwork.kernel.org/patch/9632347/
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1553859161-2628-1-git-send-email-yamada.masahiro@socionext.com
67 lines
1.9 KiB
Makefile
67 lines
1.9 KiB
Makefile
ccflags-y += -I $(srctree)/$(src)/include
|
|
ccflags-y += -I $(srctree)/$(src)/include/nvkm
|
|
ccflags-y += -I $(srctree)/$(src)/nvkm
|
|
ccflags-y += -I $(srctree)/$(src)
|
|
|
|
# NVKM - HW resource manager
|
|
#- code also used by various userspace tools/tests
|
|
include $(src)/nvif/Kbuild
|
|
nouveau-y := $(nvif-y)
|
|
|
|
# NVIF - NVKM interface library (NVKM user interface also defined here)
|
|
#- code also used by various userspace tools/tests
|
|
include $(src)/nvkm/Kbuild
|
|
nouveau-y += $(nvkm-y)
|
|
|
|
# DRM - general
|
|
ifdef CONFIG_X86
|
|
nouveau-$(CONFIG_ACPI) += nouveau_acpi.o
|
|
endif
|
|
nouveau-$(CONFIG_DEBUG_FS) += nouveau_debugfs.o
|
|
nouveau-y += nouveau_drm.o
|
|
nouveau-y += nouveau_hwmon.o
|
|
nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o
|
|
nouveau-$(CONFIG_LEDS_CLASS) += nouveau_led.o
|
|
nouveau-y += nouveau_nvif.o
|
|
nouveau-$(CONFIG_NOUVEAU_PLATFORM_DRIVER) += nouveau_platform.o
|
|
nouveau-y += nouveau_usif.o # userspace <-> nvif
|
|
nouveau-y += nouveau_vga.o
|
|
|
|
# DRM - memory management
|
|
nouveau-y += nouveau_bo.o
|
|
nouveau-y += nouveau_gem.o
|
|
nouveau-$(CONFIG_DRM_NOUVEAU_SVM) += nouveau_svm.o
|
|
nouveau-$(CONFIG_DRM_NOUVEAU_SVM) += nouveau_dmem.o
|
|
nouveau-y += nouveau_mem.o
|
|
nouveau-y += nouveau_prime.o
|
|
nouveau-y += nouveau_sgdma.o
|
|
nouveau-y += nouveau_ttm.o
|
|
nouveau-y += nouveau_vmm.o
|
|
|
|
# DRM - modesetting
|
|
nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o
|
|
nouveau-y += nouveau_bios.o
|
|
nouveau-y += nouveau_connector.o
|
|
nouveau-y += nouveau_display.o
|
|
nouveau-y += nouveau_dp.o
|
|
nouveau-y += nouveau_fbcon.o
|
|
nouveau-y += nv04_fbcon.o
|
|
nouveau-y += nv50_fbcon.o
|
|
nouveau-y += nvc0_fbcon.o
|
|
include $(src)/dispnv04/Kbuild
|
|
include $(src)/dispnv50/Kbuild
|
|
|
|
# DRM - command submission
|
|
nouveau-y += nouveau_abi16.o
|
|
nouveau-y += nouveau_chan.o
|
|
nouveau-y += nouveau_dma.o
|
|
nouveau-y += nouveau_fence.o
|
|
nouveau-y += nv04_fence.o
|
|
nouveau-y += nv10_fence.o
|
|
nouveau-y += nv17_fence.o
|
|
nouveau-y += nv50_fence.o
|
|
nouveau-y += nv84_fence.o
|
|
nouveau-y += nvc0_fence.o
|
|
|
|
obj-$(CONFIG_DRM_NOUVEAU) += nouveau.o
|