You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Building a kernel extension for macOS using bazel #2561
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.
Activity
brentleyjones commentedon Oct 21, 2024
I haven't used it personally, but the
macos_kernel_extensionrule exists.