From mboxrd@z Thu Jan 1 00:00:00 1970 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 91887C36010 for ; Fri, 11 Apr 2025 07:17:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EBAA883EC8; Fri, 11 Apr 2025 09:17:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="dhN/M0lT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7C0E783EC9; Fri, 11 Apr 2025 09:17:04 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 4872683EBA for ; Fri, 11 Apr 2025 09:17:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=6196a1474a=patrice.chotard@foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53B2q0sA001089; Fri, 11 Apr 2025 09:16:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= KknNbymWzEsmv4e92+yWV87CPbu35owLmYzmHGydV3Y=; b=dhN/M0lTzhbDSC3+ ups55OHGcdVbNPgEOnfGtm5R8JOJ+cj/GaQ4PolIV5yMynU/UbiFmDHgq1yfrSWy yiJuZO6mA75cvB/fTpOKjU3ixUihGnvY4tp2qfok6CB9LOwoSK1xyTKicKuBIHgA 66S3THq6LkKwEg8z9y0i/AzIxwM8XWFccmOwYvXPFz4BEfz6l+kpD2u592A+/2Vy uFQXsGykvwaekAasrzpEjGw3aLIeg45TK/M3rVRfsHFVQOhTXlH9/Xnyrz+W+Ynz mDvCZ2DDic3tcW/Qfc3DZzjebXYJlFqXmENk1vmYvlqZlSAR6FsYnEh9LRXh5l6o 9Yp2Lw== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 45tw8puy9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Apr 2025 09:16:45 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id DD75140049; Fri, 11 Apr 2025 09:15:45 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 07206889837; Fri, 11 Apr 2025 09:15:22 +0200 (CEST) Received: from [10.252.25.37] (10.252.25.37) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 11 Apr 2025 09:15:21 +0200 Message-ID: <696564cc-4159-4f1c-8f4f-54332b9022bd@foss.st.com> Date: Fri, 11 Apr 2025 09:15:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd To: Pascal Zimmermann , CC: Tom Rini , Simon Glass , Marek Vasut , References: <20250327143843.19358-1-pzimmermann@dh-electronics.com> <20250327143843.19358-2-pzimmermann@dh-electronics.com> Content-Language: en-US From: Patrice CHOTARD In-Reply-To: <20250327143843.19358-2-pzimmermann@dh-electronics.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.252.25.37] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-11_02,2025-04-10_01,2024-11-22_01 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 On 3/27/25 15:38, Pascal Zimmermann wrote: > Make it possible to substitute the 'part list' command inside > 'scan_dev_for_boot_part' with a custom board specific implementation. > > For this the new define 'SCAN_DEV_FOR_BOOT_PARTS' is introduced. > > Signed-off-by: Pascal Zimmermann > --- > Cc: Tom Rini > Cc: Simon Glass > Cc: u-boot@lists.denx.de > Cc: Marek Vasut > Cc: u-boot@dh-electronics.com > --- > include/config_distro_bootcmd.h | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h > index 0a4e4b8ff85..df0dc8cfdee 100644 > --- a/include/config_distro_bootcmd.h > +++ b/include/config_distro_bootcmd.h > @@ -194,6 +194,11 @@ > #define SCAN_DEV_FOR_EFI > #endif > > +#ifndef SCAN_DEV_FOR_BOOT_PARTS > +#define SCAN_DEV_FOR_BOOT_PARTS \ > + "part list ${devtype} ${devnum} -bootable devplist; " > +#endif > + > #ifdef CONFIG_SATA > #define BOOTENV_SHARED_SATA BOOTENV_SHARED_BLKDEV(sata) > #define BOOTENV_DEV_SATA BOOTENV_DEV_BLKDEV > @@ -538,7 +543,7 @@ > "\0" \ > \ > "scan_dev_for_boot_part=" \ > - "part list ${devtype} ${devnum} -bootable devplist; " \ > + SCAN_DEV_FOR_BOOT_PARTS \ > "env exists devplist || setenv devplist 1; " \ > "for distro_bootpart in ${devplist}; do " \ > "if fstype ${devtype} " \ Reviewed-by: Patrice Chotard Thanks Patrice