Skip to content

Commit

Permalink
Make sure all BUILD files have package( definitions.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim 'mithro' Ansell <[email protected]>
  • Loading branch information
mithro committed Nov 20, 2023
1 parent 3e813af commit 0419994
Show file tree
Hide file tree
Showing 73 changed files with 335 additions and 27 deletions.
5 changes: 4 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Empty BUILD file, just to make this directory a Bazel package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions cocotb/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

load("@rules_python//python:defs.bzl", "py_binary")

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

py_binary(
name = "cocotb_wrapper",
srcs = ["cocotb_wrapper.py"],
Expand Down
5 changes: 5 additions & 0 deletions cocotb/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ load("@rules_hdl_pip_deps//:requirements.bzl", "requirement")
load("//cocotb:cocotb.bzl", "cocotb_test")
load("//verilog:providers.bzl", "verilog_library")

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

verilog_library(
name = "counter",
srcs = ["counter.v"],
Expand Down
5 changes: 5 additions & 0 deletions dependency_support/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
load("@bazel_skylib//rules:write_file.bzl", "write_file")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

compile_pip_requirements(name = "pip_requirements")

genrule(
Expand Down
2 changes: 2 additions & 0 deletions dependency_support/at_clifford_icestorm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
licenses = ["notice"], # Apache 2.0
)

Expand Down
5 changes: 4 additions & 1 deletion dependency_support/at_clifford_yosys/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Needed to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/bazel_skylib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/boost/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Needed to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/com_github_fmtlib_fmt/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/com_github_gabime_spdlog/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/com_github_libbacktrace/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

exports_files([
"config.h",
"backtrace-supported.h",
Expand Down
5 changes: 5 additions & 0 deletions dependency_support/com_github_ninja_build_ninja/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/com_github_quantamhd_lemon/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

exports_files([
"config.h",
])
5 changes: 5 additions & 0 deletions dependency_support/com_github_westes_flex/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["notice"]) # BSD

exports_files([
Expand Down
5 changes: 4 additions & 1 deletion dependency_support/com_github_yosyshq_nextpnr/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Needed to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/com_github_yosyshq_prjtrellis/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["notice"])

exports_files([
Expand Down
5 changes: 4 additions & 1 deletion dependency_support/com_github_yosyshq_prjtrellis_db/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/com_google_absl/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/com_google_googletest/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/com_google_ortools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/com_google_protobuf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/com_google_skywater_pdk/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["notice"])

exports_files([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
load("//pdk:open_road_configuration.bzl", "open_road_pdk_configuration")

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

exports_files([
"pdk.patch",
"fill.json", # Imported from OpenROAD-flow-scripts on 24.07.2023 at 6ec980e1d49a1a8dcdd1e25ed81255b4bb8285c8 from: https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/blob/6ec980e1d49a1a8dcdd1e25ed81255b4bb8285c8/flow/platforms/sky130hd/fill.json
Expand Down
5 changes: 5 additions & 0 deletions dependency_support/com_icarus_iverilog/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["restricted"]) # GPLv2

exports_files([
Expand Down
5 changes: 5 additions & 0 deletions dependency_support/com_opencircuitdesign_magic/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

exports_files([
"magic_version.c",
])
5 changes: 4 additions & 1 deletion dependency_support/com_opencircuitdesign_netgen/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/edu_berkeley_abc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/embedded_python_interpreter/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
load("@rules_cc//cc:defs.bzl", "cc_import")
load("@rules_python//python:defs.bzl", "py_binary")

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

py_binary(
name = "print_libpython_path",
srcs = ["print_libpython_path.py"],
Expand Down
5 changes: 5 additions & 0 deletions dependency_support/net_invisible_island_ncurses/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["notice"])

exports_files([
Expand Down
5 changes: 4 additions & 1 deletion dependency_support/net_sourceforge_ngspice/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/net_zlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 4 additions & 1 deletion dependency_support/net_zlib/zlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Required to make this a package.
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/org_fftw/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

exports_files([
"link_test.cc",
])
5 changes: 5 additions & 0 deletions dependency_support/org_gnu_bison/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["restricted"]) # GPLv3

exports_files([
Expand Down
4 changes: 4 additions & 0 deletions dependency_support/org_gnu_glpk/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
# limitations under the License.

# GLPK package
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)
5 changes: 5 additions & 0 deletions dependency_support/org_gnu_gnulib/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2021 the rules_hdl authors

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["restricted"]) # GPL-2.0-or-later
5 changes: 5 additions & 0 deletions dependency_support/org_gnu_gperf/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["restricted"]) # GPLv3
5 changes: 5 additions & 0 deletions dependency_support/org_gnu_m4/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["restricted"]) # GPLv3
5 changes: 5 additions & 0 deletions dependency_support/org_gnu_readline/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["notice"])

exports_files([
Expand Down
Loading

0 comments on commit 0419994

Please sign in to comment.