dist: Also support declared directories.

When a target's default outputs include a declared directory
via ctx.actions.declare_directory, copy everything inside that
declared directory. Don't ignore directories.

The directory structure inside the declared directory is kept,
regardless of the --flat option. This is because the directory
itself is treated as an output, not its contents.

Test: bazel run //common:kernel_aarch64_abi_dist
Change-Id: Ib6bbd135cfb62be4df84b915bd2266b950e8f731
1 file changed
tree: bbf2e99eb972914e6a8fe9ee9f6a452e68d3e626
  1. dist/
  2. docs/
  3. OWNERS
  4. 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.