From patchwork Fri Jun 21 08:05:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Harkin X-Patchwork-Id: 18040 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f198.google.com (mail-gh0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D497E25E4A for ; Fri, 21 Jun 2013 08:05:47 +0000 (UTC) Received: by mail-gh0-f198.google.com with SMTP id r13sf6936650ghr.1 for ; Fri, 21 Jun 2013 01:05:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=BzWzS+153DHn3tjTTdPBKSwq2QuoxTceuJ/abeOpfww=; b=n5AdOkX/rkXQuX/apIq5Y2EmngLxaD4fBuW6/v1S+kqVEQwAftxc2EO/X0MCugA6Yf CcxDXhOHLqsFpvXtxmXH5s5rh47hoVjv7MuXXtfXFpw5rF+OVpsFAmby3+Kni5DcE0R2 11kT3KUYPKMpL+pzbZ22h4ghp6O7xdoXmdeyueqahu617d3j9wVWvkaGMaqapha4f8gz bw/FUWBwITiYMW1UpkuJ86azzNgkUIxp2a3sfmsIsvU1Zq0ifLw1Zr199EFJ3TUvPuba jvef9/mQwDWEHEWv8eT8SCfeyfrLTRRfa4+fI0S8PykIQz7bp+QwQBzt/xDbyJWUf+n+ ixkw== X-Received: by 10.224.174.145 with SMTP id t17mr12126901qaz.4.1371801947567; Fri, 21 Jun 2013 01:05:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.119.161 with SMTP id kv1ls946786qeb.74.gmail; Fri, 21 Jun 2013 01:05:47 -0700 (PDT) X-Received: by 10.52.29.106 with SMTP id j10mr4139787vdh.77.1371801947411; Fri, 21 Jun 2013 01:05:47 -0700 (PDT) Received: from mail-vb0-x22d.google.com (mail-vb0-x22d.google.com [2607:f8b0:400c:c02::22d]) by mx.google.com with ESMTPS id ur15si1235221veb.32.2013.06.21.01.05.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Jun 2013 01:05:47 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22d is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22d; Received: by mail-vb0-f45.google.com with SMTP id p14so5588274vbm.32 for ; Fri, 21 Jun 2013 01:05:47 -0700 (PDT) X-Received: by 10.52.27.172 with SMTP id u12mr3620939vdg.64.1371801947322; Fri, 21 Jun 2013 01:05:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp51557veb; Fri, 21 Jun 2013 01:05:46 -0700 (PDT) X-Received: by 10.194.242.136 with SMTP id wq8mr8344291wjc.60.1371801946038; Fri, 21 Jun 2013 01:05:46 -0700 (PDT) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [2a00:1450:400c:c05::22b]) by mx.google.com with ESMTPS id y19si1522503wia.75.2013.06.21.01.05.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Jun 2013 01:05:46 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::22b is neither permitted nor denied by best guess record for domain of ryan.harkin@linaro.org) client-ip=2a00:1450:400c:c05::22b; Received: by mail-wi0-f171.google.com with SMTP id hj3so340066wib.16 for ; Fri, 21 Jun 2013 01:05:45 -0700 (PDT) X-Received: by 10.180.20.228 with SMTP id q4mr1888610wie.60.1371801945642; Fri, 21 Jun 2013 01:05:45 -0700 (PDT) Received: from qpc.lan (82-69-54-187.dsl.in-addr.zen.co.uk. [82.69.54.187]) by mx.google.com with ESMTPSA id ay7sm21069904wib.9.2013.06.21.01.05.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Jun 2013 01:05:45 -0700 (PDT) From: Ryan Harkin To: ryan.harkin@linaro.org, edk2-devel@lists.sourceforge.net, patches@linaro.org, boot-architecture@lists.linaro.org, olivier.martin@arm.com Subject: [PATCH 5/9] ArmPlatformPkg/Bds: Make ".EFI" files recognizable as EFI applications. Date: Fri, 21 Jun 2013 09:05:18 +0100 Message-Id: <1371801922-15142-6-git-send-email-ryan.harkin@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1371801922-15142-1-git-send-email-ryan.harkin@linaro.org> References: <1371801922-15142-1-git-send-email-ryan.harkin@linaro.org> X-Gm-Message-State: ALoCoQkyRF/EaGYMQwZ9iCueGMUcIdhG15baeGizwJKAwFz5pRXp5fvHih4xjt2m2ZoHWZ5AdHp5 X-Original-Sender: ryan.harkin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22d is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Leif Lindholm Currently, only ".efi" files are recognized as valid ARM UEFI applications by BDS. This patch also makes ".EFI" files recognised. Signed-off-by: Leif Lindholm --- ArmPlatformPkg/Bds/BdsHelper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArmPlatformPkg/Bds/BdsHelper.c b/ArmPlatformPkg/Bds/BdsHelper.c index fa3026c..d1889f4 100644 --- a/ArmPlatformPkg/Bds/BdsHelper.c +++ b/ArmPlatformPkg/Bds/BdsHelper.c @@ -205,6 +205,9 @@ HasFilePathEfiExtension ( IN CHAR16* FilePath ) { + if (StrCmp (FilePath + (StrSize(FilePath)/sizeof(CHAR16)) - 5, L".EFI") == 0) + return 1; + return (StrCmp (FilePath + (StrSize(FilePath)/sizeof(CHAR16)) - 5, L".efi") == 0); }