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 52BABC433F5 for ; Mon, 13 Dec 2021 09:03:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D806D82FF5; Mon, 13 Dec 2021 10:03:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.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=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="eNU5fH/Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9BDA782F95; Mon, 13 Dec 2021 10:03:08 +0100 (CET) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 665F283759 for ; Mon, 13 Dec 2021 10:03:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aouledameur@baylibre.com Received: by mail-wr1-x430.google.com with SMTP id q3so25745874wru.5 for ; Mon, 13 Dec 2021 01:03:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=7Mi0kIkV/ewtn4Ok55/EWoXoifK/s5Cy57HblX+Q17g=; b=eNU5fH/YQaa5hZTvjSXwvAHiBHywG0n/VutEUbDZKmKMkomYmZghKntp/6DodONDij y4gdCpYrppZUlBDJpT5g/QQR5m8jfBiSqBMnNxNvFUi5RhpBX8bGvfRR8b9CI2vKSP4J JqQ5UUzdyCNObIHNuEYDtzMVGwYF3j0fxPOlGrWd05SWM+qOSeMOC104hv+0Yw03r/FQ JhjVVqOTZiiCouDTVgVIkDHZR44nhhZsdUsP8qUbCOYNyu/PJtBv06nMbxTITYHmXlFW S2emg/fmAjsWst4wCW9dwlOAg3rvNy87DLT/yw7i9TpNNpJwseWUHJOFaR5tLTxE9E0L 1gCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=7Mi0kIkV/ewtn4Ok55/EWoXoifK/s5Cy57HblX+Q17g=; b=jDy7cuAur1KH6F4AFdrFRfesLuTXEMytLCOzARw2ccEvEOwNsfURusKMbtHRzclcPw KFBEb16pT8YyKThBLZnxBIOMKXCWjsKJNa8cuNnejd/o1zZXoULzJtRuRd6TMUSpIKGq /17OUhhAEaY/knPidVL/HP+ISj43CVsRYe5bzA66EpmUHEGAokstnHuaOXF227S2QxPy SaDkUovyopInshFKrjyBtPv8Y1ZlH85HzVlrSe2AVJg6ANuMmU6B8fDa6+5AdsZe2ROB iFpd4vycfJ23l6egQ8wi1aBva7euYQupdItqfXI0lPaUo2Wb3K1QLCwUWpMx/RwN98pi V4dg== X-Gm-Message-State: AOAM531GqNqBwzHdnSo91yKnI4p7rXxY22gGItG64tLxox2REcHMu4B9 247TbWWXsX5NIBlZzcXK665f7A== X-Google-Smtp-Source: ABdhPJzIcOpTkx+BGEXAD9IMiA2pt9dwTodWNJ4rrqlh/MSpPFKbKrn+ulK/G4EVrC62kT/b8N8d2A== X-Received: by 2002:a5d:59af:: with SMTP id p15mr11177198wrr.493.1639386183908; Mon, 13 Dec 2021 01:03:03 -0800 (PST) Received: from [192.168.1.24] (203.247.120.78.rev.sfr.net. [78.120.247.203]) by smtp.gmail.com with ESMTPSA id h15sm7123239wrt.104.2021.12.13.01.03.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Dec 2021 01:03:03 -0800 (PST) Subject: Re: [PATCH v2] cmd: pxe_utils: sysboot: add label override support To: Simon Glass Cc: u-boot@lists.denx.de, Artem Lapkin , Bin Meng , Jernej Skrabec , Kory Maincent , Neil Armstrong , Ramon Fried , Zhaofeng Li , khilman@baylibre.com, trini@konsulko.com References: <20211113130920.17425-1-aouledameur@baylibre.com> From: Amjad Ouled-Ameur Message-ID: Date: Mon, 13 Dec 2021 10:03:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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.2 at phobos.denx.de X-Virus-Status: Clean Hi, Is there any news about this patch please ? Regards, Amjad On 25/11/2021 01:12, Simon Glass wrote: > Hi Amjad, > > On Sat, 13 Nov 2021 at 06:09, Amjad Ouled-Ameur > wrote: >> This will allow consumers to choose a pxe label at runtime instead of >> having to prompt the user. One good use-case for this, is choosing >> whether or not to apply a dtbo depending on the hardware configuration. >> e.g: for TI's AM335x EVM, it would be convenient to apply a particular >> dtbo only when the J9 jumper is on PRUSS mode. To achieve this, the >> pxe menu should have 2 labels, one with the dtbo and the other without, >> then the "pxe_label_override" env variable should point to the label with >> the dtbo at runtime only when the jumper is on PRUSS mode. >> >> This change can be used for different use-cases and bring more >> flexibilty to consumers who use sysboot/pxe_utils. >> >> if "pxe_label_override" is set but does not exist in the pxe menu, >> the code should fallback to the default label if given, and no failure >> is returned but rather a warning message. >> >> >> Signed-off-by: Amjad Ouled-Ameur >> --- >> >> Changes in v2: >> - Use !strcmp() instead of strcmp()==0 >> - Add "pxe_label_override" documentation >> >> boot/pxe_utils.c | 15 +++++++++++++++ >> doc/README.pxe | 6 ++++++ >> 2 files changed, 21 insertions(+) > Reviewed-by: Simon Glass > > Can I suggest converting the doc to rST? > > Regards, > Simon