Lines Matching refs:attr

39     renamed = ctx.actions.declare_file(ctx.attr.name + "/python3")
48 if ctx.attr.type != "system":
54 du = ctx.actions.declare_file(ctx.attr.name + "/du")
60 find = ctx.actions.declare_file(ctx.attr.name + "/find")
69 output_image = ctx.actions.declare_file(ctx.attr.name + "/" + ctx.attr.type + ".img")
71 # TODO(b/297269187) Fill this out with the contents of ctx.attr.deps
79 if ctx.attr.base_staging_dir:
82 bbipi = ctx.attr._build_broken_incorrect_partition_images[BuildSettingInfo].value
83 if ctx.attr.base_staging_dir_file_list and not bbipi:
87 if "{BUILD_NUMBER}" in ctx.attr.image_properties:
89 for line in ctx.attr.image_properties.splitlines():
93 image_info_contents = ctx.attr.image_properties + "\n\n"
95 if ctx.attr.root_dir:
98 if ctx.attr.selinux_file_contexts:
100 … image_info_contents += ctx.attr.type + "_selinux_fc=" + ctx.file.selinux_file_contexts.path + "\n"
102 if not ctx.attr.avb_enable:
103 if ctx.attr.avb_add_hashtree_footer_args:
105 if ctx.attr.avb_key:
107 if ctx.attr.avb_algorithm:
109 if ctx.attr.avb_rollback_index >= 0:
111 if ctx.attr.avb_rollback_index_location >= 0:
115 image_info_contents += "avb_" + ctx.attr.type + "_hashtree_enable=true" + "\n"
116 footer_args = ctx.attr.avb_add_hashtree_footer_args
119 …footer_args += "--prop com.android.build.system.os_version:" + ctx.attr._platform_version_last_sta…
120 …footer_args += " --prop com.android.build.system.fingerprint:" + ctx.attr._build_fingerprint[Build…
121 …footer_args += " --prop com.android.build.system.security_patch:" + ctx.attr._platform_security_pa…
122 if not ctx.attr.type.startswith("vbmeta_") and ctx.attr.avb_rollback_index >= 0:
123 footer_args += " --rollback_index " + str(ctx.attr.avb_rollback_index)
124 … image_info_contents += "avb_" + ctx.attr.type + "_add_hashtree_footer_args=" + footer_args + "\n"
125 if ctx.attr.avb_key:
126 … image_info_contents += "avb_" + ctx.attr.type + "_key_path=" + ctx.file.avb_key.path + "\n"
128 … image_info_contents += "avb_" + ctx.attr.type + "_algorithm=" + ctx.attr.avb_algorithm + "\n"
129 if ctx.attr.avb_rollback_index_location >= 0:
130 …image_info_contents += "avb_" + ctx.attr.type + "_rollback_index_location=" + str(ctx.attr.avb_rol…
132 …image_info_without_build_number = ctx.actions.declare_file(ctx.attr.name + "/image_info_without_bu…
134 image_info = ctx.actions.declare_file(ctx.attr.name + "/image_info.txt")
152 …staging_dir_builder_options_file = ctx.actions.declare_file(ctx.attr.name + "/staging_dir_builder_…
213 "type": attr.string(
217 "image_properties": attr.string(
220 "avb_enable": attr.bool(),
221 "avb_add_hashtree_footer_args": attr.string(),
222 "avb_key": attr.label(allow_single_file = True),
223 "avb_algorithm": attr.string(),
224 "avb_rollback_index": attr.int(default = -1),
225 "avb_rollback_index_location": attr.int(default = -1),
226 "base_staging_dir": attr.label(
230 "base_staging_dir_file_list": attr.label(
234 "deps": attr.label_list(),
235 "root_dir": attr.label(
239 "selinux_file_contexts": attr.label(
243 "_build_broken_incorrect_partition_images": attr.label(
246 "_build_fingerprint": attr.label(
249 "_platform_version_last_stable": attr.label(
252 "_platform_security_patch": attr.label(
255 "_staging_dir_builder": attr.label(
261 "_status_file_reader": attr.label(