Skip to content

Building a kernel extension for macOS using bazel #2561

Closed

Description

@YungRaj

Hey all,

Is there a way to build kernel extensions for macOS using bazel?

I want to port https://github.com/YungRaj/MacRootKit to bazel so that I don't have to deal with the stress that comes with using another build system such as cmake. Any ideas?

I know that genrule()'s could probably work in building the .kext artifact but I think the major challenge is getting the Xcode frameworks and tooling to play nicely and ensuring that all the relevant compiler and linker flags (which I use here https://github.com/YungRaj/MacRootKit/blob/main/make_kext.mk) are included.

Thanks

Activity

  1. brentleyjones commented on Oct 21, 2024

    @brentleyjones
    Collaborator

    I haven't used it personally, but the macos_kernel_extension rule exists.

  2. locked and limited conversation to collaborators on Oct 21, 2024
  3. converted this issue into a discussion #2562 on Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions