diff options
Diffstat (limited to 'bpf/bpf.go')
-rw-r--r-- | bpf/bpf.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bpf/bpf.go b/bpf/bpf.go index 8142f10a5..fa1a84d04 100644 --- a/bpf/bpf.go +++ b/bpf/bpf.go @@ -26,7 +26,7 @@ import ( ) func init() { - android.RegisterModuleType("bpf", BpfFactory) + registerBpfBuildComponents(android.InitRegistrationContext) pctx.Import("android/soong/cc/config") } @@ -43,6 +43,12 @@ var ( "ccCmd", "cFlags") ) +func registerBpfBuildComponents(ctx android.RegistrationContext) { + ctx.RegisterModuleType("bpf", BpfFactory) +} + +var PrepareForTestWithBpf = android.FixtureRegisterWithContext(registerBpfBuildComponents) + // BpfModule interface is used by the apex package to gather information from a bpf module. type BpfModule interface { android.Module |