From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.6.40; helo=eur04-db3-obe.outbound.protection.outlook.com; envelope-from=udit.kumar@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60040.outbound.protection.outlook.com [40.107.6.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1596221B02845 for ; Thu, 19 Jul 2018 00:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ourCJSYbAiI7BbnsPI9agUfd8geB2nWRg0P/xlwmono=; b=MyNJvNeoE6vdjpTSvMVoRJw44ax3T9Sh/m89fke+0G3ufGJSAI0i260bgu3zzciQ15oSNdQ3ippvjNW921zdlwRx2sNlV/XOpEZnZHzAIouU+Rc56pwqBWlIHfMoJYUdWCgg48+kzhY3w7WBpHHS/z6wSRtbgZqu13zqMezcHw4= Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com (52.133.18.151) by AM6PR0402MB3431.eurprd04.prod.outlook.com (52.133.19.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.21; Thu, 19 Jul 2018 07:32:46 +0000 Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com ([fe80::24da:40ae:2827:efc9]) by AM6PR0402MB3334.eurprd04.prod.outlook.com ([fe80::24da:40ae:2827:efc9%3]) with mapi id 15.20.0973.018; Thu, 19 Jul 2018 07:32:46 +0000 From: Udit Kumar To: "edk2-devel@lists.01.org" Thread-Topic: Help on AutoGen Files Thread-Index: AdQfMQEaxcY4kHCxQrezTBTX+QtiPA== Date: Thu, 19 Jul 2018 07:32:46 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.142.187.166] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0402MB3431; 7:CM8Oqvxpsfr94MVoLKE4KAIgQT7ZnFfA5K2REHP2L14oOj09sj0Bi2A57Qyg6cTzRLmgOuhHiIMBjiT0vN+GS5lgWN73P2lebrd/+RTKlyEnODurxaI0rcn3LYzVkkLjhls0FU6H3U+gEVaKLvjeN08+acOp4tX1gATUaIFR6Q1UOwTcz4oXUOCMj6GoFNo1gzfJxBF21Iu0MLg3gu60Jm55cwSDVMs4h+AeUQQGUMYc6zkdI3cIZucsARB4dkfm x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 0fdb7f65-5dda-42db-16cb-08d5ed49d2a8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:AM6PR0402MB3431; x-ms-traffictypediagnostic: AM6PR0402MB3431: authentication-results: spf=none (sender IP is ) smtp.mailfrom=udit.kumar@nxp.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:AM6PR0402MB3431; BCL:0; PCL:0; RULEID:; SRVR:AM6PR0402MB3431; x-forefront-prvs: 0738AF4208 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(346002)(396003)(39860400002)(366004)(189003)(199004)(256004)(105586002)(106356001)(186003)(8936002)(7696005)(2906002)(2351001)(5660300001)(14444005)(6916009)(478600001)(97736004)(53936002)(14454004)(99286004)(790700001)(25786009)(6116002)(3846002)(9326002)(55016002)(476003)(9686003)(5250100002)(6506007)(6306002)(54896002)(102836004)(3480700004)(68736007)(33656002)(66066001)(2501003)(55236004)(44832011)(26005)(6436002)(7736002)(486006)(74316002)(5640700003)(2900100001)(86362001)(316002)(81166006)(81156014)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3431; H:AM6PR0402MB3334.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Gkl8cm6p8xb/R2DefJhWu7X2Fe644kMyRhDTORT0iaboBG6YrcpVMM60P75bCzXB0gyx+Ce5AfJyErKfR/7Ng3Ejvh6EgSUOwtCIAbQ+o9002p/lYa+PAbrtJXLftgeGlOjYYhfvbEsZ1oE63nfPZAKWU36PPZqWASpA3cz5JIiskasg99cd0YOiWweag9xLQXUISGNn1GHGABvAqUVxe4xx7BmXYbbePA6E5lSIP+gS4jj2+/67Pn6lEv3EfqnXbHj5l19S4spo5DTqgF0mSnWhkwoXT2qW0DBiXzZGlkOMjaig5VMhZOVEodBR+cW+WLyEo3JMxL+lk8jtm9Nk+7C3D3b/UQmm+24jj39cxPc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0fdb7f65-5dda-42db-16cb-08d5ed49d2a8 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2018 07:32:46.5107 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3431 X-Content-Filtered-By: Mailman/MimeDel 2.1.27 Subject: Help on AutoGen Files X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2018 07:32:50 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Experts, How I can change the order of initialization in Constructor list of autogen= file. In my build system, if I look at MdeModulePkg/Universal/PCD/Pei/Pcd/DEBUG/AutoGen.c Below is function of Library Constructor List VOID EFIAPI ProcessLibraryConstructorList ( IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices ) { EFI_STATUS Status; Status =3D BaseDebugLibSerialPortConstructor (); ASSERT_EFI_ERROR (Status); Status =3D PeiServicesTablePointerLibConstructor (FileHandle, PeiServices= ); ASSERT_EFI_ERROR (Status); Status =3D TimerConstructor (); ASSERT_EFI_ERROR (Status); Status =3D FpgaInterfaceInit (); ASSERT_EFI_ERROR (Status); } My problem is SerialPortConstructor needs frequency, which can be retrieved= after FpgaInterfaceInit() Therefore, my preferred way for this constructor list will be FpgaInterfaceInit() followed by BaseDebugLibSerialPortConstructor() how I can achieve this. Many Thanks Udit