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 63AD5C87FDC for ; Fri, 9 Jun 2023 04:35:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A82D98615D; Fri, 9 Jun 2023 06:35:25 +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="f58kWcN5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9B2B286140; Fri, 9 Jun 2023 06:35:20 +0200 (CEST) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (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 8C77886124 for ; Fri, 9 Jun 2023 06:35:16 +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-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-516a0546230so2029626a12.3 for ; Thu, 08 Jun 2023 21:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686285316; x=1688877316; 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=f58kWcN5mk74t1NjKDJ96Vy5OHVGtkPNOtseEwAbYSHGdcNar/N4zW/3KKbgU7G3S9 9xCjNcznY0BM/o97PMcmmyV3S2gMpmNAqsNW+ZuiaATa6JmWu9vvtO4DmLvKSqUAZ1rm yTkVZepGhW7SQ5vSEkgrTwPKT0DhUArdaU2qiy2DjUmZgweEzq7dUBuRy9CLXMKiFAQS ZGRoJgP7z/T5SRqUU8Gmhe/qCHU/slNbVmik6ZQHJeswdOvsTBMQWs7je9NBxoNiL8lu Fn+eiaOG53NOWQSCE1sltCbkDCZb4CClus5Ey770PCEpDLAoMxab+TKRfo1fvjzDDz2g FNeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686285316; x=1688877316; 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=CraLvkd2CUjOCBk7yudWEFEtfRqs3zY0orFQlZbh02YxlWIb3Muyu9tu6PWLFGh2hL LFUZPQo5+WunX21z5nEEBe6bq0qqJ8EUhtU5XfLKX8eOcxBPnSdYHNXYUOMNV49YuHCh vR8D5j8M0NlGAtOHB/sJ4IFAKbkhiilFd3Z/cT6Y3dvyBNaKmHLK0ol1I430ThUhJzr+ XeoXhZu+01co2Z2Ny5hzmSET9PGTGKurp0IYvrorUU5gFO3e1KdcGCcAoC8sFmUJmNbi Uhg3ZOQ6cXwb+TSl7xMzYcXxBBOXgUkigy6mscgHfFJbqk10MG92mvvmPPz8EkTMaq6o gbpA== X-Gm-Message-State: AC+VfDyYQYQuwFcWm5jJiEODvZC6RASahpMYGTUtguCDCtoojfyDMfKf ECjYLBX9JgWb74fwQazcFLU= X-Google-Smtp-Source: ACHHUZ6dr8jqLYt8nCNquv5Ig9q8AVxYfWbJ9QB7lopwbAm4fCwZFn6ad6aV8B4rFu7MluSdoC6dOQ== X-Received: by 2002:a05:6402:14d7:b0:514:8e6f:66f5 with SMTP id f23-20020a05640214d700b005148e6f66f5mr297717edx.19.1686285315774; Thu, 08 Jun 2023 21:35:15 -0700 (PDT) Received: from xeon.. ([188.163.112.79]) by smtp.gmail.com with ESMTPSA id d15-20020a05640208cf00b005149e90115bsm1287418edz.83.2023.06.08.21.35.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 21:35:15 -0700 (PDT) From: Svyatoslav Ryhel To: Tom Warren , Tom Rini , Simon Glass , Svyatoslav Ryhel , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= Cc: u-boot@lists.denx.de Subject: [PATCH v6 2/7] configs: tegra-common-post: make PXE and DHCP boot targets optional Date: Fri, 9 Jun 2023 07:34:43 +0300 Message-Id: <20230609043448.4285-3-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230609043448.4285-1-clamor95@gmail.com> References: <20230609043448.4285-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