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 EA1D7C7EE39 for ; Fri, 26 May 2023 16:44:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7EAB110E82C; Fri, 26 May 2023 16:44:24 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6305210E824 for ; Fri, 26 May 2023 16:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685119454; x=1716655454; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZszMQtfbpzfXzkAr427kB7EgoVsjGpjjJ9c38zYY888=; b=EsQCv7Sk5bi2z8RSOkjILyZTOlErMXmOeSMPvEck4FPas9t2zvIiBPZ8 neMyVBq12cumnott8Vvjr7UdF2Oopk0jArWSD8pCFSEZ9ikl61+7nWTJU kiYdwqDp5lTHCiKP1AjROVQNIALMU8BcP3REBQuyceDUk2RE2nm4zNwDn xLEEAcKTAwmCoVNjXK0kAvsChnjZ2wQu9wlRpDpuvMdjUj7Bdu3hAqHvg o8z/AIix+dE7cV5s9g/hExyhONdkeC0dl8S7tpkAT+1JNe6uUA+HxggUj Vwb7sRlo2l/u01ybBBHBTwWwZSrWsuDerAyW9yBXpV0heSGtRcGye+YUH A==; X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="356628385" X-IronPort-AV: E=Sophos;i="6.00,194,1681196400"; d="scan'208";a="356628385" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2023 09:44:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="795151478" X-IronPort-AV: E=Sophos;i="6.00,194,1681196400"; d="scan'208";a="795151478" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.196]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2023 09:44:13 -0700 From: Lucas De Marchi To: intel-xe@lists.freedesktop.org Date: Fri, 26 May 2023 09:43:48 -0700 Message-Id: <20230526164358.86393-12-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230526164358.86393-1-lucas.demarchi@intel.com> References: <20230526164358.86393-1-lucas.demarchi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v5 11/21] drm/xe: Include build directory X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lucas De Marchi , Matt Roper Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" 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. Reviewed-by: Matt Roper Signed-off-by: Lucas De Marchi --- 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