blob: 398f08e96018ec6ca5af844e7d54045ba00d932f [file] [log] [blame] [edit]
# AUTO-GENERATED FILE. DO NOT EDIT.
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_filegroup", "pkg_files", "pkg_mkdirs", "pkg_mklink", "strip_prefix")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
pkg_files(
name = "__files_regular__",
srcs = glob(
["**"],
exclude = [
"another symlink",
"symlink",
"BUILD.bazel",
"BUILD",
"WORKSPACE.bazel",
"WORKSPACE",
],
),
attributes = pkg_attributes(
mode = "0755",
),
renames = {
},
strip_prefix = strip_prefix.from_pkg(),
visibility = ["//visibility:private"],
)
pkg_mklink(
name = "__symlink__another%20symlink",
link_name = "another symlink",
target = "/path/to/another file",
visibility = ["//visibility:private"],
)
pkg_mklink(
name = "__symlink__symlink",
link_name = "symlink",
target = "/path/to/target",
visibility = ["//visibility:private"],
)
pkg_filegroup(
name = "__files__",
srcs = [
":__files_regular__",
":__symlink__another%20symlink",
":__symlink__symlink",
],
prefix = "/mnt/host/source/",
visibility = ["//visibility:private"],
)
pkg_tar(
name = "__tarball__",
srcs = [
":__files__",
],
compressor = "@//bazel/portage/repo_defs/zstd",
compressor_args = "--threads=0",
extension = "tar.zst",
visibility = ["//visibility:private"],
)
filegroup(
name = "__tarballs__",
srcs = [
":__tarball__",
],
visibility = [
"//internal/packages:__subpackages__",
"//internal/sources:__subpackages__",
],
)