Merge pull request #146847 from r-burns/inspect-exec-format

lib/systems: add exec format inspection attrs
This commit is contained in:
Ryan Burns 2024-01-07 16:49:26 -08:00 committed by GitHub
commit 1bf1c7a244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,9 @@ rec {
{ cpu = { family = "riscv"; }; }
{ cpu = { family = "x86"; }; }
];
isElf = { kernel.execFormat = execFormats.elf; };
isMacho = { kernel.execFormat = execFormats.macho; };
};
# given two patterns, return a pattern which is their logical AND.