blob: 18b76aac08b7574ce5b0db3dc68330019d9cc178 [file]
# Copyright 2024 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Common product configurations and aibs."""
load(
"@fuchsia_sdk//fuchsia:assembly.bzl",
"BUILD_TYPES",
"fuchsia_platform_artifacts",
"fuchsia_product_configuration",
"fuchsia_repository_keys",
)
package(default_visibility = ["//products:__subpackages__"])
genrule(
name = "update_version_file",
outs = ["version_file.txt"],
cmd = "date +%s > $@",
)
fuchsia_repository_keys(
name = "keys",
keys = [
"root.json",
"snapshot.json",
"targets.json",
"timestamp.json",
],
)
# A testing product config with the standard feature set.
fuchsia_product_configuration(
name = "test_product",
product_config_json = {
"platform": {
"build_type": BUILD_TYPES.ENG,
},
"product": {
"build_info": {
"name": "test_product",
"version": "LABEL(version_file.txt)",
"jiri_snapshot": "LABEL(jiri_snapshot.xml)",
"latest_commit_date": "LABEL(version_file.txt)",
"minimum_utc_stamp": "LABEL(version_file.txt)",
},
},
},
)
# Prebuilt platform AIBs.
fuchsia_platform_artifacts(
name = "platform_aibs",
files = "@fuchsia_platform//:all_files",
)