From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4010:c07::244; helo=mail-lf0-x244.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 247572194BB23 for ; Fri, 1 Dec 2017 07:31:06 -0800 (PST) Received: by mail-lf0-x244.google.com with SMTP id f18so12138256lfg.8 for ; Fri, 01 Dec 2017 07:35:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JXG1nOLSxogGpiHViXYyXOt0WdGT1ZQv/EIGK2fViqM=; b=fUCwuHLVva0uOpakVRzdUScDvECTdcndLO+EcokRX3ND+4O6dTxVNJHP0qYEM6rU14 lXajaO1rboD7Q/4D+NTm86I8xtfq6+J3GjENPZLHbNV+BPG4faVOPMHj+mwrNUkZZhpB TsEReaxAn1JsO7xvTIotrhQ+F1MLo6a5Vs/XNmt1LVqn4xww4PU7fIi+9yKsYho8qq3o TeY7YtQG9sRIuLICIq5VoES1DvQgZnWWccfRSF7bc7nonf2YYfk9RAGCh8AfnaznfWhl nv8tJF9Xskdf0KdejEmIUjMC8gOtA7tqRFzBDNa+Ea089HQlSt4faEyiADwUafl/iIKo lJug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JXG1nOLSxogGpiHViXYyXOt0WdGT1ZQv/EIGK2fViqM=; b=Mqicb7bjS90iSbTadQeG5kMVs+0rB2U0BZ58flxdTjG1IDbWzUogiKp7uOQQx/eA+d 2Cu67Ofx9CaLh46O9RE8iHk/DUOt+ewQvMWspmZyKGXZNeCmwmlOMstpwPKsmgU46rSu ZKagPzt5CE4WytwUahHyftHiSEm+lfE40/LW2c0nAOWASePThAVkvOD72HXPLMOc690z EsEzRL8bdjlHWM+UAnFnzMpOjCpuUXmJ8B765ZhytALCByWG8kxNEdoqnJm4lcf5LbC6 vYrln5hkBmwnEPKng1U+Fi+wwV6xzRHiUhgfolKxUTiInfJhHUgpJGOcSiKsa9NZsTpp gPSA== X-Gm-Message-State: AJaThX5NJOnCP1svwO7q0aLUJRx8u+Uv+V/fpImbwia7mOuEiymRy38/ 9ojU9BryLaqebe4IgEGTkVpj+LJ3ic8= X-Google-Smtp-Source: AGs4zMYcGvHT7jW/D7POXO+mo9HGMVvfvPdwPBTgDhk/xBhsw0+Snow4UD4/ssr5SYu1qR5f2WTY6w== X-Received: by 10.25.15.73 with SMTP id e70mr4483780lfi.64.1512142530588; Fri, 01 Dec 2017 07:35:30 -0800 (PST) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id t25sm1332898lja.92.2017.12.01.07.35.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Dec 2017 07:35:29 -0800 (PST) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, mw@semihalf.com, jsd@semihalf.com Date: Fri, 1 Dec 2017 16:35:04 +0100 Message-Id: <1512142507-23282-2-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512142507-23282-1-git-send-email-mw@semihalf.com> References: <1512142507-23282-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v2 1/4] Marvell/Armada: Switch to dynamic tftp command X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 15:31:06 -0000 After removal of the tftp library in EDK2, the tftp was disabled on Armada platform. Re-enable this functionality as a dynamic command on Armada 70x0 DB board. For this purpose add it as a build-time selectable option, depending on a new INCLUDE_TFTP_COMMAND parameter. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Platform/Marvell/Armada/Armada.dsc.inc | 4 ++++ Platform/Marvell/Armada/Armada70x0.dsc | 1 + Platform/Marvell/Armada/Armada70x0.fdf | 3 +++ 3 files changed, 8 insertions(+) diff --git a/Platform/Marvell/Armada/Armada.dsc.inc b/Platform/Marvell/Armada/Armada.dsc.inc index 2a8a226..6040493 100644 --- a/Platform/Marvell/Armada/Armada.dsc.inc +++ b/Platform/Marvell/Armada/Armada.dsc.inc @@ -525,6 +525,10 @@ gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000 } +!ifdef $(INCLUDE_TFTP_COMMAND) + ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf +!endif #$(INCLUDE_TFTP_COMMAND) + [BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION] GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 diff --git a/Platform/Marvell/Armada/Armada70x0.dsc b/Platform/Marvell/Armada/Armada70x0.dsc index 8e4cdb2..4e7d43c 100644 --- a/Platform/Marvell/Armada/Armada70x0.dsc +++ b/Platform/Marvell/Armada/Armada70x0.dsc @@ -44,6 +44,7 @@ BUILD_TARGETS = DEBUG|RELEASE SKUID_IDENTIFIER = DEFAULT FLASH_DEFINITION = Platform/Marvell/Armada/Armada70x0.fdf + DEFINE INCLUDE_TFTP_COMMAND = 1 !include Armada.dsc.inc diff --git a/Platform/Marvell/Armada/Armada70x0.fdf b/Platform/Marvell/Armada/Armada70x0.fdf index ca92c60..c03bc42 100644 --- a/Platform/Marvell/Armada/Armada70x0.fdf +++ b/Platform/Marvell/Armada/Armada70x0.fdf @@ -176,6 +176,9 @@ FvNameGuid = 5eda4200-2c5f-43cb-9da3-0baf74b1b30c # UEFI application (Shell Embedded Boot Loader) INF ShellPkg/Application/Shell/Shell.inf +!ifdef $(INCLUDE_TFTP_COMMAND) + INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf +!endif #$(INCLUDE_TFTP_COMMAND) # Bds INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf -- 2.7.4