From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.92.21.31]) by mx.groups.io with SMTP id smtpd.web10.1363.1601937379151238313 for ; Mon, 05 Oct 2020 15:36:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=ZGhyhtyz; spf=pass (domain: outlook.com, ip: 40.92.21.31, mailfrom: michael.kubacki@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UfLxHJortxFBNFVN7mET2MPgaazwEJzXf2kWW9c8Of7Ee14UHADXDSVUyuafPPt9pWouebnv/EeErHgXD7q9rUzYdZNXrVAmzslWz1dFXVnIE72kv4uTU8dTUk0m7Y1wjkUfQozR9DCTQXRhZeICOGUw1i535bsV0gNdxeBESWgBlcaN5+qr/ykkgdg2X9cV6uLwdwxl9LN8uY+UDojcV6UK6R3jUi3o/Y2oIpeTLdwl0Zb2JTCTHmJWh3Si3YJpaHIRzX85BWxkFWdzYpIFbJz/Bl1BGnRb1yI74gZeLq9fuVzYi5B7nQaPO0HoJXWDN3Ezm7xwoW/FiZCS8xXECQ== 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=eEcq0/PZJ+dqeALIWqoCT+Dd6aCg5L/CqhOyh9NGH+g=; b=N0jWQUPAqEb2hEgpIuwiQTNDFm3C0kcaVSLZfGbb3m9P3jdxtU4WonoeJd/tmS7EMnyAP/Gu68qN+1H0wGDecnCxeBiM7rMfWD4nWjZMwLDVfTDH5buR9cpwZ+dWeDUX9rweyW2bWJ/4zT+eHWSIQkfdgJFmncovaG3EaQ6JoYkKeeG1Qyf2lGRyD+ge6SwR7UCUWpqdtpRBO0Z138+d7U6bykaLqssEF4V+recKj9swebYL1yr4YZsWeg8p87ERg8I6PEBqNEKyQnDSgUbQBEvcsEV3RqY0qAX3qqPJHMpxxwTm0A6wC/17QddP1bQynzifhjH67ER1N8CyPr8Obg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none 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=eEcq0/PZJ+dqeALIWqoCT+Dd6aCg5L/CqhOyh9NGH+g=; b=ZGhyhtyzD0/30qrDiMmFOj89OxWSgJyVccmpkQ5yEJwys9SnDzQkbosiQoJCK9DIS1jvSIftacll4RWawkgHo0BUWU2Ik4EbhUuWS51RgwRu1+7bouKBduu+8Aj7PnC9b+Xs1iq6CN0xy2HHitXvqyUxM2Lcqn7QmmmZQ+qpf2elwxRay4nNtt3YNloNk27TYaSOlIGAH4LBzR4A+q950z7EJwf4A2szz89aQ6R9z7fHpHMXcXTENAvz6d1EmEoMinRrkkc5Ncw9Ys0b4ZpYbkYI6zZ5AGlcPJwEjMzctOE0ZNJs0PVGckOemmatxKPksHEFsWmF8cUCrvwXHmII+Q== Received: from BN8NAM12FT026.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::4b) by BN8NAM12HT113.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::373) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.14; Mon, 5 Oct 2020 22:36:17 +0000 Received: from MWHPR07MB3440.namprd07.prod.outlook.com (2a01:111:e400:fc66::48) by BN8NAM12FT026.mail.protection.outlook.com (2a01:111:e400:fc66::202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.13 via Frontend Transport; Mon, 5 Oct 2020 22:36:17 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:4A52F2DA41D0E88F8174E3607334FAE50B65B1C242894184914C1B377E9A140C;UpperCasedChecksum:4ECCC8D721DB0788442B32FADFDF0CAD033CF11CEA249417886C21C54E5C4894;SizeAsReceived:9422;Count:46 Received: from MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::eda9:ccc8:2ef:2471]) by MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::eda9:ccc8:2ef:2471%7]) with mapi id 15.20.3433.042; Mon, 5 Oct 2020 22:36:17 +0000 From: "Michael Kubacki" Subject: [edk2-platforms] [RFC] Compatibility Expectations in edk2-platforms To: "devel@edk2.groups.io" Cc: Leif Lindholm , Laszlo Ersek , Ard Biesheuvel , Ray Ni , Sai Chaganty , Eric Dong , Dandan Bi , Michael D Kinney , Kelly Steele , Zailiang Sun , Yi Qian , Chasel Chiu , Nate DeSimone , Agyeman Prince , Bob Feng , Liming Gao , Abner Chang , Daniel Schaefer , Gilbert Chen Message-ID: Date: Mon, 5 Oct 2020 15:36:17 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 X-TMN: [cF2r9USS3o3l770m8Kjcoa0QpcozbOqqU1sUXIl/j/GAOGqCWZfJWCSMcqSXmHrn] X-ClientProxiedBy: MWHPR03CA0024.namprd03.prod.outlook.com (2603:10b6:300:117::34) To MWHPR07MB3440.namprd07.prod.outlook.com (2603:10b6:301:69::28) Return-Path: michael.kubacki@outlook.com X-Microsoft-Original-Message-ID: <8d85f8aa-8834-9fc7-7575-9c61755578b5@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2001:4898:d8:39:24c0:28b8:eed4:b71b] (2001:4898:80e8:7:a4e1:28b8:eed4:b71b) by MWHPR03CA0024.namprd03.prod.outlook.com (2603:10b6:300:117::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.14 via Frontend Transport; Mon, 5 Oct 2020 22:36:16 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 4dec60f4-7e0a-4d12-0069-08d8697f12d5 X-MS-TrafficTypeDiagnostic: BN8NAM12HT113: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pc7NgEnp2LeKDnzEpLSNf0grWRnKErzNHJpUyTpmyibsk8oz1rUcGHQfLXeKPRWJUvq3HTfHbRWmfL66uFgHHugebESS8kJ7ngY0NlyU3l3fdSzPh/GFwRnvyHgXC0BunVXuMVOzJ5tH7ZoON1n9+6sITCi6kbQkyc5r+6NClrMz5w9Zc9416/fQn30ETbJ7e29PSWPIhp7UTUyVBIW3OrB8YLWQaYcsOq8bQjcVZbkSkfsdUAtywOg64P4BuoUi X-MS-Exchange-AntiSpam-MessageData: f7ETxDzfoiBfsLU5qw+7NjjdKAZ1Ac2ieB/BL8ZIiacWGnGU0hgABXXL8QxhYMiA6c810OOxpMUyhssiPBaFDHzGcLJnkgGB5G/o1SydJ9Ydt9b0Pirpf5iAlrw4SQeyXnnkm6+jp5+ZPhGyheGDfgdZ3xys6wPldJ4n/frChNqDcQmXORYadMiRQQr6Ijx7Yt3GT/W71qyi4sWoN3GHHg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4dec60f4-7e0a-4d12-0069-08d8697f12d5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2020 22:36:17.2653 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: BN8NAM12FT026.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM12HT113 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Hi all, First, I'd like to clarify that I completely support the development of open source edk2 platforms and this observation is only intended to suggest an improvement for interoperability with edk2 development and not to detract from the great work happening in open source platforms. There's currently an expectation that edk2-platforms must build with edk2/master. I'd like to address the present lack of infrastructure and uniformity in edk2-platforms that, in my opinion, makes this perpetually painful. 1. Inconsistent maintainer support * Some packages currently do not build. Some packages are not getting updated often. * Example: Last week I had to update Vlv2TbltDevicePkg which did not build. * Example: Many packages only document support for old toolchains. 2. Inconsistent toolchain support To build these according to instruction, a developer needs to install Visual Studio dating back to 2015 (though it is 2020), and multiple versions of iASL, NASM, a separate host OS for Linux/Windows builds, etc. Just a few quick examples: * Vlv2TbltDevicePkg documented supported toolchains: https://github.com/tianocore/edk2-platforms/blob/master/Platform/Intel/Vlv2TbltDevicePkg/Readme.md * Compilers: VS13, VS15 * Windows DDK: 3790.1830 in C:\WINDDK\3790.1830 * Python: 3 * iASL: iasl-win-20160527 in C:\ASL * NASM: 2.12.02 in C:\NASM * OpenSSL: Latest version in C:\Openssl (add OPENSSL_PATH) * Platform/ARM supported toolchains: https://github.com/tianocore/edk2-platforms/blob/master/Platform/ARM/Readme.md * OS: A 32-bit or 64-bit Linux host machine. * Compilers: Visual Studio is not officially supported, experimental support can be found here: [https://git.linaro.org/people/leif.lindholm/edk2.git/log/?h=aarch64-vs] * Platform/Intel (MinPlatformPkg): * Compilers: VS15 * Python: 3.7.3 * iASL compiler: latest in C:\ASL * NASM: latest in C:\NASM 3. Inconsistent build requirements Many builds use the "build" command. Others have script wrappers with unique parameters. Platforms are free to choose what they do and do not support and developers have to figure it out. 4. Lack of build health indicators Basically, there is no public CI across platforms. It is not clear exactly what platform builds are broken, what configurations they are broken against, how long they have been broken, etc. 6. Lack of community testing capability An edk2 contributor cannot be expected to understand the nuances of every platform in edk2-platforms to always make the right integration decision for a change in edk2. Platform objectives like performance and security vary and are not clearly documented. In turn, this slows progress in edk2. In many cases, edk2 contributors do not have a way to check for runtime regressions in edk2-platforms as they do not possess the platform they're requested to update. Within the purview of an individual edk2-platforms maintainer, these problems are relatively insignificant, largely due to the somewhat isolated nature of platform development. However, it does not scale well to edk2 contributors that need to build and test N platforms. While community alignment on build tools, toolchain support, keeping current, and other areas would help, I believe many of the concerns can be mitigated with publicly accessible CI that proves current build support, build health, build commands, allows developer build testing, and potentially even device boot regression testing for those without platforms on hand. Without such support, I believe platforms can only have a dependency on edk2 (not vice versa). Maintainers move their edk2 pointer when they have verified that their platform properly integrates the latest changes. This is relatively common in relationships with package-based dependencies and how this is typically handled outside edk2-platforms. I believe this is reasonable even with public CI in place unless maintainers understand and accept the challenges and additional support that is involved with being on edk2/master. I just wanted to give my observation of some recent challenges and see if the community can align on some practices to help simplify edk2-platforms integration and testing. Thanks, Michael