From mboxrd@z Thu Jan 1 00:00:00 1970 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 1A7D2C43219 for ; Sun, 20 Nov 2022 14:16:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B12AB8541E; Sun, 20 Nov 2022 15:09:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="RLpPDRe8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AC25F85329; Sun, 20 Nov 2022 15:09:24 +0100 (CET) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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 9652B852FC for ; Sun, 20 Nov 2022 15:09:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x833.google.com with SMTP id e15so5937806qts.1 for ; Sun, 20 Nov 2022 06:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Z5MRBI7TS23P+1jf72PiXLRCzm7n7wVuLEOX139Y+BE=; b=RLpPDRe86zRaKIYo19ZG0E7IOmdnnmlT0lnciEBv9imi32iihniP2NCuxt8juBHaOV Hl4iuD5+RWnbBmR+kpFMAnknR5FBXJkYj02EjYtKtKErLSRv7ex6uX71OnFKig+OoPas eSi73FiGJJ9kPD8TGec1HCr7PEL8BqqLlyRZU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z5MRBI7TS23P+1jf72PiXLRCzm7n7wVuLEOX139Y+BE=; b=BnnYnauvgkbXbkKZRnsE1S9q073+/gP6U+Zc4jFruPM0zr9ol2QcXfBu9cUlzJI7o1 sSf5L0eYrfRnl9utD1orgmXqVkU3X3nDC7xBgUnTYAa+ygbhuOfosKZnbNEMD5hl8Iv3 pPAoUmxmZ22LoDfsx9egXnd6UsAt7u79PKwlDBGXZd5Vn+Ha4YfBgoG+wvCS4JrWbAlx bZEop/XAWePiAbPRsYyE0AnjvcA/K9UG1lhHLYWtaHL4poFALCRuEi+j2b+xUXu7PadM KmQR+0o8Ie0xMKCvL+4PMeEDS+mfNd4lm1nvbNhaiC737ApfGepfaYGI4ju/rL6HOES2 rkyQ== X-Gm-Message-State: ANoB5pmnBanomuBvNwcM3rwzrFtlrEX7jEiyvVtFw/jNOHnGF2yxQjsK GN2Q+rrk/rSmZxCkcqqUppgKE/L8goZ6hA== X-Google-Smtp-Source: AA0mqf578LYAoWUpMHCuP3vmGmOuwr4y6FGqquWX1mTcG5fwZG7mgtEmeEfrcc8iGNZkZg7yRCiwWw== X-Received: by 2002:ac8:7542:0:b0:3a5:c5c1:43ff with SMTP id b2-20020ac87542000000b003a5c5c143ffmr363377qtr.312.1668953352612; Sun, 20 Nov 2022 06:09:12 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-29a0-035f-b06a-235e.res6.spectrum.com. [2603:6081:7b00:6400:29a0:35f:b06a:235e]) by smtp.gmail.com with ESMTPSA id bk23-20020a05620a1a1700b006ce580c2663sm6387502qkb.35.2022.11.20.06.09.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 06:09:12 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PoC 176/241] global: Migrate CONFIG_SERVERIP to CFG Date: Sun, 20 Nov 2022 09:08:06 -0500 Message-Id: <20221120140829.3057894-67-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221120140829.3057894-1-trini@konsulko.com> References: <20221120135520.3057773-4-trini@konsulko.com> <20221120140829.3057894-1-trini@konsulko.com> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Tom Rini --- README | 2 +- doc/README.usb | 2 +- include/configs/M5208EVBE.h | 2 +- include/configs/M5235EVB.h | 2 +- include/configs/M5272C3.h | 2 +- include/configs/M5282EVB.h | 2 +- include/configs/M53017EVB.h | 2 +- include/configs/M5329EVB.h | 2 +- include/configs/M5373EVB.h | 2 +- include/configs/MCR3000.h | 2 +- include/configs/MPC8548CDS.h | 2 +- include/configs/apalis-imx8.h | 2 +- include/configs/apalis-tk1.h | 4 ++-- include/configs/apalis_imx6.h | 4 ++-- include/configs/cobra5272.h | 2 +- include/configs/colibri-imx6ull.h | 2 +- include/configs/colibri-imx8x.h | 2 +- include/configs/colibri_imx6.h | 4 ++-- include/configs/colibri_imx7.h | 2 +- include/configs/colibri_vf.h | 2 +- include/configs/gw_ventana.h | 2 +- include/configs/integratorcp.h | 2 +- include/configs/mt7622.h | 2 +- include/configs/mt7623.h | 2 +- include/configs/mt7629.h | 2 +- include/configs/mvebu_alleycat-5.h | 2 +- include/configs/poleg.h | 2 +- include/configs/stm32mp15_common.h | 2 +- include/configs/uniphier.h | 2 +- include/env_default.h | 4 ++-- net/bootp.c | 10 +++++----- scripts/config_whitelist.txt | 2 +- 32 files changed, 40 insertions(+), 40 deletions(-) diff --git a/README b/README index 903bd1d8ff2d..aa989f67e2c0 100644 --- a/README +++ b/README @@ -743,7 +743,7 @@ The following options need to be configured: (Environment variable "ipaddr") - Server IP address: - CONFIG_SERVERIP + CFG_SERVERIP Defines a default value for the IP address of a TFTP server to contact when using the "tftboot" command. diff --git a/doc/README.usb b/doc/README.usb index 495b1859a771..431942fbc32c 100644 --- a/doc/README.usb +++ b/doc/README.usb @@ -163,7 +163,7 @@ and all the parameters can either get stored in the board's external environment, or get obtained from the bootp server if not set. #define CFG_IPADDR 10.0.0.2 (replace with your value) -#define CONFIG_SERVERIP 10.0.0.1 (replace with your value) +#define CFG_SERVERIP 10.0.0.1 (replace with your value) #define CONFIG_BOOTFILE "uImage" The 'usb start' command should identify the adapter something like this: diff --git a/include/configs/M5208EVBE.h b/include/configs/M5208EVBE.h index 8eb5f7084f86..efbdc4c28afa 100644 --- a/include/configs/M5208EVBE.h +++ b/include/configs/M5208EVBE.h @@ -20,7 +20,7 @@ #ifdef CONFIG_MCFFEC # define CFG_IPADDR 192.162.1.2 # define CFG_NETMASK 255.255.255.0 -# define CONFIG_SERVERIP 192.162.1.1 +# define CFG_SERVERIP 192.162.1.1 # define CFG_GATEWAYIP 192.162.1.1 #endif /* CONFIG_MCFFEC */ diff --git a/include/configs/M5235EVB.h b/include/configs/M5235EVB.h index b42177688427..ff99b6ab857d 100644 --- a/include/configs/M5235EVB.h +++ b/include/configs/M5235EVB.h @@ -29,7 +29,7 @@ #ifdef CONFIG_MCFFEC # define CFG_IPADDR 192.162.1.2 # define CFG_NETMASK 255.255.255.0 -# define CONFIG_SERVERIP 192.162.1.1 +# define CFG_SERVERIP 192.162.1.1 # define CFG_GATEWAYIP 192.162.1.1 #endif /* FEC_ENET */ diff --git a/include/configs/M5272C3.h b/include/configs/M5272C3.h index 043e188189e1..fcd3106ccb6d 100644 --- a/include/configs/M5272C3.h +++ b/include/configs/M5272C3.h @@ -32,7 +32,7 @@ #ifdef CONFIG_MCFFEC # define CFG_IPADDR 192.162.1.2 # define CFG_NETMASK 255.255.255.0 -# define CONFIG_SERVERIP 192.162.1.1 +# define CFG_SERVERIP 192.162.1.1 # define CFG_GATEWAYIP 192.162.1.1 #endif /* CONFIG_MCFFEC */ diff --git a/include/configs/M5282EVB.h b/include/configs/M5282EVB.h index 88e3d72ef67f..adcaa164d3e0 100644 --- a/include/configs/M5282EVB.h +++ b/include/configs/M5282EVB.h @@ -32,7 +32,7 @@ #ifdef CONFIG_MCFFEC # define CFG_IPADDR 192.162.1.2 # define CFG_NETMASK 255.255.255.0 -# define CONFIG_SERVERIP 192.162.1.1 +# define CFG_SERVERIP 192.162.1.1 # define CFG_GATEWAYIP 192.162.1.1 #endif /* CONFIG_MCFFEC */ diff --git a/include/configs/M53017EVB.h b/include/configs/M53017EVB.h index 35c37a4449b1..c86eef2210e2 100644 --- a/include/configs/M53017EVB.h +++ b/include/configs/M53017EVB.h @@ -33,7 +33,7 @@ #ifdef CONFIG_MCFFEC # define CFG_IPADDR 192.162.1.2 # define CFG_NETMASK 255.255.255.0 -# define CONFIG_SERVERIP 192.162.1.1 +# define CFG_SERVERIP 192.162.1.1 # define CFG_GATEWAYIP 192.162.1.1 #endif /* FEC_ENET */ diff --git a/include/configs/M5329EVB.h b/include/configs/M5329EVB.h index 8bb270ce6797..cc65740957a0 100644 --- a/include/configs/M5329EVB.h +++ b/include/configs/M5329EVB.h @@ -25,7 +25,7 @@ #ifdef CONFIG_MCFFEC # define CFG_IPADDR 192.162.1.2 # define CFG_NETMASK 255.255.255.0 -# define CONFIG_SERVERIP 192.162.1.1 +# define CFG_SERVERIP 192.162.1.1 # define CFG_GATEWAYIP 192.162.1.1 #endif /* FEC_ENET */ diff --git a/include/configs/M5373EVB.h b/include/configs/M5373EVB.h index 1f904efa84bb..c2171281eab7 100644 --- a/include/configs/M5373EVB.h +++ b/include/configs/M5373EVB.h @@ -27,7 +27,7 @@ #ifdef CONFIG_MCFFEC # define CFG_IPADDR 192.162.1.2 # define CFG_NETMASK 255.255.255.0 -# define CONFIG_SERVERIP 192.162.1.1 +# define CFG_SERVERIP 192.162.1.1 # define CFG_GATEWAYIP 192.162.1.1 #endif /* FEC_ENET */ diff --git a/include/configs/MCR3000.h b/include/configs/MCR3000.h index 1248b367ae62..f5c887714f39 100644 --- a/include/configs/MCR3000.h +++ b/include/configs/MCR3000.h @@ -53,7 +53,7 @@ "bootm ${loadaddr} - 0xf00000\0" #define CFG_IPADDR 192.168.0.3 -#define CONFIG_SERVERIP 192.168.0.1 +#define CFG_SERVERIP 192.168.0.1 #define CFG_NETMASK 255.0.0.0 /* Miscellaneous configurable options */ diff --git a/include/configs/MPC8548CDS.h b/include/configs/MPC8548CDS.h index d752a9050001..d47378e19352 100644 --- a/include/configs/MPC8548CDS.h +++ b/include/configs/MPC8548CDS.h @@ -331,7 +331,7 @@ #define CFG_ROOTPATH "/nfsroot" #define CONFIG_UBOOTPATH 8548cds/u-boot.bin /* TFTP server */ -#define CONFIG_SERVERIP 192.168.1.1 +#define CFG_SERVERIP 192.168.1.1 #define CFG_GATEWAYIP 192.168.1.1 #define CFG_NETMASK 255.255.255.0 diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h index 8f7841163936..580d2e3020ed 100644 --- a/include/configs/apalis-imx8.h +++ b/include/configs/apalis-imx8.h @@ -16,7 +16,7 @@ /* Networking */ #define CFG_IPADDR 192.168.10.2 #define CFG_NETMASK 255.255.255.0 -#define CONFIG_SERVERIP 192.168.10.1 +#define CFG_SERVERIP 192.168.10.1 #define MEM_LAYOUT_ENV_SETTINGS \ "fdt_addr_r=0x84000000\0" \ diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-tk1.h index 387fb3f69c83..7fd99ea907d1 100644 --- a/include/configs/apalis-tk1.h +++ b/include/configs/apalis-tk1.h @@ -36,8 +36,8 @@ #undef CFG_IPADDR #define CFG_IPADDR 192.168.10.2 #define CFG_NETMASK 255.255.255.0 -#undef CONFIG_SERVERIP -#define CONFIG_SERVERIP 192.168.10.1 +#undef CFG_SERVERIP +#define CFG_SERVERIP 192.168.10.1 #define DFU_ALT_EMMC_INFO "apalis-tk1.img raw 0x0 0x500 mmcpart 1; " \ "boot part 0 1 mmcpart 0; " \ diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index 4f2addd42d8b..02de22ce6a24 100644 --- a/include/configs/apalis_imx6.h +++ b/include/configs/apalis_imx6.h @@ -38,8 +38,8 @@ #undef CFG_IPADDR #define CFG_IPADDR 192.168.10.2 #define CFG_NETMASK 255.255.255.0 -#undef CONFIG_SERVERIP -#define CONFIG_SERVERIP 192.168.10.1 +#undef CFG_SERVERIP +#define CFG_SERVERIP 192.168.10.1 #define BOOT_TARGET_DEVICES(func) \ func(MMC, mmc, 1) \ diff --git a/include/configs/cobra5272.h b/include/configs/cobra5272.h index b0acdb2e7d62..df24e3014f00 100644 --- a/include/configs/cobra5272.h +++ b/include/configs/cobra5272.h @@ -71,7 +71,7 @@ enter a valid image address in flash */ /* User network settings */ #define CFG_IPADDR 192.168.100.2 /* default board IP address */ -#define CONFIG_SERVERIP 192.168.100.1 /* default tftp server IP address */ +#define CFG_SERVERIP 192.168.100.1 /* default tftp server IP address */ #endif diff --git a/include/configs/colibri-imx6ull.h b/include/configs/colibri-imx6ull.h index 3cf56e98faf8..b744ae1d6e85 100644 --- a/include/configs/colibri-imx6ull.h +++ b/include/configs/colibri-imx6ull.h @@ -22,7 +22,7 @@ #define CFG_IPADDR 192.168.10.2 #define CFG_NETMASK 255.255.255.0 -#define CONFIG_SERVERIP 192.168.10.1 +#define CFG_SERVERIP 192.168.10.1 #if defined(CONFIG_TARGET_COLIBRI_IMX6ULL_EMMC) #define UBOOT_UPDATE \ diff --git a/include/configs/colibri-imx8x.h b/include/configs/colibri-imx8x.h index 0c879cc06bc7..fc8da4f9e358 100644 --- a/include/configs/colibri-imx8x.h +++ b/include/configs/colibri-imx8x.h @@ -16,7 +16,7 @@ #define CFG_IPADDR 192.168.10.2 #define CFG_NETMASK 255.255.255.0 -#define CONFIG_SERVERIP 192.168.10.1 +#define CFG_SERVERIP 192.168.10.1 #define MEM_LAYOUT_ENV_SETTINGS \ "fdt_addr_r=0x83000000\0" \ diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index c0d5e6f0aa06..e34d933abae2 100644 --- a/include/configs/colibri_imx6.h +++ b/include/configs/colibri_imx6.h @@ -33,8 +33,8 @@ #undef CFG_IPADDR #define CFG_IPADDR 192.168.10.2 #define CFG_NETMASK 255.255.255.0 -#undef CONFIG_SERVERIP -#define CONFIG_SERVERIP 192.168.10.1 +#undef CFG_SERVERIP +#define CFG_SERVERIP 192.168.10.1 #define BOOT_TARGET_DEVICES(func) \ func(MMC, mmc, 1) \ diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index fdaeb6588146..8efcc8c17b3d 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -23,7 +23,7 @@ #define CFG_IPADDR 192.168.10.2 #define CFG_NETMASK 255.255.255.0 -#define CONFIG_SERVERIP 192.168.10.1 +#define CFG_SERVERIP 192.168.10.1 #if defined(CONFIG_TARGET_COLIBRI_IMX7_EMMC) #define UBOOT_UPDATE \ diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index 3da98a5165e4..83c79aa53fcb 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -18,7 +18,7 @@ #define CFG_IPADDR 192.168.10.2 #define CFG_NETMASK 255.255.255.0 -#define CONFIG_SERVERIP 192.168.10.1 +#define CFG_SERVERIP 192.168.10.1 #define CFG_FDTADDR 0x84000000 diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index d82856f5eb10..4d0acdd0f3b6 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -58,6 +58,6 @@ /* Environment */ #define CFG_IPADDR 192.168.1.1 -#define CONFIG_SERVERIP 192.168.1.146 +#define CFG_SERVERIP 192.168.1.146 #endif /* __CONFIG_H */ diff --git a/include/configs/integratorcp.h b/include/configs/integratorcp.h index ccf73604480b..d1b2d938ff9f 100644 --- a/include/configs/integratorcp.h +++ b/include/configs/integratorcp.h @@ -19,7 +19,7 @@ /* Integrator CP-specific configuration */ #define CFG_SYS_HZ_CLOCK 1000000 /* Timer 1 is clocked at 1Mhz */ -#define CONFIG_SERVERIP 192.168.1.100 +#define CFG_SERVERIP 192.168.1.100 #define CFG_IPADDR 192.168.1.104 /* diff --git a/include/configs/mt7622.h b/include/configs/mt7622.h index 199da46ad018..f0459f1e44ed 100644 --- a/include/configs/mt7622.h +++ b/include/configs/mt7622.h @@ -19,6 +19,6 @@ /* Ethernet */ #define CFG_IPADDR 192.168.1.1 -#define CONFIG_SERVERIP 192.168.1.3 +#define CFG_SERVERIP 192.168.1.3 #endif diff --git a/include/configs/mt7623.h b/include/configs/mt7623.h index d3cf6597a633..b279fb44cfb7 100644 --- a/include/configs/mt7623.h +++ b/include/configs/mt7623.h @@ -34,7 +34,7 @@ /* Ethernet */ #define CFG_IPADDR 192.168.1.1 -#define CONFIG_SERVERIP 192.168.1.2 +#define CFG_SERVERIP 192.168.1.2 #ifdef CONFIG_DISTRO_DEFAULTS diff --git a/include/configs/mt7629.h b/include/configs/mt7629.h index 8c0b02b40e50..d7700673f6f7 100644 --- a/include/configs/mt7629.h +++ b/include/configs/mt7629.h @@ -29,6 +29,6 @@ /* Ethernet */ #define CFG_IPADDR 192.168.1.1 -#define CONFIG_SERVERIP 192.168.1.2 +#define CFG_SERVERIP 192.168.1.2 #endif diff --git a/include/configs/mvebu_alleycat-5.h b/include/configs/mvebu_alleycat-5.h index 10db30cd5366..3b0b269b3ad3 100644 --- a/include/configs/mvebu_alleycat-5.h +++ b/include/configs/mvebu_alleycat-5.h @@ -16,7 +16,7 @@ /* Default Env vars */ #define CFG_IPADDR 0.0.0.0 /* In order to cause an error */ -#define CONFIG_SERVERIP 0.0.0.0 /* In order to cause an error */ +#define CFG_SERVERIP 0.0.0.0 /* In order to cause an error */ #define CFG_NETMASK 255.255.255.0 #define CFG_GATEWAYIP 0.0.0.0 #define CFG_ROOTPATH "/srv/nfs/" /* Default Dir for NFS */ diff --git a/include/configs/poleg.h b/include/configs/poleg.h index e824af8273a1..af0ed0002c83 100644 --- a/include/configs/poleg.h +++ b/include/configs/poleg.h @@ -14,7 +14,7 @@ #define CFG_SYS_SDRAM_BASE 0x0 /* Default environemnt variables */ -#define CONFIG_SERVERIP 192.168.0.1 +#define CFG_SERVERIP 192.168.0.1 #define CFG_IPADDR 192.168.0.2 #define CFG_NETMASK 255.255.255.0 #define CFG_EXTRA_ENV_SETTINGS "uimage_flash_addr=80200000\0" \ diff --git a/include/configs/stm32mp15_common.h b/include/configs/stm32mp15_common.h index ec8c8fba91f1..85ddf1750768 100644 --- a/include/configs/stm32mp15_common.h +++ b/include/configs/stm32mp15_common.h @@ -25,7 +25,7 @@ /* Ethernet need */ #ifdef CONFIG_DWC_ETH_QOS -#define CONFIG_SERVERIP 192.168.1.1 +#define CFG_SERVERIP 192.168.1.1 #endif #define STM32MP_FIP_IMAGE_GUID \ diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index 47086a7c9cc8..6ea5f2f83784 100644 --- a/include/configs/uniphier.h +++ b/include/configs/uniphier.h @@ -46,7 +46,7 @@ /* * Network Configuration */ -#define CONFIG_SERVERIP 192.168.11.1 +#define CFG_SERVERIP 192.168.11.1 #define CFG_IPADDR 192.168.11.10 #define CFG_GATEWAYIP 192.168.11.1 #define CFG_NETMASK 255.255.255.0 diff --git a/include/env_default.h b/include/env_default.h index 06cf3e36d692..95e00c27f0b6 100644 --- a/include/env_default.h +++ b/include/env_default.h @@ -56,8 +56,8 @@ const char default_environment[] = { #ifdef CFG_IPADDR "ipaddr=" __stringify(CFG_IPADDR) "\0" #endif -#ifdef CONFIG_SERVERIP - "serverip=" __stringify(CONFIG_SERVERIP) "\0" +#ifdef CFG_SERVERIP + "serverip=" __stringify(CFG_SERVERIP) "\0" #endif #ifdef CONFIG_SYS_DISABLE_AUTOLOAD "autoload=0\0" diff --git a/net/bootp.c b/net/bootp.c index 6c01e3815320..61cf853059bd 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -183,7 +183,7 @@ static void store_bootp_params(struct bootp_hdr *bp) */ static void store_net_params(struct bootp_hdr *bp) { -#if !defined(CONFIG_SERVERIP_FROM_PROXYDHCP) +#if !defined(CFG_SERVERIP_FROM_PROXYDHCP) store_bootp_params(bp); #endif net_copy_ip(&net_ip, &bp->bp_yiaddr); @@ -1056,7 +1056,7 @@ static void dhcp_handler(uchar *pkt, unsigned dest, struct in_addr sip, "%d\n", src, dest, len, dhcp_state); if (net_read_ip(&bp->bp_yiaddr).s_addr == 0) { -#if defined(CONFIG_SERVERIP_FROM_PROXYDHCP) +#if defined(CFG_SERVERIP_FROM_PROXYDHCP) store_bootp_params(bp); #endif return; @@ -1081,11 +1081,11 @@ static void dhcp_handler(uchar *pkt, unsigned dest, struct in_addr sip, CONFIG_IS_ENABLED(NET_DEVICES)) efi_net_set_dhcp_ack(pkt, len); -#if defined(CONFIG_SERVERIP_FROM_PROXYDHCP) +#if defined(CFG_SERVERIP_FROM_PROXYDHCP) if (!net_server_ip.s_addr) - udelay(CONFIG_SERVERIP_FROM_PROXYDHCP_DELAY_MS * + udelay(CFG_SERVERIP_FROM_PROXYDHCP_DELAY_MS * 1000); -#endif /* CONFIG_SERVERIP_FROM_PROXYDHCP */ +#endif /* CFG_SERVERIP_FROM_PROXYDHCP */ debug("TRANSITIONING TO REQUESTING STATE\n"); dhcp_state = REQUESTING; diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 0d58f8ff0a1b..9abd8a58bc37 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -185,7 +185,7 @@ CFG_SCIF_A CFG_SCSI_DEV_LIST CFG_SC_TIMER_CLK CFG_SERIAL_BOOT -CONFIG_SERVERIP +CFG_SERVERIP CONFIG_SETUP_INITRD_TAG CONFIG_SET_DFU_ALT_BUF_LEN CONFIG_SH_ETHER_ALIGNE_SIZE -- 2.25.1