From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web12.2549.1573124171267947254 for ; Thu, 07 Nov 2019 02:56:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F8m5hvkf; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573124170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KTgjnbSgdNh8S5SgLhjNBi/CsxwZFIx+vKpoXVeJoqc=; b=F8m5hvkf77hBM1yaJtRA9dN1t0Ad7787hiM9+cP6l5aLq9xa6d2yIqAL7kQYcrYuX6YW5A PL9LT2I6trXiaLFdOUXLJtC3eMH55DJhBZp/txIEMu3x8UDcTZ1EgqNT3B9HMa/8PH5fE/ nWDnGtjyZ1Ra7MMUo5KFotvkXzITRGE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-215-X29_VcAQP9y59BoPUDS8ng-1; Thu, 07 Nov 2019 05:56:09 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3706D2A3; Thu, 7 Nov 2019 10:56:08 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (unknown [10.36.118.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F2905D9E5; Thu, 7 Nov 2019 10:56:07 +0000 (UTC) Subject: Re: [edk2-devel] [edk2] DSC file : override FILE_GUID rule To: devel@edk2.groups.io, tigerliu@zhaoxin.com References: <44ad448fba40477f83fcb614df6880b7@zhaoxin.com> From: "Laszlo Ersek" Message-ID: Date: Thu, 7 Nov 2019 11:56:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <44ad448fba40477f83fcb614df6880b7@zhaoxin.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: X29_VcAQP9y59BoPUDS8ng-1 X-Mimecast-Spam-Score: 0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11/07/19 05:51, Tiger Liu(BJ-RD) wrote: > Dear All: > I have a question about FILE_GUID override rule in dsc file. > For example: > ...... > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf { > > FILE_GUID =3D D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94 > ...... > } >=20 > Usually, will define FILE_GUID in PiSmmCpuDxeSmm.inf . >=20 > Why override it in dsc file? IIRC, such overrides allow the platform DSC file to build the same module multiple times, most likely with other overrides too (such as PCD and lib class resolution). The resultant binaries will not conflict in any firmware volume / firmware file-system, by FILE_GUID. I don't remember the syntax, to be used in the FDF file, for refering to all of the builds of the same module INF file. Thanks Laszlo