From patchwork Thu Mar 31 11:20:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 64757 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp93381lbc; Thu, 31 Mar 2016 04:20:28 -0700 (PDT) X-Received: by 10.66.102.37 with SMTP id fl5mr21185846pab.32.1459423227248; Thu, 31 Mar 2016 04:20:27 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id g15si13579531pfg.40.2016.03.31.04.20.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Mar 2016 04:20:27 -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 47D4E1A1FDF; Thu, 31 Mar 2016 04:20:56 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 D498D1A1FD8 for ; Thu, 31 Mar 2016 04:20:54 -0700 (PDT) Received: by mail-wm0-x22a.google.com with SMTP id m9so282767wma.0 for ; Thu, 31 Mar 2016 04:20:24 -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:in-reply-to:references; bh=bInQutBXbLCM7ol/ot5C7aUUZkuhSwo2RljiD+OGb5M=; b=Q8BmS4fuRiErJrQ0Xd4KQ0ZA8EC9mS0Pb6WFTZD3T03MgHatq+7Oi+GIGui3UbG5Ek MW2DjXODXkxh+9HJWvyygADKUD6SkO2kGOsWsX4D3WUX09XANo1b6CtnjwLYJSwsZJHT 45pUX8nZcQt1w45Wu3/BHsrx1QM00viNON5lI= 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:in-reply-to :references; bh=bInQutBXbLCM7ol/ot5C7aUUZkuhSwo2RljiD+OGb5M=; b=LZFmcex5BfQew4vZff4SmIe2+063HVABwPP/MbnID83jRwEuBRVqqKQVEntK39aI8b ZEfTo5ln+URSvFGF6n+1OUKWdzJ9F2/U6okNrAuGVfpmOLjOfReS4QQUENCRpsRQWPW+ T08V5nIDP2//Am5BHvb296SXsWQNFjbHFj0GBfIjUIE38uVhye7mNGGfLq1JZ04k7k9K ANOZwO/jAptsSBtwWcVuIr7stoEw3v+nZ4VaCZuJycYXF71Oah2Z6UnyGhS1lZLcOUXB BrFTFQ6LHD1Tr8PPHA4n/VXKyisv92uBewMHzXmymJMOChNT8Q3OcmfO2RNjE9GQaoU5 ChVQ== X-Gm-Message-State: AD7BkJIcnOuhw9C1ZzAqAlhXc8VH0q6TMGXaLljX31/FB+1p/FWaIAjOTILt88KRxJoDkczf X-Received: by 10.194.60.44 with SMTP id e12mr14673187wjr.137.1459423222982; Thu, 31 Mar 2016 04:20:22 -0700 (PDT) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id uq10sm8514726wjc.38.2016.03.31.04.20.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Mar 2016 04:20:22 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com Date: Thu, 31 Mar 2016 13:20:16 +0200 Message-Id: <1459423216-2415-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459423216-2415-1-git-send-email-ard.biesheuvel@linaro.org> References: <1459423216-2415-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 2/2] ArmVirtPkg/ArmVirtQemu: allow firmware to be built in ACPI-only mode X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This introduces the .DSC define 'PURE_ACPI_BOOT_ENABLE', defaulting to FALSE, which controls the value of the feature PCD 'PcdPureAcpiBoot'. This allows a ArmVirtQemu image to be built that restricts the OS to booting in ACPI mode. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/ArmVirtQemu.dsc | 5 +++++ 1 file changed, 5 insertions(+) -- 2.5.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc index fafad7751e6d..e626df768f85 100644 --- a/ArmVirtPkg/ArmVirtQemu.dsc +++ b/ArmVirtPkg/ArmVirtQemu.dsc @@ -34,6 +34,7 @@ [Defines] # -D FLAG=VALUE # DEFINE SECURE_BOOT_ENABLE = FALSE + DEFINE PURE_ACPI_BOOT_ENABLE = FALSE !include ArmVirtPkg/ArmVirt.dsc.inc @@ -99,6 +100,10 @@ [PcdsFeatureFlag.common] # Activate KVM workaround for now. gArmVirtTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE +!if $(PURE_ACPI_BOOT_ENABLE) == TRUE + gArmVirtTokenSpaceGuid.PcdPureAcpiBoot|TRUE +!endif + [PcdsFixedAtBuild.common] gArmPlatformTokenSpaceGuid.PcdCoreCount|1 !if $(ARCH) == AARCH64