From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 69BA221A16E5F for ; Wed, 17 May 2017 07:36:23 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2017 07:36:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,354,1491289200"; d="scan'208";a="1170376734" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 17 May 2017 07:36:20 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 May 2017 07:32:00 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 May 2017 07:31:59 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.246]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0319.002; Wed, 17 May 2017 22:31:57 +0800 From: "Gao, Liming" To: "Tomas Pilar (tpilar)" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] Reusing DXE driver code in edk2 packages Thread-Index: AQHSzxig5iezDiXi6USTVZkN1G+NiaH4lFZw Date: Wed, 17 May 2017 14:31:57 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D7300E8@shsmsx102.ccr.corp.intel.com> References: <1bdfe843-f708-2523-474f-0e0fa33771db@solarflare.com> In-Reply-To: <1bdfe843-f708-2523-474f-0e0fa33771db@solarflare.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: Reusing DXE driver code in edk2 packages 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: , X-List-Received-Date: Wed, 17 May 2017 14:36:23 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Tom: Your request is to combine two drivers into one. This is not supported in= BaseTools. Now, you have to copy the cod logic from TimestampDxe to your U= EFI driver to install gEfiTimestampProtocolGuid. If you want to this support, you can specify this request in https://bugz= illa.tianocore.org/=20 Thanks Liming > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of To= mas Pilar (tpilar) > Sent: Wednesday, May 17, 2017 10:19 PM > To: edk2-devel@lists.01.org > Subject: [edk2] Reusing DXE driver code in edk2 packages >=20 > Hi, >=20 > I want to use timestamping in my optionrom UEFI driver so I checkout the > Timestamp protocol that comes in UEFI 2.5. I check my platform for > gEfiTimestampProtocolGuid using gBS->LocateProtocol but that comes up > empty. >=20 > In EDK2 I notice MdeModulePkg/Universal/TimestampDxe which is a DXE > driver that uses TimerLib to produce timestamps. How would I use this in > my driver? Can I just stick the TimestampDxe.inf as a library to > [LibraryClasses] in my package DSC file? >=20 > Cheers, > Tom > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel