| "github.com/google/blueprint/proptools" |
| android.RegisterModuleType("display_go_defaults_sm7250", display_DefaultsFactory) |
| func display_DefaultsFactory() android.Module { |
| module := cc.DefaultsFactory() |
| android.AddLoadHook(module, display_Defaults) |
| func display_Defaults(ctx android.LoadHookContext) { |
| p.Enabled = display_globalDefaults(ctx) |
| func display_globalDefaults(ctx android.LoadHookContext) *bool { |
| if android.ExistentPathForSource(ctx, "vendor/qcom/sm7250/codeaurora/commonsys-intf/display/Android.bp").Valid() == false { |
| module_enabled = proptools.BoolPtr(false) |