diff options
| author | Stanislaw Gruszka <[email protected]> | 2023-03-01 17:25:08 +0100 |
|---|---|---|
| committer | Jacek Lawrynowicz <[email protected]> | 2023-03-13 12:40:41 +0100 |
| commit | dd61bbd0d1fba48cd9464e047a7f90b70a463e39 (patch) | |
| tree | 1ad3c53d435d9cf6c76b8c842e2015cb3d3ffa2f | |
| parent | f8d221dd97cf054740017db9189029463c434a9f (diff) | |
accel: Build sub-directories based on config options
When accel drivers are disabled do not process into
sub-directories and create built-in archives:
AR drivers/accel/habanalabs/built-in.a
AR drivers/accel/ivpu/built-in.a
Fixes: 35b137630f08 ("accel/ivpu: Introduce a new DRM driver for Intel VPU")
Signed-off-by: Stanislaw Gruszka <[email protected]>
Reviewed-by: Jeffrey Hugo <[email protected]>
Signed-off-by: Jacek Lawrynowicz <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/accel/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/accel/Makefile b/drivers/accel/Makefile index 07aa77aed1c8..f22fd44d586b 100644 --- a/drivers/accel/Makefile +++ b/drivers/accel/Makefile @@ -1,4 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-y += habanalabs/ -obj-y += ivpu/ +obj-$(CONFIG_DRM_ACCEL_HABANALABS) += habanalabs/ +obj-$(CONFIG_DRM_ACCEL_IVPU) += ivpu/ |