copy_to_dist: Add support for --flat

When passing --flat, subdirectories in the dist_manifest are ignored,
effectively stripping off any leading subdirectories when placing the
files in the dist dir. This is to avoid unneccssary deep directory
hierarchies in distribution directories that are just caused by the
location of the build rule definition.

Bug: 197842210
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I8a4d11f66d7ab80748d1fdb428809254ff350869
1 file changed
tree: dafbbdfd5be59dde04d001ae5fcede0c954e046f
  1. dist/
  2. OWNERS
  3. README.md
README.md

Bazel Common Rules

This directory contains common Bazel rules and tools shared between the Platform and Kernel builds.

For platform-specific rules, place them in the platform checkout's //build/bazel/rules directory.

For kernel-specific rules, place them in kernel checkout's //build/kleaf directory.