From patchwork Thu May 31 09:01:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 137339 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp6340770lji; Thu, 31 May 2018 02:02:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIzcgVIe564+DpKh65qgkq/j0yUwX7i5OJcZwFM6tSadDTzAI+8w8iyc6QxG2J0pEuASCT0 X-Received: by 2002:a63:711c:: with SMTP id m28-v6mr4857989pgc.66.1527757320203; Thu, 31 May 2018 02:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527757320; cv=none; d=google.com; s=arc-20160816; b=DRz9yqwTtG5IMGwgKiRhFmu3kD73t+s6IqH7dE7q9yLG5z27Fnfgk3kQZLOfC3msJB /o6UzaAy65TFwaUvdbnRusCa3VJnI9m8/rmkUqfG5IaQmbWh6j+BDea0vEJ7Zg+3hscq o0qbuYMtmSiYveshtxu/RPSizZYwW7zTVYGu332iSDV1ifmjfqwT6VbXR9cdBYDjlhsZ 7Q0wYHCRf9MYFNEuesvVkFGhMr3DZIut4YdX89bM3EBeqTJWelmZbfjM5sT5FB9WHCdM D39ypvLDApLeZYvS9UEHBHPdwN0VnW1R0WvE0FGRfvns4bk6+SDpwaRdCR6108Fao3oc ztEQ== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=BZlPXuXXBcUX5MvkTB+LyUsGacTWWGurEEgy7DlB4Fk=; b=jjEFXfjVBnKztkY7KXlkUgZUeLOD0f9XeB7xZ4aYNg1K4U9Znv92DuYoGMEIFi+SFH KtkkYoHsAleeYFmstigRJr+ICmo5TJZimI265rprFn+03cbyW+iOYsuIu86CIkKVE83X fdOsBHEsPUREZ2gXFSICWtg2H0DeNHr3fSjTs+0vXTNBiCT8xQG2iKk+TXUKLKRPk2ot AAelUKnLeQAyjvawjOChXUad+yeWwQIGeU2YBD8h/m6v4neKIGdSkSVtFJ/drRQz+Jj1 ToHZWtr0ANOKGFgHz4Q91j49YJxV62V7e2agxbSrJe6wOpm2wBfkEyKn677um4kK1rFX jUqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bVEKdN1H; 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 v10-v6si37182380plo.150.2018.05.31.02.01.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 02:02:00 -0700 (PDT) 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=bVEKdN1H; 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 6F6B72098C206; Thu, 31 May 2018 02:01:59 -0700 (PDT) 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:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 717EC2097DD0C for ; Thu, 31 May 2018 02:01:57 -0700 (PDT) Received: by mail-wr0-x241.google.com with SMTP id v13-v6so20509094wrp.13 for ; Thu, 31 May 2018 02:01: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=hDmmriyBN2BRpfl4GB6vXS7HQ1UqIckKlVHC2HX2ApQ=; b=bVEKdN1H0K+atYoGG93BUhqPzEJh6dXxbjkQoMWcFPdBrxAtHH9iXd3AbgFRWC/SXB rcshtxW2k9xrv+3Ripa6qVjZAJwtcWtz/N5el65mTtz2JPWpPxl4qVaDmzI5m2MzyY2c Lg/EYZli627SO5PDmvC4JKra+/WgXOFJ+3aIc= 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; bh=hDmmriyBN2BRpfl4GB6vXS7HQ1UqIckKlVHC2HX2ApQ=; b=r99uWTPLP/uFSDVM2dAdx/mOn8vaypuetZnyQNEt5h6+D9Uqa8uL2gvOaQvSP+i0/0 pglkeiHi1HHVbhmhvYUVyPwkX1+c5iQPjNwxYFJM3BRKFvUMLJloNStEltA6bS5Nk/bi XLyMXus27gIKfIzLB/PLwH1C5goiXk42WSUiR+qhsmBgNtPQWSdEHro2TYp0htCU5DbP m+k5/j96yrXekkwm4ighVk1WHnHw9zAfLfygkeJBr0eMMvVEx3i+JdxgUCsMx6o65ANV Y8Vzr7her2H/INbvDEAJMUpTPRxvtMIrgqTQtOp/HWXlB7t9mX82JVQIkg1z+PV8pFTu 3kJg== X-Gm-Message-State: ALKqPweY9PMmRfkInJAVq3OtonuGujrQjiE0IechIUfFru+6eR/l6T3t 1LX9QdHC9uiVZPiG3515eUsnIWrb8Gs= X-Received: by 2002:adf:9950:: with SMTP id x74-v6mr4438750wrb.135.1527757315283; Thu, 31 May 2018 02:01:55 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:3995:5470:200:1aff:fe1b:b328]) by smtp.gmail.com with ESMTPSA id y18-v6sm10970355wrl.53.2018.05.31.02.01.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 02:01:54 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 31 May 2018 11:01:49 +0200 Message-Id: <20180531090149.29202-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 Subject: [edk2] [PATCH] SignedCapsulePkg: add PcdLowestSupportedFirmwareVersion X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiewen Yao , star.zeng@Intel.com, leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add a PCD that holds the lowest supported version number, so that we can allow the platform to configure this at build time. Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- As discussed a while ago: https://lists.01.org/pipermail/edk2-devel/2018-March/022914.html SignedCapsulePkg/SignedCapsulePkg.dec | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Signed-off-by: Ard Biesheuvel Reviewed-by: Jiewen.yao@intel.com diff --git a/SignedCapsulePkg/SignedCapsulePkg.dec b/SignedCapsulePkg/SignedCapsulePkg.dec index b27e87409b19..f06e07656de9 100644 --- a/SignedCapsulePkg/SignedCapsulePkg.dec +++ b/SignedCapsulePkg/SignedCapsulePkg.dec @@ -52,6 +52,10 @@ [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] # @Prompt GUID of the FFS which contains the Pkcs7TestPublicKeyFile. gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiPkcs7TestPublicKeyFileGuid|{0xba, 0xf5, 0x93, 0xf0, 0x37, 0x6f, 0x16, 0x48, 0x9e, 0x52, 0x91, 0xbe, 0xa0, 0xf7, 0xe0, 0xb8}|VOID*|0xA0010002 + ## This is the lowest supported version number that can be upgraded to, as exposed via the System Firmware descriptor. + # @Prompt Lowest support version number that can be upgraded to via capsule update + gEfiSignedCapsulePkgTokenSpaceGuid.PcdLowestSupportedFirmwareVersion|0x1|UINT32|0xA0010003 + [PcdsDynamicEx] ## This dynamic PCD holds the EDKII system firmware image descriptor. # This information can be used for version check in EDKII system FMP capsule.