From patchwork Tue Oct 14 12:05:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 38714 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7184820549 for ; Tue, 14 Oct 2014 12:06:05 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id b57sf1878062eek.8 for ; Tue, 14 Oct 2014 05:06:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:reply-to:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=qZvwkz3p5AQYPe4W6fAqWUMlfnBM26s3R+sYMdJqmg8=; b=k/NzjOllPpuBid4H+uSyQjmVtx32kJXY4Xd2PSRwZfzbCORSNOCz3upINJE1IgxP4d X2/pC7325eqz60AskX4yqdISYQewwIRfUXw57GW3l8vNIDzfjNdNA76Udeq2uvjW+kVL PAGxZIWUPFUZbUHZJ8FGG4oeHxBzqZMKARVQUgVad+cnG4APY3i0eAFjZIjDOfpvud4A ThFcgLIS9PYvISNDSR/X/66krsYO6QG6JTngo89uyR7XrvH21LzJMISPAgi4Imhv5glS vpsvCYZIB9RkEDHaVJeFMhMsPBeHlXlS2DjE5vul9s0mTtrwFyXAqtW4pTml6cuZVIzf G5xA== X-Gm-Message-State: ALoCoQmTOsZSNFVYih20siZg7GulwUdueUb3MB1UCD0RLf5WFzkLTb3oeaDaCXRIiznuwKlDfd2X X-Received: by 10.180.83.134 with SMTP id q6mr897208wiy.7.1413288364615; Tue, 14 Oct 2014 05:06:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.67 with SMTP id z3ls574859lag.74.gmail; Tue, 14 Oct 2014 05:06:04 -0700 (PDT) X-Received: by 10.112.166.130 with SMTP id zg2mr4855074lbb.3.1413288364192; Tue, 14 Oct 2014 05:06:04 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx.google.com with ESMTPS id k1si26096225lam.96.2014.10.14.05.06.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 05:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so7899288lbv.21 for ; Tue, 14 Oct 2014 05:06:04 -0700 (PDT) X-Received: by 10.152.36.103 with SMTP id p7mr4913614laj.44.1413288364102; Tue, 14 Oct 2014 05:06:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp380757lbz; Tue, 14 Oct 2014 05:06:03 -0700 (PDT) X-Received: by 10.52.144.2 with SMTP id si2mr3555301vdb.7.1413288362392; Tue, 14 Oct 2014 05:06:02 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id sn9si14396433vcb.38.2014.10.14.05.06.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 14 Oct 2014 05:06:02 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Xe0rO-0004go-CF; Tue, 14 Oct 2014 12:05:50 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Xe0rM-0004gc-Nz for edk2-devel@lists.sourceforge.net; Tue, 14 Oct 2014 12:05:48 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.212.169 as permitted sender) client-ip=209.85.212.169; envelope-from=leif.lindholm@linaro.org; helo=mail-wi0-f169.google.com; Received: from mail-wi0-f169.google.com ([209.85.212.169]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Xe0rK-0002h9-Q1 for edk2-devel@lists.sourceforge.net; Tue, 14 Oct 2014 12:05:48 +0000 Received: by mail-wi0-f169.google.com with SMTP id h11so5791263wiw.2 for ; Tue, 14 Oct 2014 05:05:40 -0700 (PDT) X-Received: by 10.180.104.229 with SMTP id gh5mr4981785wib.42.1413288340534; Tue, 14 Oct 2014 05:05:40 -0700 (PDT) Received: from mohikan.mushroom.smurfnet.nu (cpc4-cmbg17-2-0-cust71.5-4.cable.virginm.net. [86.14.224.72]) by mx.google.com with ESMTPSA id bq8sm9689303wjb.6.2014.10.14.05.05.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Oct 2014 05:05:39 -0700 (PDT) From: Leif Lindholm To: edk2-devel@lists.sourceforge.net Date: Tue, 14 Oct 2014 13:05:53 +0100 Message-Id: <1413288353-28739-1-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1Xe0rK-0002h9-Q1 Subject: [edk2] [PATCH] ArmVExpressPkg: enable specifying firmware version string on build X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leif.lindholm@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 If FIRMWARE_VER is defined on the build command line, set gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString based on it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Reviewed-By: Olivier Martin --- ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc index fb2efd5..c97aa58 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc @@ -256,6 +256,9 @@ [PcdsFixedAtBuild.common] gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express" +!ifdef $(FIRMWARE_VER) + gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)" +!endif gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"VExpress" gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000