accel: Build sub-directories based on config options
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Wed, 1 Mar 2023 16:25:08 +0000 (17:25 +0100)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Mon, 13 Mar 2023 11:44:53 +0000 (12:44 +0100)
commit2cde14b187b458b7dcf99360fe4435dae1645a1f
tree05b5260493329498dc9588e9655a6439f2d6c1d9
parentb3c9a04135bdbd3aabd5e9534bad0fe6df505f8a
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 <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230301162508.3963484-1-stanislaw.gruszka@linux.intel.com
(cherry picked from commit dd61bbd0d1fba48cd9464e047a7f90b70a463e39)
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
drivers/accel/Makefile