From patchwork Thu Oct 29 10:59:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1390048 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=HqBn7bO/; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CMMsP6HxVz9sS8 for ; Thu, 29 Oct 2020 21:59:42 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 194138229F; Thu, 29 Oct 2020 11:59:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="HqBn7bO/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0E5CA823E3; Thu, 29 Oct 2020 11:59:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) (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 95BBA801D8 for ; Thu, 29 Oct 2020 11:59:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-lf1-x142.google.com with SMTP id l2so2753426lfk.0 for ; Thu, 29 Oct 2020 03:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=/LSIHapmQVKvyYVAE4RkI1NHhLchSgwzZ3+yodz/vY0=; b=HqBn7bO/HrZqql1aCiIHS2aLEC9DAkSifysJbqHL6doWMHH59biDma5s7SU73pD9p4 t1i0GLkTS9dcyvEIPzqFPPyasrHJfy4iElcnG+AikyTdFR2AJKSLUWAC5855eOCuft0N NDycN2k41fZ9xM41KUWzAkNrdtei/RE47kkLoROP2rYwpwownyhzwAPfTGaOS6+37Y8/ Mn56ADtxQGZMJB/6NjZixblGehgFZ0yFCnT3W0vyg5JUxQgexQZyrgABQLCONjdzQuRX CExnxUFTE3qbtFaIkqsmhxsciKJ9VkoB8j7H6VreNhiFnK+8kuBJdXfyBiDC2MmjxODj 1dUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/LSIHapmQVKvyYVAE4RkI1NHhLchSgwzZ3+yodz/vY0=; b=GvIG4XRNgh9CfRI4tmyfAN3e2B0R8EBurULCEWnfM8j7EG9ZpCqFaUwuAZqUjGJBVF +wnoCEj4x2jIS5qfl8pX1sAnEaQSYPA0x7gRB6DlJhcNknuiU7R17FfV/E3ot9kr7987 4hsAVXYWS2NwXU2J12wC2sErU1IKIXZbw/YRHRzugF+AvG48uedFKnanq3jOuQrd4Sag B+dyLpoz5Qd/FMwoOmUOXC7QEigKlqa7/MPwBqu1RZ63ByVigmSA9EWHLF/kfEgf5oEw FLqWWCSdbEodi4KN/H3zFeMq5cGvqhs92vhsGBwQrbSGuRoXxr+hoPZ/WfY9NUR7aC3G WT0g== X-Gm-Message-State: AOAM532zp+o0a/pLzNyVilDKodM2Vi76wYSAewrumjql7gU8n9+NghNZ rL80aTHz4VXu08yvLs1P/e59SqcdUtEqGQ== X-Google-Smtp-Source: ABdhPJxANeglQJQyFXmsMnFHtLWORr7tiRpjHAy4dxyZz4txHyGIectWJUOsrYt6rxehX4C+KN9v2g== X-Received: by 2002:a19:c97:: with SMTP id 145mr1399682lfm.81.1603969169504; Thu, 29 Oct 2020 03:59:29 -0700 (PDT) Received: from localhost ([109.108.76.111]) by smtp.gmail.com with ESMTPSA id 5sm288897lju.25.2020.10.29.03.59.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Oct 2020 03:59:28 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Marcel Ziswiler , Oleksandr Suvorov , Philippe Schenker , Max Krummenacher , Igor Opaniuk , Bin Meng , Heinrich Schuchardt , Michael Walle , Patrick Wildt Subject: [PATCH v1] distro_bootcmd: set devtype for dhcp boot Date: Thu, 29 Oct 2020 12:59:19 +0200 Message-Id: <20201029105919.18025-1-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean From: Igor Opaniuk Set $devtype for DHCP boot, which can be handy for the boot.scr for detection of devtype used (for example, when the same boot.scr is used for both mmc/dhcp boot): if test ${devtype} = "dhcp"; then ... fi Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- include/config_distro_bootcmd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index ff29ef5a90..f5d113513a 100644 --- a/include/config_distro_bootcmd.h +++ b/include/config_distro_bootcmd.h @@ -367,6 +367,7 @@ #endif #define BOOTENV_DEV_DHCP(devtypeu, devtypel, instance) \ "bootcmd_dhcp=" \ + "setenv devtype " #devtypel "; " \ BOOTENV_RUN_NET_USB_START \ BOOTENV_RUN_PCI_ENUM \ "if dhcp ${scriptaddr} ${boot_script_dhcp}; then " \