From patchwork Tue Sep 19 13:56:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 113017 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4979953qgf; Tue, 19 Sep 2017 07:21:54 -0700 (PDT) X-Received: by 10.55.162.7 with SMTP id l7mr2007903qke.154.1505830914625; Tue, 19 Sep 2017 07:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505830914; cv=none; d=google.com; s=arc-20160816; b=YT5t9SOU/Y1XUfE4kyGf0IBmuu0Zjh2AJvCoEgsEGgjNjDyEoH8HbkP4e363NOMJLI ymPlPZhsGJ4vs8HSdPppl6T37qiwE6xZT0Pv10ywEeVJ5Cb32XPlqpdc7JABAIEFl6aZ /LMpPjkbmOa9cWGHYr6E+Ur3TK3KbFXneZL1uJi4Z1QKrsMDlsUeIalqTUB15+m5gkIe 1Ojs7mAWxysSGqqfJXK9JUHuxGMv6IGvWW6UOSpPbX7tjaFr/uluiho2vHRu4rpN2yI+ 7EPB+dLeoreQrfxJiRE3mC4FuIi3+nKpnNEpyp9mTg1HdV4wHjU687kMkkW2hJh0kjnU DRuQ== 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=F7zb6LbGSbg5E+ZnNwfu0MjGIDyE1HSGu2ECYuYyhI0=; b=v0PHS8de27MtCYVuVpXaByIat69I07TZPXWS5PoeHSOzFWuX8ID36dHvMRr41krfNS ecazb2DyT+vh3rnO2Yc3vogEvhVjW8/rPafM6T9TU02qxRZtsmDrzn7lAkkhVUX9aC9L uQMqk+1YRShtTAxxrghb6yVMgJxARzdVZgqdmjKEQamZL44G3L3w3RH1igNLzukTXkKS dIeu+LAZdpo12Nat6WVq2VZfsz0IDITO9m+vSd1VgamdcS5Rzrg6s8ANWVsvK/URCFiB dCHbeKwvQoBQ08VG93wpQx9iodMB+Rb7JMGZB2FZpvYS9ObXiCxm3VJjZ3EF/4Xz3GYY RTiQ== 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 42si9143879qte.547.2017.09.19.07.21.54; Tue, 19 Sep 2017 07:21:54 -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 392676092D; Tue, 19 Sep 2017 14:21:54 +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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_SPAM, 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 751476446E; Tue, 19 Sep 2017 14:11:36 +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 164C062BE4; Tue, 19 Sep 2017 14:06:21 +0000 (UTC) Received: from mail-pf0-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by lists.linaro.org (Postfix) with ESMTPS id 2742A62C60 for ; Tue, 19 Sep 2017 14:06:13 +0000 (UTC) Received: by mail-pf0-f170.google.com with SMTP id n24so37837pfk.5 for ; Tue, 19 Sep 2017 07:06:13 -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=kE+jqMmcJ+bb9h48nPazsiwNOFkFU/qyxgJg6/c54ps=; b=XO/FWdZf8pDVu0HK8P9WY7NPSULVSJoUS93Sp8+QjewLSmYT71E2+4ZdaedMG0si/x PFdW0zgOnXomR9wR9FDD+JoXfzJnefC7cvkgKZhL9qT83x5EWiOl4xoOJoYq+l1WkfXJ IoH1twRU4SBQzJkW1pWEVog2I21FccfLt3aPVZamjgCSEbX1wItvxwzyWmjsNyFugYPe hSz4Co/tbEx8doD0pYtwkrI9YAdX4BsdqnFZH0HXQ56o+ZN5G7O2q//XEdlZeyV85R+1 cUUC64NQ+y3CY2Gyri8+2l4iM/NA7ZPiFJFhvbbPeWugr6KsL5endZxRxvAx6blXKZr9 p6yQ== X-Gm-Message-State: AHPjjUiEHqrsiBpG5G3V/3QJ0szk18JZxDeq47cEVgL1G2d1v95VJ7Ah b9ub6fLTHltgY6HJhfDRlHpLverk X-Google-Smtp-Source: AOwi7QCU47jS7WGin2JQqJuKZKGV0I4+BpQ2nz9am3I1UVbIHYX/iAZS1gjCJVbLmLvBo37UnS5Z2w== X-Received: by 10.99.4.204 with SMTP id 195mr1500796pge.35.1505829972493; Tue, 19 Sep 2017 07:06:12 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id 13sm4390439pfm.138.2017.09.19.07.06.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Sep 2017 07:06:12 -0700 (PDT) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, graeme.gregory@linaro.org Date: Tue, 19 Sep 2017 21:56:37 +0800 Message-Id: <1505829398-52214-32-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505829398-52214-1-git-send-email-heyi.guo@linaro.org> References: <1505829398-52214-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 v1 31/32] 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.0 Signed-off-by: Ming Huang --- Platforms/Hisilicon/D03/D03.dsc | 6 +++++- Platforms/Hisilicon/D05/D05.dsc | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Platforms/Hisilicon/D03/D03.dsc b/Platforms/Hisilicon/D03/D03.dsc index d856e2b..a37adfc 100644 --- a/Platforms/Hisilicon/D03/D03.dsc +++ b/Platforms/Hisilicon/D03/D03.dsc @@ -169,7 +169,11 @@ gHisiTokenSpaceGuid.PcdAlgSmmuBaseAddress|0xd0040000 - gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Hisilicon D03 UEFI 17.10 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/Platforms/Hisilicon/D05/D05.dsc b/Platforms/Hisilicon/D05/D05.dsc index 07aa98f..0ba3eaa 100644 --- a/Platforms/Hisilicon/D05/D05.dsc +++ b/Platforms/Hisilicon/D05/D05.dsc @@ -190,7 +190,11 @@ gHisiTokenSpaceGuid.PcdIsMPBoot|1 gHisiTokenSpaceGuid.PcdSocketMask|0x3 - gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Hisilicon D05 UEFI 17.10 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"