-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[metalos][vm] remove arch from kernel name
Summary: It's hard to maintain when we have arch in kernel target name. It needs to be passed around all the time downstream. In reality, there is only one kernel per version for each arch (i.e., target platform). `select` and `target_compatible_with` can perfectly describe the arch compatibility. Thus remove arch from the name so we no longer need it at evaluation time. This enables transparent aarch64 VM support based on kernel compatibility. Meanwhile, getting rid of `arch` at evaluation time sidesteps autodeps limitation so that we no longer need to disable it (separate patch). The burden of setting compatibility properly rests on the owner that creates the kernel target. There is no way for us to know if a specific kernel version is supposed to exist or work on a specific arch when making up the VM targets. For example, even if we built 5.12 kernels for aarch64, they simply wouldn't boot. Meanwhile we don't dual build kernels yet. The creator of the kernel target is at the best place to decide that and its compatibility will be inherited by downstream targets automatically. Test Plan: This has to rely on CI to catch any missing places need to be updated. Reviewed By: aijayadams Differential Revision: D51861953 fbshipit-source-id: 557f6fe64190056d0817946a8bad9c323a1e9916
- Loading branch information
1 parent
f178b39
commit cbb2387
Showing
4 changed files
with
10 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters