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 BBAC3C77B73 for ; Tue, 6 Jun 2023 07:19:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 45C6485D91; Tue, 6 Jun 2023 09:19:19 +0200 (CEST) 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="VvbqtJBQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2BC1585A97; Tue, 6 Jun 2023 09:19:13 +0200 (CEST) Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (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 62EB185A97 for ; Tue, 6 Jun 2023 09:19:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9786fc23505so38012266b.2 for ; Tue, 06 Jun 2023 00:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686035948; x=1688627948; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kZE1CtnT7xwGm6Qeo+2XOdk+uSHEA1NmFqpRkhF7JAA=; b=VvbqtJBQRuKjfRh/xh9wCaNXboQuh3cencbumdTXi30udlu1TYtZm/M+7BWJMkmQhz 4bybxMOWSf7DrVaZigApMgIhUIih3BD6mjVLHLULcB3rK318O9uMMmHkTwP74SoYBYnv VWnb2BknzNw4q2CBNkyIbk42nzNJJloNm7K2fwI/WX2K+ICbU7jIz5FkpBkoAnOt/9Fv yPE7BZcbB/nVBjD+2ZtLuPmzOD1NnZFzVBH0gkJfzi1luC8HfQKxZ35kXK60nn4qoUlE 3M+DCdbYMZYcoCKmyijppx0Z5kQDIJL/7i6e/oQX5vmNfcNYfGzqd/npVs/7Pehu4VqU 8wNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686035948; x=1688627948; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kZE1CtnT7xwGm6Qeo+2XOdk+uSHEA1NmFqpRkhF7JAA=; b=ZoF6qsuW3eGI2sVTLFHGmzaQL2T6ZzN0F/JC0VmylgXWArzN4xjADYMfZkudovdX/p 4q9Vt4JvWwvXgkwY+XyOGHs/It9FMEy3HSaskhBTBtDzF3CdS6iR70Ai0HoV/hQwkmur aIYTrcd9oQKH5m376YVo8RXz+KAodv+f7oCm01Bo+Ia+bKvWrMAKwYbQF1oXU3++fmJt YIf06baTE5ha8vWb4RQPXJhcIcSKv8meoiZDZNgnZsrIDfRIktHRt9R5VH7ZIFoGapNp LpI4oZrHAEHxKTrp2kkx+PqoQ8WSqr4prQJalNCBQHl/UuU+X6yypBB2K5bh2fgNDBAL 4adg== X-Gm-Message-State: AC+VfDwDriIiZriaWUbv8DlDGvMZDDsMgS0M8QXsiW4Kj4y/Tz0jSwU4 muiS15Jk5g6rvvpn3YRKUbs= X-Google-Smtp-Source: ACHHUZ7BKQb1R6B/QX/O4NT0KSjtOZy9BnzMZqrRpgSvvewTR+/189x9TiObnYg283f+pRrvli0eww== X-Received: by 2002:a17:907:961f:b0:96a:5e38:ba49 with SMTP id gb31-20020a170907961f00b0096a5e38ba49mr1913965ejc.2.1686035947755; Tue, 06 Jun 2023 00:19:07 -0700 (PDT) Received: from xeon.. ([188.163.112.79]) by smtp.gmail.com with ESMTPSA id f18-20020a170906825200b00965ac1510f8sm5206922ejx.185.2023.06.06.00.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 00:19:07 -0700 (PDT) From: Svyatoslav Ryhel To: Tom Warren , Simon Glass , Svyatoslav Ryhel , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= Cc: u-boot@lists.denx.de Subject: [PATCH v5 2/7] configs: tegra-common-post: make PXE and DHCP boot targets optional Date: Tue, 6 Jun 2023 10:18:45 +0300 Message-Id: <20230606071850.270001-3-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230606071850.270001-1-clamor95@gmail.com> References: <20230606071850.270001-1-clamor95@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From: Jonas Schwöbel Disabling the network related features in defconfig causes build to fail so make them optional. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Jonas Schwöbel Signed-off-by: Svyatoslav Ryhel --- include/configs/tegra-common-post.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h index 2d5095639a..0d0965ecce 100644 --- a/include/configs/tegra-common-post.h +++ b/include/configs/tegra-common-post.h @@ -8,9 +8,21 @@ #define __TEGRA_COMMON_POST_H #if IS_ENABLED(CONFIG_CMD_USB) -# define BOOT_TARGET_USB(func) func(USB, usb, 0) +#define BOOT_TARGET_USB(func) func(USB, usb, 0) #else -# define BOOT_TARGET_USB(func) +#define BOOT_TARGET_USB(func) +#endif + +#if CONFIG_IS_ENABLED(CMD_DHCP) && CONFIG_IS_ENABLED(CMD_PXE) +#define BOOT_TARGET_PXE(func) func(PXE, pxe, na) +#else +#define BOOT_TARGET_PXE(func) +#endif + +#if CONFIG_IS_ENABLED(CMD_DHCP) +#define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na) +#else +#define BOOT_TARGET_DHCP(func) #endif #ifndef BOOT_TARGET_DEVICES @@ -18,8 +30,8 @@ func(MMC, mmc, 1) \ func(MMC, mmc, 0) \ BOOT_TARGET_USB(func) \ - func(PXE, pxe, na) \ - func(DHCP, dhcp, na) + BOOT_TARGET_PXE(func) \ + BOOT_TARGET_DHCP(func) #endif #include -- 2.39.2