From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a01:111:f400:fe0a::821; helo=eur03-db5-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03olkn0821.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0a::821]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 60A8C21B02845 for ; Thu, 19 Jul 2018 11:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1ABvz9VKPm1/dYiRMYlwqH9KG3mc8EOpZt7KRTow558=; b=nBr00T5UkSqfc8zye8yqsr9U0Gmt0gQYkyS1XY+VIY8R7creT5ZmuEW7IHBitR+pkq2qPe1PsJY3KI8VdX0Y07nzLACrwfXCge9vpUFUOD0ZX0XZpZIIbG/x+ue8aU32NXb8wON9qTrjAVo5XOxX9ReGCFDr7zV9VRCDNS0z77VXYzDdgeq+6yUNlR7ScKiqYNxxGef9XjKYmfOOpUUAV3vNewy/q1xreHxKI+GYL6JVoX2txzL1Ej41OtkzMq4h5YT4h0iP9nVWvnP+BbUx8qPu7GY4PKbnsmA9E0YYCbzKqP7PG2J3I7ioRJizxc72MVAc4rbU79RwBVXnnjyD6A== Received: from DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com (10.152.20.57) by DB5EUR03HT152.eop-EUR03.prod.protection.outlook.com (10.152.20.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.952.17; Thu, 19 Jul 2018 18:14:05 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com (10.152.20.59) by DB5EUR03FT026.mail.protection.outlook.com (10.152.20.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.952.17 via Frontend Transport; Thu, 19 Jul 2018 18:14:05 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7532:4dc6:e9f7:4765]) by VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7532:4dc6:e9f7:4765%2]) with mapi id 15.20.0952.022; Thu, 19 Jul 2018 18:14:05 +0000 From: Marvin H?user To: "edk2-devel@lists.01.org" Thread-Topic: Help on AutoGen Files Thread-Index: AdQfMQEaxcY4kHCxQrezTBTX+QtiPAAWoiJQ Date: Thu, 19 Jul 2018 18:14:05 +0000 Message-ID: References: In-Reply-To: Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:A387344F5E02181B9D4C30858FAB6BD14AF09ADEA0B27BAF6C0789239DC628E6; UpperCasedChecksum:87BA75F7BD84EE2E1E775448A34605E8B3C4FB91A24A078EAA6043AECAA2A5B3; SizeAsReceived:7096; Count:46 x-tmn: [UimcEuUdttFCq+WeGlkl2QngV/ZfyX5l] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR03HT152; 7:zWjLfXcsP3f81TCpCtEedciUH641URsOvDUE26FlFRC+e/a1jK6Ebjwhj3NV8Ua52n18CL10dT7reAPpRzsLPhiZkwYymXNFSnKNpGF+YDezYN+TUqrPN4rv9QG4/gAyjYn2EU+0gSO75TENxBZP2pL3ynlITotYAdnOe9QFAh67SRrERAlIBPKnR5AcjgvX9y6BRFxoz4kN+lSS329BWGtuWlzNlDaOHwM+hFgFz3peS/hSB5Ieo6g3nOQJ/MYU x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125500)(1701031045); SRVR:DB5EUR03HT152; x-ms-traffictypediagnostic: DB5EUR03HT152: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(82015058); SRVR:DB5EUR03HT152; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR03HT152; x-forefront-prvs: 0738AF4208 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(53234004)(13464003)(189003)(199004)(4326008)(5250100002)(82202002)(3480700004)(486006)(74316002)(53546011)(229853002)(102836004)(6436002)(476003)(5640700003)(2351001)(2501003)(8936002)(6916009)(14454004)(11346002)(86362001)(6246003)(55016002)(25786009)(446003)(6306002)(99286004)(426003)(104016004)(87572001)(68736007)(5660300001)(81156014)(966005)(33656002)(26005)(305945005)(8676002)(6346003)(106356001)(2900100001)(20460500001)(76176011)(97736004)(7696005)(256004)(105586002)(14444005)(56003)(72206003); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR03HT152; H:VI1PR0801MB1790.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:; received-spf: None (protection.outlook.com: outlook.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Marvin.Haeuser@outlook.com; x-microsoft-antispam-message-info: TFlAQ8S4tC0ECsq/rjTstgLe5HRAwlFTRPfTr9w7/IGp1rRK/C53B+dJp4xrsUgNtk1J6nQI+EdbwOFF2xBwPWdnXwJLt52cpIws2lnZUlyReb9a7A+K3sWKJkWI/slIH6YRq0xgkR5M8kVUVR9z3qqluE2EpuAHJPZXx8cuuj5ch2gm3N+DlyJq3plh6a3yUAVhe3c2YdAzNg5dRxfBwjw2us+kPtcaHDe7rN0GtuI= MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: 7c6aeb86-3534-41ce-b8b8-08d5eda36a1c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2018 18:14:05.7731 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR03HT152 Subject: Re: 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 18:14:09 -0000 Content-Language: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey Udit, You cannot explicitly influence the order of the calls, but implicitly via = the dependency tree, which means you need to make SerialPortLib depend on y= our LibraryClass instance. You did not mention which SerialPortLib instance you use, but probably you = need to execute FpgaInterfaceInit() earlier in platform code or fork Serial= PortLib for now. Regards, Marvin > -----Original Message----- > From: edk2-devel On Behalf Of Udit > Kumar > Sent: Thursday, July 19, 2018 9:33 AM > To: edk2-devel@lists.01.org > Subject: [edk2] Help on AutoGen Files >=20 > Hi Experts, > How I can change the order of initialization in Constructor list of autog= en file. > In my build system, if I look at > MdeModulePkg/Universal/PCD/Pei/Pcd/DEBUG/AutoGen.c > Below is function of Library Constructor List >=20 > VOID > EFIAPI > ProcessLibraryConstructorList ( > IN EFI_PEI_FILE_HANDLE FileHandle, > IN CONST EFI_PEI_SERVICES **PeiServices > ) > { > EFI_STATUS Status; >=20 > Status =3D BaseDebugLibSerialPortConstructor (); > ASSERT_EFI_ERROR (Status); >=20 > Status =3D PeiServicesTablePointerLibConstructor (FileHandle, PeiServic= es); > ASSERT_EFI_ERROR (Status); >=20 > Status =3D TimerConstructor (); > ASSERT_EFI_ERROR (Status); >=20 > Status =3D FpgaInterfaceInit (); > ASSERT_EFI_ERROR (Status); >=20 > } >=20 >=20 > 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() >=20 > how I can achieve this. >=20 >=20 > Many Thanks > Udit > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel