From patchwork Sat Nov 25 13:27:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 119644 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3497420qgn; Sat, 25 Nov 2017 05:27:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMZoRPW/uJQ/cvNhd+ZG7u7PknmnjfCATwfZoxmi61iCIQplXLmXac8uFH/VMu8JpLGmXw5d X-Received: by 10.98.55.3 with SMTP id e3mr17246949pfa.63.1511616463818; Sat, 25 Nov 2017 05:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511616463; cv=none; d=google.com; s=arc-20160816; b=MXV2cFHGKhtP+eYVb7SHt0hoIpEdbimTujybOMeYIMQV7SlPdS5iUUBWCMQRZC4+mQ mYbO/cgC3W490BbpoizooWCIPMPnIWaEM9WkcmI6i7B2XN0P21I8UglGLYaLh8FBwH+C ObFQjb0bNCnBdnXp6JqjjxEgHwuZ5EVPJ8PjAYgB2Sf4sgMlv4PDS/NME8X7jJZjv2/X 2mK5fwBy7fY2BPBiJWE19ypXbxsVRhdKA0ACQv+T4hZPuUrFgqu0EMZJLCESVj9Bn+mh 6ErlXxB3XFEkyHP3+0Rm3e+5S2VqBc5zYAsdlVZ8yha4vuZ1asOiktaMivhregIHrerY OpIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=aCOyQ4H8i6B3zt2oSyNC0quam+3dnPNOIhJlxdblWzM=; b=QM5ht2iISE99aY2jG83uLOfIN1MDuxEr5fb5WtisM+UZyW94LpuXrYsd9JGDm8p/UN ty1VrdRt1G4NTc2hE1Fwcmuu0rT05zAciU+XdELLRfphQG0W8hTBbXqKZNV5M0O5i8oh L/zgZ8ISOWSfFnzF79qg/fMSmuRdqoyEpdTUifRhlZ+qNCU1fWi9Y6I0xVdA+C6MVYRk 4Jyws885O4zdw3uqpJw6HlCqtEAuBTsjjEEEvU64QykacvJ4ZWH9huM/THKob8YuS4FA Uc66am6f5qDsvfYsa2Y3esLDQYHs4hZt2RKHA3vQc1VVGphKcG/BgyA1K8ftRq8hPsHe ZfRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=O5oKiiLb; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id w5si12438562pgm.49.2017.11.25.05.27.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Nov 2017 05:27:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=O5oKiiLb; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 9100F21A1097A; Sat, 25 Nov 2017 05:23:23 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::242; helo=mail-wm0-x242.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 31EB021A10969 for ; Sat, 25 Nov 2017 05:23:21 -0800 (PST) Received: by mail-wm0-x242.google.com with SMTP id u83so26701492wmb.5 for ; Sat, 25 Nov 2017 05:27:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qmyFucKV0zdIWhoQd5qlk3z5Sduu28J53JufoRPG7z8=; b=O5oKiiLbNofc3sn81ofIs3C+lsEC5CelAQj4iIOPIGMgULQiyD4ZL9ezGMG1vgY3Bw ePBKhnjifAgrMnQ5s5RffyWSQMJdX4DLW24apocuDjKP19A6a7CdM/ZrnBTEHxOTnd7e G1tAea+p49zbfn3v0x5OUmqV76cReKy9VfSCM= 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=qmyFucKV0zdIWhoQd5qlk3z5Sduu28J53JufoRPG7z8=; b=a+NNwKhZgH9H+h/qb3aZAdfFvf3pyu5u2gasPfxr0P/zdaTB7LKEhggTFw5KZI+SRb DAXFwNYqiMgLW9Br2lI4bquGuvTRmPgK4ZrCpIlrKQ8YPAGIWZ5CzGZqRXyxMk8CQk9B sMXzUdbVPo48veFRJGLGdAQF2xTgtrgNYmZUHjoivm7kArlEN+zIbcxOnsjWzHdwAlMD oUFZQ/vteuad8yNBL2tCn/B7QklONrMHPLQ9urSur6wX+7iLnuA8K0057ZM5CVtrLtvz 38Y3u+fZFrY0Ab9VxmVETBoue40UXsYHi3RdLfHtTm9qtZccswc/i3vxiFKYuyMoNCqJ 5b9A== X-Gm-Message-State: AJaThX7DaMbrpQz8s0WZzUmAkbWAHJvmMIt13FPzksC4tZUOIPrmr/Az zLp33VcYGX1CRQFcAVCqkm5eljBY4fM= X-Received: by 10.28.185.196 with SMTP id j187mr12666733wmf.97.1511616459269; Sat, 25 Nov 2017 05:27:39 -0800 (PST) Received: from vanye.hemma.eciton.net (cpc92316-cmbg19-2-0-cust118.5-4.cable.virginm.net. [82.12.0.119]) by smtp.gmail.com with ESMTPSA id c2sm7420176wrg.57.2017.11.25.05.27.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Nov 2017 05:27:38 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Sat, 25 Nov 2017 13:27:34 +0000 Message-Id: <20171125132735.3507-2-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171125132735.3507-1-leif.lindholm@linaro.org> References: <20171125132735.3507-1-leif.lindholm@linaro.org> Subject: [edk2] [PATCH 1/2] EmbeddedPkg: add UefiRuntimeLib resolution to package .dsc 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: , Cc: ard.biesheuvel@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Required to build Android*Boot standalone. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm --- EmbeddedPkg/EmbeddedPkg.dsc | 1 + 1 file changed, 1 insertion(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EmbeddedPkg/EmbeddedPkg.dsc b/EmbeddedPkg/EmbeddedPkg.dsc index d7ee6a3018..d0af235f99 100644 --- a/EmbeddedPkg/EmbeddedPkg.dsc +++ b/EmbeddedPkg/EmbeddedPkg.dsc @@ -83,6 +83,7 @@ [LibraryClasses.common] MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf UefiLib|MdePkg/Library/UefiLib/UefiLib.inf HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf + UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf From patchwork Sat Nov 25 13:27:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 119645 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3497469qgn; Sat, 25 Nov 2017 05:27:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMZQuMn6UOD2cV5x4JbviiaOvfoKpCN3ZOqdG8WxePZKFvtrbmj5rt5b59QkcrOVvV2x5ktY X-Received: by 10.159.214.140 with SMTP id n12mr31550187plp.4.1511616467099; Sat, 25 Nov 2017 05:27:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511616467; cv=none; d=google.com; s=arc-20160816; b=A6djXUBF4Niq09KPhwyvcio6RkpFTMS/GPIHBcmjFh7RXRxqDJPQnezqHKBDiL8B/Y r4oOv8R3J1QvB9eiK5ZHa44spTw9UOQsEr8ySr5yZ9de7oXAZVq+IIXceTXCnBCXNYAd OR8Y1FJzws2sXYsPDT2ZS4k7egvU31eqplra66/X47r9V/FLvU8r6DpSIaA3tt2wl4VR hV/wKiZ19RDZWykAIx8AqLvuAi5FHFClTqGocii/LuFGqEaG62Q11ZmKxYzwgfpJ8aOi R1LZV+QQcX0a8BZ8Ph0XEO+oOMVIDSH52JLCYpsEUY1filGBu72v4RwJtaQwqb4J6QTR 513Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=mECo/i7bTN7zVuOY/O7mVSadHa5ruKYxk7TriHcbk8I=; b=it5zNt0YAnXIFA6uVc57/Zokw55OtMhR+Hl3QAHeXk1FumTnRvTSITSgh2fiIvKC5c daskKKpPsikvUuIpm9X1TZ7Z3Ms3uQCGKEGaMfwC9xPk3U/TRPv89U8+R+06gLd7fhNm 0tcOrKIk3xa9X4nkNbbNoV5W3n0dc794MYkGxFpGxjj0Qlo0I29+mgFIC+ZFzKjMypDy 3MKw+CBohFwGtFuGmbvVakzFNX/+FFajZwBfxrm/jmHwyjADNB+Da1ks07uLdEOwfIvM qcvUi3msXaRHeI4KjlSALR06SFVQWNIwPvn0jhYk/JAKKKNV8CGcEm0gSIErTX6KovsQ 4jhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h+ZAIEvk; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id e13si777481pgt.608.2017.11.25.05.27.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Nov 2017 05:27:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h+ZAIEvk; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D4AFA21A10971; Sat, 25 Nov 2017 05:23:26 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::242; helo=mail-wm0-x242.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 A269A21A10971 for ; Sat, 25 Nov 2017 05:23:22 -0800 (PST) Received: by mail-wm0-x242.google.com with SMTP id x63so26925418wmf.4 for ; Sat, 25 Nov 2017 05:27:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=k/nTPOYssoahUBNl9SVVTMdcg3doirWI7ZNZP9UwETQ=; b=h+ZAIEvkaxcFtoO11TnJJiCQ3i2lLfmbOVIqLhAzNqPlK8LiG+jDMlcTqT7tx9+iRb aQb3F0llpaPdoRDtbPTUcuUQJ3lkf3V4SAANE+DdAmCtQiQltHmWIl9zH+vCMAUTY9VL B16K300pc+nhMlIErh8Hy9vcGaWYRmnfNtG0M= 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=k/nTPOYssoahUBNl9SVVTMdcg3doirWI7ZNZP9UwETQ=; b=rNP5X4+XbXNWXwn4VzqOYVA/j52OQAkF7qdZT1TvN8eOgWxzSpFuv0VHG6CftpyAc9 Hd/DAj1Ky2VVNM+qWMujIwCPz6qlKpZFq/DxS/l6VhFF5Jcs+I+T4R0OJk1Faju/Awn7 gLk3mFm9qbHMo0LZAP8Xpv1HATGPW7ecWy7P5KmdqWOUofPC+5X+0AbZ/++/g768xcbM fPNg3Z0Esh+2Ei2a/ThUCFiH6kfozgpXAeIjp3O6Djv3Rb6RgD+lu0Ld4YmBbxRnaI2M OALG2AXDsSAU0lQvjLoxZDxowNTgXXVB9js63UQ84eLp8RtNp6UPYxpVliTBYkr95X9E PTgA== X-Gm-Message-State: AJaThX4JtyJRLRwUFYtwUDXGabev6yOozPTwRkaKDNWH8kf/jTByEitL AfX/OrNb4TZdt9e9Eev9EBdtXiDsotI= X-Received: by 10.28.88.65 with SMTP id m62mr12331855wmb.111.1511616460862; Sat, 25 Nov 2017 05:27:40 -0800 (PST) Received: from vanye.hemma.eciton.net (cpc92316-cmbg19-2-0-cust118.5-4.cable.virginm.net. [82.12.0.119]) by smtp.gmail.com with ESMTPSA id c2sm7420176wrg.57.2017.11.25.05.27.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Nov 2017 05:27:39 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Sat, 25 Nov 2017 13:27:35 +0000 Message-Id: <20171125132735.3507-3-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171125132735.3507-1-leif.lindholm@linaro.org> References: <20171125132735.3507-1-leif.lindholm@linaro.org> Subject: [edk2] [PATCH 2/2] EmbeddedPkg: get rid of BdsLib dependency from Android*Boot 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: , Cc: ard.biesheuvel@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The sum use these applications made of BdsLib was one invocation of the IS_DEVICE_PATH_NODE macro, and (incorrectly) being able to leave out a dependency on gEfiLoadedImageProtocolGuid. So expand the macro in place and add the missing dependency. Then clean up the .dsc, .inf and #includes accordingly. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm --- EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.c | 4 ++-- EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf | 1 - EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c | 1 - EmbeddedPkg/EmbeddedPkg.dsc | 6 +----- EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf | 1 + 5 files changed, 4 insertions(+), 9 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.c b/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.c index 977167da40..e1e45e8146 100644 --- a/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.c +++ b/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.c @@ -15,7 +15,6 @@ #include #include -#include #include #include #include @@ -35,7 +34,8 @@ ValidateAndroidMediaDevicePath ( NextNode = DevicePath; while (NextNode != NULL) { Node = NextNode; - if (IS_DEVICE_PATH_NODE (Node, MEDIA_DEVICE_PATH, MEDIA_HARDDRIVE_DP)) { + if (Node->Type == MEDIA_DEVICE_PATH && + Node->SubType == MEDIA_HARDDRIVE_DP) { return EFI_SUCCESS; } NextNode = NextDevicePathNode (Node); diff --git a/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf b/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf index f1ee0bdc82..c2bc68e733 100644 --- a/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf +++ b/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf @@ -28,7 +28,6 @@ [LibraryClasses] AndroidBootImgLib BaseLib BaseMemoryLib - BdsLib DebugLib DevicePathLib DxeServicesTableLib diff --git a/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c b/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c index 1d9024b1ce..404aa68a05 100644 --- a/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c +++ b/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c @@ -17,7 +17,6 @@ #include #include -#include #include #include #include diff --git a/EmbeddedPkg/EmbeddedPkg.dsc b/EmbeddedPkg/EmbeddedPkg.dsc index d0af235f99..5b20176eed 100644 --- a/EmbeddedPkg/EmbeddedPkg.dsc +++ b/EmbeddedPkg/EmbeddedPkg.dsc @@ -288,11 +288,7 @@ [Components.ARM] [Components.ARM, Components.AARCH64] EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf - EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf { - - # It depends on BdsLib that depends on TimerLib - TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf - } + EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf diff --git a/EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf b/EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf index c92bac04f2..226b8b2324 100644 --- a/EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf +++ b/EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf @@ -43,6 +43,7 @@ [Packages] [Protocols] gAndroidBootImgProtocolGuid + gEfiLoadedImageProtocolGuid [Guids] gFdtTableGuid