Unverified Commit 1bf1c7a2 authored by Ryan Burns's avatar Ryan Burns Committed by GitHub
Browse files

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

 lib/systems: add exec format inspection attrs
parents 51b86cad 5cbd74e4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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.