From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (EUR04-HE1-obe.outbound.protection.outlook.com [40.107.7.74]) by mx.groups.io with SMTP id smtpd.web12.42954.1589812323523856557 for ; Mon, 18 May 2020 07:32:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=1FaQzX/B; spf=pass (domain: arm.com, ip: 40.107.7.74, mailfrom: pierre.gondois@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U0F/+hiRjpiIxKV/K7c+92OEGWbH7dJOagZPvtIgojE=; b=1FaQzX/BJuRa/+bWhtDkLT8xulmWpUO3do1tvtmac3/cODaJl47QszQMbSnSvwyVg9af5e1xonHtCp1nyY5ziWmsgf6ckPU0ENaW4ywYuUltqfPRSaG8Kg7k0Clbb7maSAdX7yioB6A/sYO747adCIdZvmwq+IPOVvFEsISt1IA= Received: from DB8PR06CA0040.eurprd06.prod.outlook.com (2603:10a6:10:120::14) by AM5PR0801MB1715.eurprd08.prod.outlook.com (2603:10a6:203:3c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20; Mon, 18 May 2020 14:32:00 +0000 Received: from DB5EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:120:cafe::aa) by DB8PR06CA0040.outlook.office365.com (2603:10a6:10:120::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24 via Frontend Transport; Mon, 18 May 2020 14:32:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT032.mail.protection.outlook.com (10.152.20.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Mon, 18 May 2020 14:32:00 +0000 Received: ("Tessian outbound 567b75aed2b9:v54"); Mon, 18 May 2020 14:32:00 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e6802fbf6df75c2b X-CR-MTA-TID: 64aa7808 Received: from bd863011f431.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9DD40B1B-7BC8-4FE1-A8F7-BBBC96F67034.1; Mon, 18 May 2020 14:31:54 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bd863011f431.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 18 May 2020 14:31:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M2+8er6brk6WpP+i3FULU3/7kAgb5XZbM6Gvgw4g0u4K0SdjIxtnF+mj5E5jZzUIq6VejrgcTAQCGwsViLbK8IcwMr2w4pk+9tDEDo6cz1tYuydbCxxSW28OeXEcWxED6+ynXPikkmtuEW0f9RSnPhLTD0FMblsRclrb9WDqtoLJzOyRj9oKa8aMDnJyW32a2n/CnkEny/8sR+hbAZ7tvOda6mmnJyQMDTPPONhnD3P19NiRmD9GkuOvwEBcGjWcu0WZ4Z98mU8ujlAAQlO+DsKWuylpQ6Iz5UcWL6u2UyMWG48poaBXiCpyVthL7p1prNmU5B7GzxX0BVTMXRaUFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U0F/+hiRjpiIxKV/K7c+92OEGWbH7dJOagZPvtIgojE=; b=lqxE862VrigpTVdS/RD6RMtCDVDPWjgcJMeBWapP8sGthVPGcSZpAGVbCuMIQYY3MkCC+iipUnT7INvW8p7tVGxFy9VsF4yAoSWSjHVCKE1xUSCLNSO4UZOYDY/aN9FfKuZ1QzzMnfCLHOebI1Lwk+uw6pHnuDMrUKXKX2kFDlUfc3poGWsbxxJn3dGSk4A7VrYUc2Fw9apohF5tCUDUXZstwx43ZMRZQvkuB2ihPbNyG5rrOOW3FH19nEG/iH+FVbUkXgPkaBAURT1yClt1IWYqLrrcqYGV3EAjTu1/qgs6Z86l0kamTNud813GHN2Jepvsw3ugWFLkhinUl4WcNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U0F/+hiRjpiIxKV/K7c+92OEGWbH7dJOagZPvtIgojE=; b=1FaQzX/BJuRa/+bWhtDkLT8xulmWpUO3do1tvtmac3/cODaJl47QszQMbSnSvwyVg9af5e1xonHtCp1nyY5ziWmsgf6ckPU0ENaW4ywYuUltqfPRSaG8Kg7k0Clbb7maSAdX7yioB6A/sYO747adCIdZvmwq+IPOVvFEsISt1IA= Received: from DB7PR08MB3113.eurprd08.prod.outlook.com (2603:10a6:5:20::21) by DB7PR08MB3210.eurprd08.prod.outlook.com (2603:10a6:5:20::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.25; Mon, 18 May 2020 14:31:53 +0000 Received: from DB7PR08MB3113.eurprd08.prod.outlook.com ([fe80::4178:71bd:a2a4:78bf]) by DB7PR08MB3113.eurprd08.prod.outlook.com ([fe80::4178:71bd:a2a4:78bf%7]) with mapi id 15.20.3000.033; Mon, 18 May 2020 14:31:53 +0000 From: "PierreGondois" To: Pierre Gondois , "devel@edk2.groups.io" CC: "bob.c.feng@intel.com" , "liming.gao@intel.com" , Sami Mujawar , Tomas Pilar , nd Subject: Re: [PATCH v1 0/3] Compile AML bytecode array into OBJ file Thread-Topic: [PATCH v1 0/3] Compile AML bytecode array into OBJ file Thread-Index: AQHWLR5D+q8zhIChMUmRGs8GhyJXU6it5swA Date: Mon, 18 May 2020 14:31:53 +0000 Message-ID: References: <20200518141120.66132-1-pierre.gondois@arm.com> In-Reply-To: <20200518141120.66132-1-pierre.gondois@arm.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [109.208.118.152] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4b1b69f5-e6db-4d12-5a21-08d7fb3839cc x-ms-traffictypediagnostic: DB7PR08MB3210:|AM5PR0801MB1715: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882; x-forefront-prvs: 04073E895A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: PbZtXmoQjYZReq47VempaG578mQBgR1kvO19sa+4rpfxyXaH8GpIdwWYfHi/RGliX/9PQBXbFvQlFRSBf9wHSpaLaBVRbVziNBPH3y6jpVDO9ZL1inM0YpdGNGmdF4Rrr9OZv3Y5wQBZyGWaCEk6VopclvyDJzTTKW0+2AHggcs3u9RpnBURFDWfyB3fdJJFTqM8CVmBbZn3lKTfEQGrnt7cW6Jjw26M47HwjspTe3HqwfIY3JV4ca5l7CKyV5oj5qJkOfkF6icO9dG0SMMt9b7Pk2Q9VeMxzyWYzdJ4joS6W/njn79YMO0u0GuW/Gc56dVYjiuoj6QGgRRP9HjB8mATTwMg805xbVkZJB6MCW7o9VCVP+Lc+qMPTyLc0BR01yzSdLQcCgC7OChK7jo91tj5DJZ3IYsjwzv1iR7horGKADc4OvlgqnZgLpa7be8a00bcnOtYhJSMmXXiWgR9YfKv8UZN6MhEejONRNhEOpV7OcyVBsDNOawPbeVwmr1758QUH9/xYF0FUZKJGu+UXg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3113.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(366004)(39860400002)(396003)(376002)(346002)(8676002)(71200400001)(55016002)(33656002)(7696005)(8936002)(9686003)(86362001)(478600001)(5660300002)(26005)(186003)(52536014)(2906002)(4326008)(53546011)(316002)(6506007)(110136005)(966005)(66476007)(66946007)(66556008)(66446008)(54906003)(76116006)(64756008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: YAneWTRKFfurgbIG4jMuVFXRGTk3A5IhU5qfukvTpHhxL0hyJsMeOY7XQ6kDhH8phmk60uwVn468S94Xg/wz/xly2k3wKyZl1qznh+N60Ivtt8gGJZg36VINbV2SyXEHbzdTc0ZDqe5DpdCp03NKJIie01CjN0bdQm58qIrKiNuQWUyTwAl9tBFXQjNSSnQqeESWPz1rVVrh/6Oll6CEPLhTbqjHISZC3VfbUSjFN+84VBPvNq5X72QUwLgDcRtNkN+puIQ+j3U/89PYPIkagQj77vH1EvWm7CmH6TdHlD60fK8vU66Xde/9Wgi8mV5fSjfrEcWAGAHBLxd9zKdZNq/ScIMQvTWq40JlnLDfQflOwfSSRQf2Suvtbn5q8HYaGMjDsvEcgonJcjNA0lazkFaQP39WmQs0XwbtE1RQPJzQGsRLg4NuoWXJIcefpS87aXOfd0M542BBjRilqklIkSjruEbOUzG/xnMKirCfKnxy4rCLomVNicz+2oeKCWFN MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3210 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; Return-Path: Pierre.Gondois@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(4636009)(396003)(376002)(346002)(136003)(39860400002)(46966005)(356005)(2906002)(86362001)(478600001)(966005)(4326008)(81166007)(82740400003)(82310400002)(5660300002)(47076004)(336012)(33656002)(8936002)(26005)(52536014)(9686003)(55016002)(186003)(316002)(54906003)(110136005)(7696005)(6506007)(8676002)(53546011)(70586007)(70206006);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 069e41a4-4076-4ecc-7363-08d7fb38359a X-Forefront-PRVS: 04073E895A X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KvR6hARFcbmkj9Zukh/9j+9vlEXj6xNRozWrifIBu4UaZ5Wb3zIPjTzRcCnJnt0EsUy6KeoBMP9mHCFE99FjZ7MdCQu+tEkpZ6dkBbhLYiCVCKk5ORyvqIc2u6NOuqO349cZrIuRlps5JsfOYk6GiLQ/dv13Fe9I8JaZCjd1xXcDZrlADRqdHUY9BHjVTBH6w57ivA3yqf8CkTSSGfC0G3R59twpnhcFBVKOVx5S/eeq06MruEzsh9tm0ovFvv/e6SxK2WIxIw8lOzxgFQJE5iVQgWGX9lbQQyOTZMPxUYgqu9TrPo9EM/Hzh3PBdYhO8706oLHIn3J7FOHEW/XilxK5ykD+zOEsFeJpuui6T0/KH+Ay1Re2rWyXTQQA8CdMiwTar7pLJxAbR70NsGKgBOsh91SQxm7VbOG1v37Z+kI2DtfPhD7h8fBaG5HApTBaVQL+utsxu6VKz5M7STgN0aMjNd4FPiRLF6GjWJ+wSkQOZoJl1wxR6LCDldBhEKbC5148goN+KrD0HjUlheMlGP5LiN03h64KYck1xa0e7nRWPOG5sZ2EUy9hgm98tsZg5uR8n0Ywe9a3JeP9o+SBnpPpixYEIb07EswKuUF2VaM= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2020 14:32:00.2568 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b1b69f5-e6db-4d12-5a21-08d7fb3839cc X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1715 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [Bob] https://edk2.groups.io/g/devel/message/58782 I'd prefer the option 2#. I think that is the easiest way to meet the requi= rement. Since the aml file is the definite output of asl file, we can use i= t to descript the dependency relationship between c source file and asl sou= rce code. [Pierre] We have found what might be a better way to address the issue. If not conve= nient, we can still follow the option 2# that we discussed. Regards, Pierre -----Original Message----- From: PierreGondois =20 Sent: Monday, May 18, 2020 3:11 PM To: devel@edk2.groups.io Cc: Pierre Gondois ; bob.c.feng@intel.com; liming.g= ao@intel.com; Sami Mujawar ; Tomas Pilar ; nd Subject: [PATCH v1 0/3] Compile AML bytecode array into OBJ file Following the BZ at https://bugzilla.tianocore.org/show_bug.cgi?id=3D2425 This patch serie is a another way to solve the dependency of C files over A= SL files. With this new method, the dependency is resolved at the linking s= tage. The last method to solve this dependency was to add the possibility to modi= fy INF files to depict such a dependency. This method was not accepted. The= discussion is available at https://edk2.groups.io/g/devel/topic/72655342#5= 6658 The last patch modifying the INF specification and INF parsing are availabl= e at: https://edk2.groups.io/g/devel/topic/72655342#56658 https://edk2.groups.io/g/devel/topic/72656060#56662 Pierre Gondois (3): BaseTools: Generate multiple rules when multiple output files BaseTools: Rename AmlToHex script to AmlToC BaseTools: Compile AML bytecode arrays into .obj file BaseTools/BinWrappers/PosixLike/{AmlToHex =3D> AmlToC} | 28 = +++---- BaseTools/BinWrappers/WindowsLike/{AmlToHex.bat =3D> AmlToC.bat} | 0 BaseTools/Conf/build_rule.template | 15 ++= +- BaseTools/Source/Python/{AmlToHex/AmlToHex.py =3D> AmlToC/AmlToC.py} | 82 = ++++++++------------ BaseTools/Source/Python/AutoGen/GenMake.py | 6 ++ BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 40 ++= +++----- 6 files changed, 86 insertions(+), 85 deletions(-) rename BaseTools/BinWr= appers/PosixLike/{AmlToHex =3D> AmlToC} (97%) rename BaseTools/BinWrappers= /WindowsLike/{AmlToHex.bat =3D> AmlToC.bat} (100%) rename BaseTools/Source= /Python/{AmlToHex/AmlToHex.py =3D> AmlToC/AmlToC.py} (52%) -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'