Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package( rules to all BUILD files #227

Merged
merged 4 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,18 @@
# 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.
load("@rules_license//rules:license.bzl", "license")

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

license(
name = "package_license",
package_name = "bazel_rules_hdl",
)

licenses(["notice"])

exports_files(["LICENSE"])
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",
])
7 changes: 6 additions & 1 deletion dependency_support/com_github_westes_flex/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

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

licenses(["notice"])

exports_files([
"wc_test.sh",
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
7 changes: 6 additions & 1 deletion dependency_support/com_icarus_iverilog/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

licenses(["restricted"]) # GPLv2
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["restricted"])

exports_files([
"hello.v",
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"],
)
2 changes: 2 additions & 0 deletions dependency_support/dependency_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ load("@rules_hdl//dependency_support/org_theopenroadproject_asap7sc6t_26:org_the
load("@rules_hdl//dependency_support/org_theopenroadproject_asap7sc7p5t_27:org_theopenroadproject_asap7sc7p5t_27.bzl", "org_theopenroadproject_asap7sc7p5t_27")
load("@rules_hdl//dependency_support/org_theopenroadproject_asap7sc7p5t_28:org_theopenroadproject_asap7sc7p5t_28.bzl", "org_theopenroadproject_asap7sc7p5t_28")
load("@rules_hdl//dependency_support/pybind11:pybind11.bzl", "pybind11")
load("@rules_hdl//dependency_support/rules_license:rules_license.bzl", "rules_license")
load("@rules_hdl//dependency_support/tk_tcl:tk_tcl.bzl", "tk_tcl")
load("@rules_hdl//dependency_support/verilator:verilator.bzl", "verilator")

Expand Down Expand Up @@ -111,5 +112,6 @@ def dependency_support():
org_theopenroadproject_asap7sc7p5t_27()
org_theopenroadproject_asap7sc7p5t_28()
pybind11()
rules_license()
tk_tcl()
verilator()
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",
])
7 changes: 6 additions & 1 deletion dependency_support/org_gnu_bison/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

licenses(["restricted"]) # GPLv3
package(
default_applicable_licenses = ["//:package_license"],
default_visibility = ["//visibility:private"],
)

licenses(["restricted"])

exports_files([
"calc_test.sh",
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"],
)
Loading
Loading