From patchwork Wed Mar 1 16:25:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Gruszka X-Patchwork-Id: 13156214 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA76CC64ED6 for ; Wed, 1 Mar 2023 16:25:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 346BE10E330; Wed, 1 Mar 2023 16:25:25 +0000 (UTC) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2AFB510E331 for ; Wed, 1 Mar 2023 16:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677687923; x=1709223923; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5JMUVh4LxWyDoz75oNaI3IMcgu3bnMvNUZVMbEN22Ec=; b=kXb6J6EnbY9KVZ3OqTWEVYFQMAOH1tLV38La5AUSb08gQfyL8ZpFoITn X1ijlDZv4O/ltUIMbpgciatsBu9vwiPlXPxTSa7smaJSvfM1Q8MAUMZ/s gQepnK3gxoerYjWRYI5EbMUvAcEobDTDZV4gqhNzyRpsA0kzd82YPig6B t+wzAa+f21JMGag5r4aJSMGLuerHRocFYO4szY+x/2Myy6NQDNvMV2J58 x3V/H4LJYplE3XrlMEsVUguFPuJ9Vzk8sTjVER/lkLlLSFH0RyRfWmTIt 5HBqDuMWBHn4aKBafbB1wG++mLmMmSwdLozcC01SGsxjP9YttkOhfirtY w==; X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="420714231" X-IronPort-AV: E=Sophos;i="5.98,225,1673942400"; d="scan'208";a="420714231" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2023 08:25:22 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="704904461" X-IronPort-AV: E=Sophos;i="5.98,225,1673942400"; d="scan'208";a="704904461" Received: from joe-255.igk.intel.com (HELO localhost) ([10.91.220.57]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2023 08:25:20 -0800 From: Stanislaw Gruszka To: dri-devel@lists.freedesktop.org Subject: [PATCH] accel: Build sub-directories based on config options Date: Wed, 1 Mar 2023 17:25:08 +0100 Message-Id: <20230301162508.3963484-1-stanislaw.gruszka@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stanislaw Gruszka , Oded Gabbay , Jeffrey Hugo , Jacek Lawrynowicz Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Signed-off-by: Stanislaw Gruszka Reviewed-by: Jeffrey Hugo --- drivers/accel/Makefile | 4 ++-- 1 file 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/