From patchwork Thu Sep 21 10:59:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 113223 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1877634qgf; Thu, 21 Sep 2017 04:07:14 -0700 (PDT) X-Received: by 10.98.70.221 with SMTP id o90mr5399433pfi.277.1505992034763; Thu, 21 Sep 2017 04:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505992034; cv=none; d=google.com; s=arc-20160816; b=WFv1MAJ9H710pv2PsLuTWKrehBVBt3/8lRoYX6YUtUtT19KGVpzzhQUCdSCCMuNKO4 a57/lBUKJr4IhJPDnHIidLTzubdWWAARrT24JoHDAAc2IK0btiv2q/nznMN8LKE054ep qp+Qp1FS3C1zQebrETqce7akFFn8ik6n3XqEFRaYB3DoTM536QQow4lalia87U1VMkKE 6sGTHV4JMAGapOn5XS0EKWjlm1PAAdUm75Ay5G7c+9Nb/Mw5CGAjeG1LUX12KQSqAH/b /AEII8RoHqnwKRMeIwVnU4J7FyOww/fAetU2VSuNMdpbYzalMCDouVmot/zldWwPoYkX Lsxg== 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=WzMtuQRukEO0ITliCJzRDMSRJFeyHwHZ6PskDy1C4FU=; b=OrG3ysrWfIg4N0Ejo6P4ovMgou5eZFFMhFwiZe1QmpvRjgFY8h84U54pIdLHcSEx2x 6QA98YjeR7xmuv67TGiJ99TAE/PYaNZ/OWLrbzd4H0NEavrRc3R9k9RuU6VE179Fkn5V 2YTPG6XFbvj1z983B1gRx2yt/kuNBo+ILcAoxTeNECNIOVjYOIWcqeCxisFSUhZKPI/Y UCzLrFRnnuGkle45GQLI/wctQpOWncFksuwtAdk6DcEufq+0vYGG3JkF3NJGtpRaXhjO CXpsWkQKbbKIUY0q3658HayzihDFmvH4bDOp3xeR1sLfNn4z0GFuqG4OpyMhVtT+X65N 00Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Trr19+AO; 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 c2si859246pli.812.2017.09.21.04.07.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Sep 2017 04:07:14 -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 header.s=google header.b=Trr19+AO; 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 3CB6F2095BB78; Thu, 21 Sep 2017 04:04:04 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-pg0-x231.google.com (mail-pg0-x231.google.com [IPv6:2607:f8b0:400e:c05::231]) (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 E421021E1B76D for ; Thu, 21 Sep 2017 04:04:02 -0700 (PDT) Received: by mail-pg0-x231.google.com with SMTP id 7so3328002pgd.13 for ; Thu, 21 Sep 2017 04:07:09 -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=IHHgaXMWs3he51p2OHrY9W45aCFcWl3+2hQ424RuhmA=; b=Trr19+AOhWKs7rSBRK47HLv2e/NceMa+D/iThgYBV2Eoo5GVeX9BLO5bxy8xufiiie Ra82C/z3gNauiERDd9IeizEEyWmyi/H83lbfnH6/J59zA4cN7EwIquGgTyFrTybxvDxY ii8qHXBCya+ccsKpreX5lYMQBBhMvBnN4I3bU= 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=IHHgaXMWs3he51p2OHrY9W45aCFcWl3+2hQ424RuhmA=; b=V6nIcTIb8NdlfHblpaN5CYnuzHtfH7/b31ygGKjT80EU8NBmshf+Qt/0UXGWrke2Oq 6z94SKQJsLCxX9qjVGisZVwty7l6Fndg9DUna2fe+ymeVuXuJjkl8ko+qfkz6rqj6L/J /iF1D6c6Zz4CFqUaID55ZcIJBV7vM1eliR76Rx+mhVB3TAjJRYb+I/B1VPW0R1NPBMly c/Q+hij1LGYJcjryvSzd7RvtLIePtPfLg/lIaC10sJM3AezqJDw/7oyNHzrbkO+L7iFX xxHT7pW8Nj4/nW4la3WBZibrmFE5ZUqtqPUHyB66pMjjvkvPMjaYrXbPSnxocPtbXO8G I5Vg== X-Gm-Message-State: AHPjjUiMh9l5+ytLp1gv63V7o7hzKCpNOnDTtmkvs5ClyuNDs3EGNh3v rqV/Iiv4EvNxsHGEkCbs9CtUNw== X-Google-Smtp-Source: AOwi7QAHyLSds1FRzMzVLmvmwLB0uQbIMd5cJ1LbXce5ZFwDYvL+OjkY13X6HbzC0Z6f75t36SHUig== X-Received: by 10.98.178.66 with SMTP id x63mr5333239pfe.332.1505992029447; Thu, 21 Sep 2017 04:07:09 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id x124sm2090762pfx.56.2017.09.21.04.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 04:07:08 -0700 (PDT) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Thu, 21 Sep 2017 18:59:46 +0800 Message-Id: <1505991597-52989-8-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505991597-52989-1-git-send-email-heyi.guo@linaro.org> References: <1505991597-52989-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 04/11] Hisilicon D03/D05: get firmware version from FIRMWARE_VER 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: huangming23@huawei.com, ard.biesheuvel@linaro.org, zhangjinsong2@huawei.com, Ming Huang , guoheyi@huawei.com, waip23@126.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Ming Huang Value of the environment variable FIRMWARE_VER is GIT SHA by default, and you can add the environment variable FIRMWARE_VER to EXTRA_OPTIONS at build time to specify something else, eg. "16.12-". Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Platform/Hisilicon/D03/D03.dsc | 6 +++++- Platform/Hisilicon/D05/D05.dsc | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/Platform/Hisilicon/D03/D03.dsc b/Platform/Hisilicon/D03/D03.dsc index 7e25ffb..fca6781 100644 --- a/Platform/Hisilicon/D03/D03.dsc +++ b/Platform/Hisilicon/D03/D03.dsc @@ -170,7 +170,11 @@ gHisiTokenSpaceGuid.PcdAlgSmmuBaseAddress|0xd0040000 - gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Hisilicon D03 UEFI 16.12 Release" + !ifdef $(FIRMWARE_VER) + gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)" + !else + gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Development build base on Hisilicon D03 UEFI 17.10 Release" + !endif gHisiTokenSpaceGuid.PcdBiosVersionString|L"10.01.01T18" diff --git a/Platform/Hisilicon/D05/D05.dsc b/Platform/Hisilicon/D05/D05.dsc index 7cd5758..aa61c0e 100644 --- a/Platform/Hisilicon/D05/D05.dsc +++ b/Platform/Hisilicon/D05/D05.dsc @@ -188,7 +188,11 @@ gHisiTokenSpaceGuid.PcdIsMPBoot|1 gHisiTokenSpaceGuid.PcdSocketMask|0x3 - gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Hisilicon D05 UEFI 16.12 Release" + !ifdef $(FIRMWARE_VER) + gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)" + !else + gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Development build base on Hisilicon D05 UEFI 17.10 Release" + !endif gHisiTokenSpaceGuid.PcdBiosVersionString|L"10.01.01T18"