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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 175E5C76196 for ; Mon, 3 Apr 2023 10:51:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5411E85CF8; Mon, 3 Apr 2023 12:51:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="lCLxp4q0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B3DC285CF8; Mon, 3 Apr 2023 12:51:45 +0200 (CEST) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 773D085A42 for ; Mon, 3 Apr 2023 12:51:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=devarsht@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 333Apewg072323; Mon, 3 Apr 2023 05:51:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680519100; bh=ZHtHW4I+bMET90I0g5WOs4gDZ+OsHlbMlPvZrngfOJQ=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=lCLxp4q0AgDKF8cU+8i2ULozwe/PJqusisavr4whJ9sI+2XkjSX8S5U4WwhelvOjf qZ0T3qlsaYBLylg8P8PY0SFW70od1cbICgVKtpq2C4HoV6lA7Xl1PaTRQk67FqlDbl h/IzmcQy5xt04fByjrHrj77iKBvLR6kQvNAX5ITU= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 333ApePm034517 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Apr 2023 05:51:40 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 3 Apr 2023 05:51:40 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 3 Apr 2023 05:51:39 -0500 Received: from [172.24.145.199] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 333ApbkQ077799; Mon, 3 Apr 2023 05:51:38 -0500 Message-ID: <2ca4ba79-1d79-046b-000c-c85737747fcf@ti.com> Date: Mon, 3 Apr 2023 16:21:37 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH V5 04/13] drivers: video: Makefile: Rule to compile necessary video driver files Content-Language: en-US To: Nikhil M Jain , , CC: , , References: <20230403081443.77933-1-n-jain1@ti.com> <20230403081443.77933-5-n-jain1@ti.com> From: Devarsh Thakkar In-Reply-To: <20230403081443.77933-5-n-jain1@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi Nikhil, On 03/04/23 13:44, Nikhil M Jain wrote: > To enable video driver at SPL, need to compile video-uclass, > vidconsole-uclass, backlight-uclass, panel-uclass, simple-panel, add > rules to compile them at SPL only. To support splash_display at SPL, > need to compile video-bmp, add rule to compile at SPL stage. > > Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Regards Devarsh > --- > V5: > - Use $(SPL_TPL_) to check for stage specific configs and compile at > specific stages. > - Removed ifdef CONFIG_SPL_BUILD > > V4: > - No change > > V3: > - Rule to compile backlight, console and panel files > - Not added Reiewed-by tag due to changes > > V2: > - No change > > drivers/video/Makefile | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/video/Makefile b/drivers/video/Makefile > index cb3f373645..bb139f550c 100644 > --- a/drivers/video/Makefile > +++ b/drivers/video/Makefile > @@ -4,12 +4,12 @@ > # Wolfgang Denk, DENX Software Engineering, wd@denx.de. > > ifdef CONFIG_DM > -obj-$(CONFIG_BACKLIGHT) += backlight-uclass.o > +obj-$(CONFIG_$(SPL_TPL_)BACKLIGHT) += backlight-uclass.o > obj-$(CONFIG_BACKLIGHT_GPIO) += backlight_gpio.o > obj-$(CONFIG_BACKLIGHT_PWM) += pwm_backlight.o > -obj-$(CONFIG_CONSOLE_NORMAL) += console_normal.o > +obj-$(CONFIG_$(SPL_TPL)CONSOLE_NORMAL) += console_normal.o > obj-$(CONFIG_CONSOLE_ROTATION) += console_rotate.o > -ifdef CONFIG_CONSOLE_NORMAL > +ifdef CONFIG_$(SPL_TPL_)CONSOLE_NORMAL > obj-y += console_core.o > else ifdef CONFIG_CONSOLE_ROTATION > obj-y += console_core.o > @@ -18,9 +18,9 @@ obj-$(CONFIG_CONSOLE_ROTATION) += console_core.o > obj-$(CONFIG_CONSOLE_TRUETYPE) += console_truetype.o fonts/ > obj-$(CONFIG_DISPLAY) += display-uclass.o > obj-$(CONFIG_VIDEO_MIPI_DSI) += dsi-host-uclass.o > -obj-$(CONFIG_VIDEO) += video-uclass.o vidconsole-uclass.o > -obj-$(CONFIG_VIDEO) += video_bmp.o > -obj-$(CONFIG_PANEL) += panel-uclass.o > +obj-$(CONFIG_$(SPL_TPL_)VIDEO) += video-uclass.o vidconsole-uclass.o > +obj-$(CONFIG_$(SPL_TPL_)VIDEO) += video_bmp.o > +obj-$(CONFIG_$(SPL_TPL_)PANEL) += panel-uclass.o > obj-$(CONFIG_PANEL_HX8238D) += hx8238d.o > obj-$(CONFIG_SIMPLE_PANEL) += simple_panel.o >