From patchwork Sat Feb 9 13:39:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ond=C5=99ej_Jirman?= X-Patchwork-Id: 1039240 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=megous.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=megous.com header.i=@megous.com header.b="aPm5O44l"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43xZCn0XgWz9sMp for ; Sun, 10 Feb 2019 01:28:20 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id ADF0BC21F97; Sat, 9 Feb 2019 14:27:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 48A53C21FB5; Sat, 9 Feb 2019 14:27:07 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A6483C21F4A; Sat, 9 Feb 2019 13:44:28 +0000 (UTC) Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) by lists.denx.de (Postfix) with ESMTPS id 66212C21F0C for ; Sat, 9 Feb 2019 13:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1549719867; bh=Caem45ywQykjcecdeqTyXU7NWr/xEny/kluk36pNPTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aPm5O44ldyduu4gCej9b9F2/DOIqVHsOVddC1M/Z0/wXXhGnh7H0wGyZoRXEsdY9d KI9vXKj0Zssp+3wK1OE6EktUdEJbTAoL39OaA7DKKwcSYMzskYxDYMom/E4l85KAAp jqpIdhZ6srigdPBy74UDV+grCiKXmcbXluyUwIYE= From: megous@megous.com To: u-boot@lists.denx.de Date: Sat, 9 Feb 2019 14:39:55 +0100 Message-Id: <20190209133957.12713-3-megous@megous.com> In-Reply-To: <20190209133957.12713-1-megous@megous.com> References: <20190209133957.12713-1-megous@megous.com> MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 09 Feb 2019 14:27:04 +0000 Cc: Ondrej Jirman , Stefan Mavrodiev , Maxime Ripard , Andre Przywara , Icenowy Zheng Subject: [U-Boot] [PATCH 2/4] sunxi: Fix build when CONFIG_CMD_PXE or CONFIG_CMD_DHCP are disabled X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Ondrej Jirman Signed-off-by: Ondřej Jirman --- include/configs/sunxi-common.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index b01d1c3c84..d421b93509 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -399,6 +399,18 @@ extern int soft_i2c_gpio_scl; #define BOOT_TARGET_DEVICES_USB(func) #endif +#ifdef CONFIG_CMD_PXE +#define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na) +#else +#define BOOT_TARGET_DEVICES_PXE(func) +#endif + +#ifdef CONFIG_CMD_DHCP +#define BOOT_TARGET_DEVICES_DHCP(func) func(DHCP, dhcp, na) +#else +#define BOOT_TARGET_DEVICES_DHCP(func) +#endif + /* FEL boot support, auto-execute boot.scr if a script address was provided */ #define BOOTENV_DEV_FEL(devtypeu, devtypel, instance) \ "bootcmd_fel=" \ @@ -414,8 +426,8 @@ extern int soft_i2c_gpio_scl; BOOT_TARGET_DEVICES_MMC(func) \ BOOT_TARGET_DEVICES_SCSI(func) \ BOOT_TARGET_DEVICES_USB(func) \ - func(PXE, pxe, na) \ - func(DHCP, dhcp, na) + BOOT_TARGET_DEVICES_PXE(func) \ + BOOT_TARGET_DEVICES_DHCP(func) #ifdef CONFIG_OLD_SUNXI_KERNEL_COMPAT #define BOOTCMD_SUNXI_COMPAT \