From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.groups.io with SMTP id smtpd.web10.5246.1571402504261652004 for ; Fri, 18 Oct 2019 05:41:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=dAixtaQ8; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.221.46, mailfrom: pete@akeo.ie) Received: by mail-wr1-f46.google.com with SMTP id b9so6128700wrs.0 for ; Fri, 18 Oct 2019 05:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c1VDKNfJ19/PbeezYKsXVjDXNWGm0dkfe9CPkTJIqTg=; b=dAixtaQ8QS5TjSTy4u04Voa3bW1FFNoKnW1FcwzZzDcTjSgvOFAKA4dwapdeQlizEg pm0e8omRJ+sascdyTnxQUmB83sJLoKw0ku2xy5Utfxkz6EgOoCOBq67Z9OOplCzzDoaD oh+vwPzREwCjGkAiF/O1x8gaqhyC5/II6dJeQLQJl/XMfBLkrtfn23wEI1oLrBL/KCrz nbMOhp2GZ0TGg9uiHuVHXkpUszE9oIrwFFcOviR29uUp6JOcWz0XytUKTEJES98mKS7z C2xCt1uOCBSfWsYiYe4LpILW1hjKknOLbIUxsOeKUmHR6oEn/CEI7Lm/cWzE51WtYDD0 cSNw== 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:mime-version:content-transfer-encoding; bh=c1VDKNfJ19/PbeezYKsXVjDXNWGm0dkfe9CPkTJIqTg=; b=qUCbSYtqPpEQUuM8n+apVt6SbPjdctu7259QQRDPWUjkZ6673EwGL7RoQ07OhXdX7U Z/nbMmV/mSEVPTET/Fjt/wQo+uxAJEyuJeXQiMb4kuPdbaQV66LChjeYI7oGsgKhg4v4 ETlFZWn0vy7sijnYZpnfZlAb/TLvznnUxew4CyzD2YgxMyu+vDUegqLcfKVF75jTThoJ a4Qi37aQdiTJ/MuY5KUkF73ziPEM5Ih2yTkF1lRvxOrqFUYLEkJ2cN326sOiNHN14lLo k/dSr1Xkn92biFVk6jekdHRHL7t5SfjIZ1i/k6xF22dM7rnTmFXmTENB8J9SC11h0j9v VslQ== X-Gm-Message-State: APjAAAWXDCOaLJvZAq0Uf6hhRMzOVrmtKjaN+W7XQ584We3dNw6nEq7F A350qT3wyK57VZs6NDSYlL8lBmFvdR8= X-Google-Smtp-Source: APXvYqyfHwtWu0vnOYPpzmATzgHAzIg3nce1hPeAFjTeefLoTkGWnZ1O8cFI8WwSU1lkRPPTrx2qrg== X-Received: by 2002:a5d:4808:: with SMTP id l8mr7526592wrq.118.1571402502549; Fri, 18 Oct 2019 05:41:42 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([84.203.68.221]) by smtp.gmail.com with ESMTPSA id m18sm6091941wrg.97.2019.10.18.05.41.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2019 05:41:41 -0700 (PDT) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org Subject: [edk2-platforms][PATCH v2 1/1] Platform/RPi3: Add TFTP command to UEFI Shell Date: Fri, 18 Oct 2019 13:41:30 +0100 Message-Id: <20191018124130.8456-2-pete@akeo.ie> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20191018124130.8456-1-pete@akeo.ie> References: <20191018124130.8456-1-pete@akeo.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit TFTP support, which is enabled by default, can be disabled by setting INCLUDE_TFTP_COMMAND to FALSE. Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/RPi3.dsc | 8 ++++++++ Platform/RaspberryPi/RPi3/RPi3.fdf | 3 +++ 2 files changed, 11 insertions(+) diff --git a/Platform/RaspberryPi/RPi3/RPi3.dsc b/Platform/RaspberryPi/RPi3/RPi3.dsc index bc424a06bb45..2289ad8c2ed2 100644 --- a/Platform/RaspberryPi/RPi3/RPi3.dsc +++ b/Platform/RaspberryPi/RPi3/RPi3.dsc @@ -36,6 +36,7 @@ [Defines] # -D FLAG=VALUE # DEFINE SECURE_BOOT_ENABLE = FALSE + DEFINE INCLUDE_TFTP_COMMAND = TRUE DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F ################################################################################ @@ -181,6 +182,10 @@ [LibraryClasses.common.DXE_DRIVER] SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf +!if $(INCLUDE_TFTP_COMMAND) == TRUE + ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf + FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf +!endif [LibraryClasses.common.UEFI_APPLICATION] PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf @@ -616,3 +621,6 @@ [Components.common] gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x200000 } +!if $(INCLUDE_TFTP_COMMAND) == TRUE + ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf +!endif diff --git a/Platform/RaspberryPi/RPi3/RPi3.fdf b/Platform/RaspberryPi/RPi3/RPi3.fdf index 17c0094ac1cf..b06a15fb8ec3 100644 --- a/Platform/RaspberryPi/RPi3/RPi3.fdf +++ b/Platform/RaspberryPi/RPi3/RPi3.fdf @@ -232,6 +232,9 @@ [FV.FvMain] # UEFI application (Shell Embedded Boot Loader) # INF ShellPkg/Application/Shell/Shell.inf +!if $(INCLUDE_TFTP_COMMAND) == TRUE + INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf +!endif # # ACPI Support -- 2.21.0.windows.1