From patchwork Tue Sep 27 01:15:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 77047 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1458448qgf; Mon, 26 Sep 2016 18:15:59 -0700 (PDT) X-Received: by 10.98.66.212 with SMTP id h81mr43806405pfd.51.1474938959059; Mon, 26 Sep 2016 18:15:59 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id vx9si7889775pac.197.2016.09.26.18.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Sep 2016 18:15:59 -0700 (PDT) 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; 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 dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 58A461A1E10; Mon, 26 Sep 2016 18:15:58 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com [IPv6:2a00:1450:4010:c07::22e]) (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 811061A1E0F for ; Mon, 26 Sep 2016 18:15:57 -0700 (PDT) Received: by mail-lf0-x22e.google.com with SMTP id g62so167909292lfe.3 for ; Mon, 26 Sep 2016 18:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=pOqMI1uZiTzZ+v1+keb5FnW0G6B28GUNJRN0D8pRcm0=; b=jDq0MBbVKsH8ZxHexdIthw+hPAqj9FpoJqK10y4qiYhozt6kPFfHFOiMcStWFScbLd osobT7W7gPegyrsPxC4CuBVU7eet1YZMuByTTbNo4o7KBKBKasUeNYvecATDvcMRNVh0 iljVokr/8BUTHIyGIhD1r+VJa9hC5fUwA8rPg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pOqMI1uZiTzZ+v1+keb5FnW0G6B28GUNJRN0D8pRcm0=; b=EOAE258EraPVDZgy4C47O7TEIzEqq1oAKai0fi0GeBWRSmOE1eC0ypu4pc0FylYpUO v5pLEA8mLhF3WuAre1Hrz4PCepVP8cYvssJM2ZQE1Avnz3KxwM//MygWuug6AqLGXupP jOdUqZHYjVM3+4B3dYYnApKhNYAZWi+1CnhtHRTjYmRiMByizIqDYYks6OIy0DmwAI/T pVUnc4bZ8WGXTyRD+rX/YtlBzhWFE3tIhYMn+cPiv8b6zg1MFvIlOWtRdExbFgma0kq9 znuCoUXd/a4o88tDF6kuxb8/mTK4dd6YOPYFYiUKjBcEP7HEvbmCRxRQ1KxBjMjRsaqR 5FPQ== X-Gm-Message-State: AA6/9RnYAAwd44LosyjeU/DAtUF5NYoGcOkBH6BNL32ex7a/zm87amSFbqyeTTG3yTPbqH/9 X-Received: by 10.28.63.84 with SMTP id m81mr515846wma.88.1474938954383; Mon, 26 Sep 2016 18:15:54 -0700 (PDT) Received: from mohikan.mushroom.smurfnet.nu ([2a01:348:6:8735:e23f:49ff:fe6d:9d26]) by smtp.gmail.com with ESMTPSA id u185sm214718wmu.20.2016.09.26.18.15.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Sep 2016 18:15:53 -0700 (PDT) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Tue, 27 Sep 2016 02:15:52 +0100 Message-Id: <20160927011552.20384-1-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [edk2] [PATCH] MdeModulePkg: add ARM/AARCH64 requirements to .dsc X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael D Kinney , Feng Tian , Andrew Fish , Star Zeng , Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Some LibraryClasses entries are missing to enable standalone builds of MdeModulePkg components for ARM/AARCH64. Add those. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm --- Tying back to the conversation in https://lists.01.org/pipermail/edk2-devel/2016-August/000733.html If we are not going to refactor the DxeIpl code, would this be an acceptable fix to enable standalone HelloWorld builds on ARM/AARCH64? BaseStackCheckLib is unrelated to the DxeIpl issue, but needed in practice on ARM and in theory on AARCH64. MdeModulePkg/MdeModulePkg.dsc | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.9.3 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ard Biesheuvel diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc index 05120c7..3eb55db 100644 --- a/MdeModulePkg/MdeModulePkg.dsc +++ b/MdeModulePkg/MdeModulePkg.dsc @@ -160,6 +160,9 @@ [LibraryClasses.common.UEFI_APPLICATION] DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf [LibraryClasses.ARM, LibraryClasses.AARCH64] + ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf + ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf + # # It is not possible to prevent ARM compiler calls to generic intrinsic functions. # This library provides the instrinsic functions generated by a given compiler. @@ -167,6 +170,12 @@ [LibraryClasses.ARM, LibraryClasses.AARCH64] # NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf + # + # Since software stack checking may be heuristically enabled by the compiler + # include BaseStackCheckLib unconditionally. + # + NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf + [LibraryClasses.EBC] LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf