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 9190EEB64D7 for ; Fri, 30 Jun 2023 07:30:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CD864866C3; Fri, 30 Jun 2023 09:29:44 +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="IKj0evr9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E9F35866CD; Fri, 30 Jun 2023 09:29:28 +0200 (CEST) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 6675E866B4 for ; Fri, 30 Jun 2023 09:29:24 +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-x12d.google.com with SMTP id 2adb3069b0e04-4f95bf5c493so2324358e87.3 for ; Fri, 30 Jun 2023 00:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688110163; x=1690702163; 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=IKj0evr9eajP6Ut47l7GetF6E4h2shr2Bcc+6QvwmCMt24E5Nktw+FrcfeCuohf825 mMJmiWY8IyeUilf9ZQjoU1d5NSGvyyKFGueLwQzTc3KAL250cnSzB56Beqex7kxuhgHp 8BGFgT/M5GButzNYRNiQgXjikAG6+0maEsSdv0m3oF4Zd4HuSXzVLvspl4o9e7SNwGQQ 314PaMn7cMIzZLezim8V2rG4EjlqDt6964qSsktKDRbVTae+4w5WVd3eNd4umjBQO6zH YFWgSV/+py6ccL5n8oHcLnQJ6EK3AefbwAUf27PLX4mmW/SR9JceXJh8Fhn0yOktIjlG XTbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688110163; x=1690702163; 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=ZCdPMRzoo5l4c/HNc8ggwdHTHTPrqCjXwZEF4A/dF0DC07znPMx/cDCqWoSiahT5ns FGrU4wKAtt5F7Dn6EBd9YnmKkmEJIgR/BdrPPh37gJxO85eskr09BzqUlCb5JD94ZnE4 gHyCR7I3BMPFb/rUZdJDJcYTGuWHgfRik7evMlK91vBL6FXEBt9NP5KhyyZGX5++4gEk nJgAkwWQdD70VmPo21hhfB/DCzbbp77uN4puR1iIkK/WQJj5zMZ2BRcnCGKUBRj6qZ3C OM4uqIBGiH4Ac/Vqqy48tmjqlkstpuEQFJrUx3vVrDmcxaTnSmlx+FxOGtJQXGuRDyEb 0dbg== X-Gm-Message-State: ABy/qLZ5P3UnyvYVk7e+V6O6K02ovot7nZFwR/CYGhOmXhI9a0zW43DO NAVPgjMVbS97LN4Y0sN4FWM= X-Google-Smtp-Source: APBJJlEOPt52y8G+YXksTuxhWS1Km9wf/cjNUHeBZuORmE2C7rquxK6hOeMAJ6Rg0qSCn7a32J2EtA== X-Received: by 2002:a05:6512:3b85:b0:4fb:7447:e71a with SMTP id g5-20020a0565123b8500b004fb7447e71amr2065673lfv.63.1688110163518; Fri, 30 Jun 2023 00:29:23 -0700 (PDT) Received: from xeon.. ([188.163.112.79]) by smtp.gmail.com with ESMTPSA id n30-20020ac2491e000000b004fb82d7532dsm1398954lfi.177.2023.06.30.00.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 00:29:23 -0700 (PDT) From: Svyatoslav Ryhel To: Thierry Reding , Tom Warren , Tom Rini , Simon Glass , Svyatoslav Ryhel , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= Cc: u-boot@lists.denx.de Subject: [PATCH v8 2/7] configs: tegra-common-post: make PXE and DHCP boot targets optional Date: Fri, 30 Jun 2023 10:29:01 +0300 Message-Id: <20230630072906.22255-3-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630072906.22255-1-clamor95@gmail.com> References: <20230630072906.22255-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