[Intel-xe] [PATCH v4 11/21] drm/xe: Include build directory
Matt Roper
matthew.d.roper at intel.com
Thu May 25 22:41:44 UTC 2023
On Thu, May 25, 2023 at 02:33:57PM -0700, Lucas De Marchi wrote:
> When doing out-of-tree builds with O= or KBUILD_OUTPUT=, it's important
> to also add the directory where the target is saved. Otherwise any file
> generated by the build system may not be available for other targets
> depending on it.
>
> The $(obj) is added automatically when building the entire kernel,
> but it's not added when M=drivers/gpu/drm/xe is added.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
Reviewed-by: Matt Roper <matthew.d.roper at intel.com>
> ---
> drivers/gpu/drm/xe/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
> index cd1614b68734..e058b1dda6e6 100644
> --- a/drivers/gpu/drm/xe/Makefile
> +++ b/drivers/gpu/drm/xe/Makefile
> @@ -24,7 +24,7 @@ subdir-ccflags-y += $(call cc-disable-warning, initializer-overrides)
> subdir-ccflags-y += $(call cc-disable-warning, frame-address)
> subdir-ccflags-$(CONFIG_DRM_XE_WERROR) += -Werror
>
> -subdir-ccflags-y += -I$(srctree)/$(src)
> +subdir-ccflags-y += -I$(obj) -I$(srctree)/$(src)
>
> # Please keep these build lists sorted!
>
> --
> 2.40.1
>
--
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation
More information about the Intel-xe
mailing list