dist: add support for configurable file permissions

Current code will copy files from Bazel's output
directory to the dist_dir and simultaneously modify
the file permissions to the default umask (644).

If we simply preserve Bazel's output file permissions,
all files have umask 555 due to an upstream Bazel bug:
https://github.com/bazelbuild/bazel/issues/5588.

Some files in the distribution directory should be
executable and others should be readable/writeable.
This adds the ability for the user to choose either
Bazel's default permissions, or the default umask,
as well as the option to apply permissions based on
filename glob-matching.

Bug: 244215515
Change-Id: Ic04cb38a0723221b25c5872cc213818bf08c8941
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2 files changed
tree: 0a156b44930307ddaa9781040ba62646ea5f8b4d
  1. dist/
  2. docs/
  3. exec/
  4. test_mappings/
  5. workspace/
  6. OWNERS
  7. 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.