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 E3683C77B6C for ; Thu, 13 Apr 2023 06:01:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DA82785CBD; Thu, 13 Apr 2023 08:01:00 +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="DecZE632"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1B54285AEC; Thu, 13 Apr 2023 08:00:52 +0200 (CEST) Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (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 813BB85D37 for ; Thu, 13 Apr 2023 08:00:47 +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-lf1-x134.google.com with SMTP id o1so17689466lfc.2 for ; Wed, 12 Apr 2023 23:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681365646; x=1683957646; 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=M1xQikspt/1WeVjm0LYQXOvkjXuQ3fRscV2m0CaIWUM=; b=DecZE6323q2K9uYeUDXprU6Y4nvh8Vl9rFgakJ7SQfLtHBWDQItUgzUyRh7XG1wy1R fCCpveuWPpz25WmcsnlG1M4NW/KAtsRwk7OVznNMLYSIPUvrecmUzT/23CPP3S+sEM+D B2AAmspCQdQf+ltUJT7YFi/uv2PHj2tUZNDgiwwbIEzr2rjgoeN5QjP359lV+zrchk+X 8DQe13Sg79QyPS9ocGvRHvUQb3Q2I07SvVhou0H+uyVzWmhrqNOg/55aghwH95j6yxjV 0RPTEFzeaB89cyPGC7MIMSoYkpKy33PwmzgdExCAf+R81aJAawDcHloiZlo0ziragjhG zzLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681365646; x=1683957646; 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=M1xQikspt/1WeVjm0LYQXOvkjXuQ3fRscV2m0CaIWUM=; b=AGq4S2eoWyJ2mf7wV9Tv9WP8bXn6R5ELaxcPpH4ssFtLAWbgiy5ZiSRQj4xebgWYSP KliCezVaUDdsiT8B4pUYg599p4t4P7DEUwI0UPa4aBNECRPD6s4Flue30dhakopzEGfI OX8/0+naDYKd0EN7Xo0cm1UlD/76TG9LwGHxku/rYrOgeGfcfG/N1MejsT8vzDCqSywr WnocGbUwUs4lPUtV288FX0NEmUgBM+vybLtn1/Qy4rf5EeN823KJuNgAmbtmY5Ztfh1i wm8LkceS5vZxU0qHpDm2lQC8necioPsp+W4yEnoXisPl+O0UJa+7IJCKyrUTSBUF43Fp t6mA== X-Gm-Message-State: AAQBX9cn8hg1GhxtZceV4iIOQemfnBtg+ao4PFW0v5lbBB1ixJYUU3og eaZgp0bte9kzvKLlahhp8hg7xhPyY3A= X-Google-Smtp-Source: AKy350YtYBvgfhgNO0Bd9WZJP0ZmUhSzeGZAAcqv0DG5XuGNAS6hs+KJSJ8ktxVA6KFjEAeCJxZ38A== X-Received: by 2002:ac2:47e7:0:b0:4ea:f632:473e with SMTP id b7-20020ac247e7000000b004eaf632473emr499001lfp.55.1681365646553; Wed, 12 Apr 2023 23:00:46 -0700 (PDT) Received: from xeon.. ([188.163.112.59]) by smtp.gmail.com with ESMTPSA id d1-20020ac25441000000b004e1b880ba20sm150829lfn.292.2023.04.12.23.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 23:00:46 -0700 (PDT) From: Svyatoslav Ryhel To: Tom Warren , Svyatoslav Ryhel , Marek Vasut , Philippe Reynes , Marcel Ziswiler , Fabio Estevam , Simon Glass , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= Cc: u-boot@lists.denx.de Subject: [PATCH v2 2/4] configs: tegra-common-post: make PXE and DHCP boot targets optional Date: Thu, 13 Apr 2023 09:00:24 +0300 Message-Id: <20230413060026.30823-3-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230413060026.30823-1-clamor95@gmail.com> References: <20230413060026.30823-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.37.2