Lines Matching refs:b
99 func (b *bootimg) DepsMutator(ctx android.BottomUpMutatorContext) {
100 ramdisk := proptools.String(b.properties.Ramdisk_module)
106 func (b *bootimg) installFileName() string {
107 return proptools.StringDefault(b.properties.Stem, b.BaseModuleName()+".img")
110 func (b *bootimg) partitionName() string {
111 return proptools.StringDefault(b.properties.Partition_name, b.BaseModuleName())
114 func (b *bootimg) GenerateAndroidBuildActions(ctx android.ModuleContext) {
115 vendor := proptools.Bool(b.properties.Vendor_boot)
116 unsignedOutput := b.buildBootImage(ctx, vendor)
118 if proptools.Bool(b.properties.Use_avb) {
119 b.output = b.signImage(ctx, unsignedOutput)
121 b.output = unsignedOutput
124 b.installDir = android.PathForModuleInstall(ctx, "etc")
125 ctx.InstallFile(b.installDir, b.installFileName(), b.output)
128 func (b *bootimg) buildBootImage(ctx android.ModuleContext, vendor bool) android.OutputPath {
129 output := android.PathForModuleOut(ctx, "unsigned", b.installFileName()).OutputPath
134 kernel := proptools.String(b.properties.Kernel_prebuilt)
147 dtbName := proptools.String(b.properties.Dtb_prebuilt)
155 cmdline := proptools.String(b.properties.Cmdline)
164 headerVersion := proptools.String(b.properties.Header_version)
180 ramdiskName := proptools.String(b.properties.Ramdisk_module)
197 bootconfig := proptools.String(b.properties.Bootconfig)
216 builder.Build("build_bootimg", fmt.Sprintf("Creating %s", b.BaseModuleName()))
220 func (b *bootimg) signImage(ctx android.ModuleContext, unsignedImage android.OutputPath) android.Ou…
221 propFile, toolDeps := b.buildPropFile(ctx)
223 output := android.PathForModuleOut(ctx, b.installFileName()).OutputPath
231 builder.Build("sign_bootimg", fmt.Sprintf("Signing %s", b.BaseModuleName()))
235 func (b *bootimg) buildPropFile(ctx android.ModuleContext) (propFile android.OutputPath, toolDeps a…
248 algorithm := proptools.StringDefault(b.properties.Avb_algorithm, "SHA256_RSA4096")
250 key := android.PathForModuleSrc(ctx, proptools.String(b.properties.Avb_private_key))
253 partitionName := proptools.StringDefault(b.properties.Partition_name, b.Name())
264 func (b *bootimg) AndroidMkEntries() []android.AndroidMkEntries {
267 OutputFile: android.OptionalPathForPath(b.output),
270 entries.SetString("LOCAL_MODULE_PATH", b.installDir.ToMakePath().String())
271 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", b.installFileName())
279 func (b *bootimg) OutputPath() android.Path {
280 return b.output
283 func (b *bootimg) SignedOutputPath() android.Path {
284 if proptools.Bool(b.properties.Use_avb) {
285 return b.OutputPath()
293 func (b *bootimg) OutputFiles(tag string) (android.Paths, error) {
295 return []android.Path{b.output}, nil