From patchwork Wed Sep 20 14:48:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 113140 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp868075qgf; Wed, 20 Sep 2017 07:59:18 -0700 (PDT) X-Received: by 10.107.184.139 with SMTP id i133mr2114224iof.278.1505919558229; Wed, 20 Sep 2017 07:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505919558; cv=none; d=google.com; s=arc-20160816; b=bonahQqW2o9hvKR4p76rT9ucafY8louAKoG8NpJuPdqX5hcx4uBEZUzOxMKSf8nG/v AxA9Tz7XsZznsBNC5t+UyeN9gHL9HeyBLIR9YWmb7cqD7+LU6o0EtrgMDQbSE4LViy2m 3yzru0qN713I78MGUnQU+mXOu1CeIricBSZj5f7F3SRagP6GDuw5+bq+kcj+Me1+Pdb8 iGaIHV8hl3Nm2KZmlgTIySeHRN8RfzjLnxEu2d+7YZ0gDu6cHsrg+eqKrEIbC4aIdT93 SlHvT/HuUfK4WP3e9DVfaIhkPRbYXO7OyxQ3sEwJgmijqkJZ0Htna/5MIXrtcgheWpX/ 7ngg== 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 :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=xsKfAPWXtFioR7yyFxZH7egR7fhol1mPa1au/at5wm0=; b=DssfsaXy6cSOrZdo7IWl+RB8FFEoFC7mxqYA4U5wGV/zKLcV4T0Pp9csjQlhdRv6U9 mpy+VEwU/DSLjJt0icfHBLPuAVd1uI20OedTz2Pu1ceTKUZF5lgDsqhj2VCsQ5GX5yJC epN//09CjP+2OIESR0pOYMC4aqqFfvNzOQZnjoue4zox0YD0eHvFpoMq/jjkC4AfeIHg FlSuoz8C6J8zm5z70BZ1+OQ+2TvFgx3RyQKDysT3WVZ7SkPaOyVoT1IhBLOK1s8loAPi hWTqe6XFQT8MtjnV1ZOKSSWuMVYHQx3QzzhIfvXlB3uWWQA0wbk3kSIwjKRYdC+0m0co Bjtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s23si1580847ioa.391.2017.09.20.07.59.17; Wed, 20 Sep 2017 07:59:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id BAADF609F0; Wed, 20 Sep 2017 14:59:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 83D5560BE9; Wed, 20 Sep 2017 14:57:13 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id AEA0D60BE9; Wed, 20 Sep 2017 14:57:08 +0000 (UTC) Received: from mail-pg0-f43.google.com (mail-pg0-f43.google.com [74.125.83.43]) by lists.linaro.org (Postfix) with ESMTPS id 05F0D60BE9 for ; Wed, 20 Sep 2017 14:56:04 +0000 (UTC) Received: by mail-pg0-f43.google.com with SMTP id i195so1804029pgd.9 for ; Wed, 20 Sep 2017 07:56:03 -0700 (PDT) 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=OllXmheTqati2rhoJQ6/RMYzo9ZdA8eS3gutC2/BfFg=; b=NA13HxudK2eWdMK762QOTWgIyiTxJNfWqct6BTSJsEqvddFt7TX9Q1QXCN+4Ohd309 TkpDmCpwcOgzpp80PUbFDqdEtEDniVBLn0jrwKod2EeR58uAhpSWEVNGZGuufB/5vO8d S0+VI3ZTPnb/bSG/7Pd4WhwaWRtf0hjGCVCIpeUq8eDXXaFwMF6saDm8O9oOTOxrLPxw gtrs6f44VvDvBQIoYeIEXjb1JGmHb/a54Q5tR5Wp3xClAwei0KwHOlNHHTn7TcpgX8nn Ei8ZlFKATvqdu/gOlZ1LwUtbPWT+9947gx5niLZth8Nhd/qS4yQiiH+KUzO3eMmZt9P/ zSCQ== X-Gm-Message-State: AHPjjUhKfMwrh19CA44t5RkKgGAEW5H70RZZqWLlY6jzJTvWUrzkpwFO VXPUDKv1IE9tYkBjDFR67Ii7LGKl X-Google-Smtp-Source: AOwi7QAQH+BOXUFBdfb8h9wraEAidHjPe6RLhFAAFulbLU2MtdxIPzfIqHid4IA42DqZOL1SI9W+IA== X-Received: by 10.98.137.150 with SMTP id n22mr2467829pfk.104.1505919363282; Wed, 20 Sep 2017 07:56:03 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id c7sm9157624pfc.55.2017.09.20.07.56.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Sep 2017 07:56:02 -0700 (PDT) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, graeme.gregory@linaro.org Date: Wed, 20 Sep 2017 22:48:51 +0800 Message-Id: <1505918938-52550-8-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505918938-52550-1-git-send-email-heyi.guo@linaro.org> References: <1505918938-52550-1-git-send-email-heyi.guo@linaro.org> Cc: Ming Huang , zhangjinsong2@huawei.com, huangming23@huawei.com, guoheyi@huawei.com, wanghuiqiang@huawei.com Subject: [Linaro-uefi] [linaro-uefi v2 04/11] Hisilicon D03/D05: get firmware version from FIRMWARE_VER X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "For discussions about Linaro-related UEFI development. Not a substitute for edk2-devel." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" 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(-) diff --git a/Platform/Hisilicon/D03/D03.dsc b/Platform/Hisilicon/D03/D03.dsc index 7e25ffb..c47d552 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"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..c4f1f24 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"Hisilicon D05 UEFI 17.10 Release" + !endif gHisiTokenSpaceGuid.PcdBiosVersionString|L"10.01.01T18"