diff --git a/bazel/rules.bzl b/bazel/rules.bzl index 132de27..b2c66d9 100644 --- a/bazel/rules.bzl +++ b/bazel/rules.bzl @@ -1,6 +1,6 @@ # Copyright 2018-present Open Networking Foundation # SPDX-License-Identifier: Apache-2.0 -load("//bazel:rules/library_rule.bzl", _target_cc_library = "target_cc_library") +load("//bazel:rules/library_rule.bzl", _target_cc_library = "krnlmon_cc_library") -target_cc_library = _target_cc_library +krnlmon_cc_library = _target_cc_library diff --git a/bazel/rules/library_rule.bzl b/bazel/rules/library_rule.bzl index e0e4351..895a2b3 100644 --- a/bazel/rules/library_rule.bzl +++ b/bazel/rules/library_rule.bzl @@ -7,7 +7,7 @@ load("@rules_cc//cc:defs.bzl", "cc_library") load("//bazel:defs.bzl", "TARGET_DEFINES") -def target_cc_library( +def krnlmon_cc_library( name, deps = None, srcs = None, @@ -23,14 +23,13 @@ def target_cc_library( visibility = None, arches = None, linkopts = []): - cc_library( name = name, deps = deps, srcs = srcs, data = data, hdrs = hdrs, -# alwayslink = alwayslink, + # alwayslink = alwayslink, copts = copts, defines = TARGET_DEFINES + defines, include_prefix = include_prefix, diff --git a/switchapi/BUILD.bazel b/switchapi/BUILD.bazel index e2cb564..f004346 100644 --- a/switchapi/BUILD.bazel +++ b/switchapi/BUILD.bazel @@ -5,7 +5,7 @@ load("@rules_cc//cc:defs.bzl", "cc_library") load("//bazel:defs.bzl", "NO_MATCH_ERROR") -load("//bazel:rules.bzl", "target_cc_library") +load("//bazel:rules.bzl", "krnlmon_cc_library") load("//bazel:sde.bzl", "TARGET_SDE") package(default_visibility = ["//visibility:public"]) @@ -18,7 +18,7 @@ PD_ROUTING_DEPS = select( no_match_error = NO_MATCH_ERROR, ) -target_cc_library( +krnlmon_cc_library( name = "switch_base_types", hdrs = ["switch_base_types.h"], deps = [ @@ -28,7 +28,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_config", hdrs = ["switch_config.h"], deps = [ @@ -39,7 +39,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_config_int", hdrs = ["switch_config_int.h"], deps = [ @@ -50,7 +50,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_device", hdrs = ["switch_device.h"], deps = [ @@ -59,7 +59,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_device_int", hdrs = ["switch_device_int.h"], deps = [ @@ -67,7 +67,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_fdb", hdrs = ["switch_fdb.h"], deps = [ @@ -77,7 +77,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_handle", hdrs = ["switch_handle.h"], deps = [ @@ -87,7 +87,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_handle_int", hdrs = ["switch_handle_int.h"], deps = [ @@ -95,7 +95,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_id", hdrs = ["switch_id.h"], deps = [ @@ -103,7 +103,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_interface", hdrs = ["switch_interface.h"], deps = [ @@ -113,7 +113,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_internal", hdrs = ["switch_internal.h"], deps = [ @@ -126,7 +126,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_l3", hdrs = ["switch_l3.h"], deps = [ @@ -136,7 +136,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_l3_int", hdrs = ["switch_l3_int.h"], deps = [ @@ -144,7 +144,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_lag", hdrs = ["switch_lag.h"], deps = [ @@ -153,7 +153,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_neighbor", hdrs = ["switch_neighbor.h"], deps = [ @@ -163,7 +163,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_neighbor_int", hdrs = ["switch_neighbor_int.h"], deps = [ @@ -173,7 +173,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_nhop", hdrs = ["switch_nhop.h"], deps = [ @@ -183,7 +183,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_nhop_int", hdrs = ["switch_nhop_int.h"], deps = [ @@ -193,18 +193,18 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_routing", hdrs = ["switch_pd_routing.h"], deps = PD_ROUTING_DEPS, ) -target_cc_library( +krnlmon_cc_library( name = "switch_port_int", hdrs = ["switch_port_int.h"], ) -target_cc_library( +krnlmon_cc_library( name = "switch_rif", hdrs = ["switch_rif.h"], deps = [ @@ -214,7 +214,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_rif_int", hdrs = ["switch_rif_int.h"], deps = [ @@ -224,7 +224,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_rmac", hdrs = ["switch_rmac.h"], deps = [ @@ -233,7 +233,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_rmac_int", hdrs = ["switch_rmac_int.h"], deps = [ @@ -243,7 +243,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_status", hdrs = ["switch_status.h"], deps = [ @@ -251,7 +251,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_table", hdrs = ["switch_table.h"], deps = [ @@ -260,12 +260,12 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_tdi", hdrs = ["switch_tdi.h"], ) -target_cc_library( +krnlmon_cc_library( name = "switch_tunnel", hdrs = ["switch_tunnel.h"], deps = [ @@ -276,7 +276,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_types_int", hdrs = ["switch_types_int.h"], deps = [ @@ -285,7 +285,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_vrf", hdrs = ["switch_vrf.h"], deps = [ diff --git a/switchapi/dpdk/BUILD.bazel b/switchapi/dpdk/BUILD.bazel index 530ffbb..07bffe4 100644 --- a/switchapi/dpdk/BUILD.bazel +++ b/switchapi/dpdk/BUILD.bazel @@ -4,11 +4,11 @@ # SPDX-License-Identifier: Apache-2.0 load("@rules_cc//cc:defs.bzl", "cc_library") -load("//bazel:rules.bzl", "target_cc_library") +load("//bazel:rules.bzl", "krnlmon_cc_library") package(default_visibility = ["//visibility:public"]) -target_cc_library( +krnlmon_cc_library( name = "switch_config", srcs = ["switch_config.c"], deps = [ @@ -19,7 +19,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_device", srcs = ["switch_device.c"], deps = [ @@ -37,7 +37,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_fdb", srcs = ["switch_fdb.c"], deps = [ @@ -46,7 +46,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_handle", srcs = ["switch_handle.c"], deps = [ @@ -62,7 +62,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_id", srcs = ["switch_id.c"], deps = [ @@ -74,7 +74,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_l3", srcs = ["switch_l3.c"], deps = [ @@ -88,7 +88,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_neighbor", srcs = ["switch_neighbor.c"], deps = [ @@ -100,7 +100,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_nhop", srcs = ["switch_nhop.c"], deps = [ @@ -116,7 +116,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_fdb", srcs = ["switch_pd_fdb.c"], hdrs = ["switch_pd_fdb.h"], @@ -133,17 +133,17 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_p4_name_mapping", hdrs = ["switch_pd_p4_name_mapping.h"], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_routing_hdr", hdrs = ["switch_pd_routing.h"], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_routing", srcs = ["switch_pd_routing.c"], deps = [ @@ -161,7 +161,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_tunnel", srcs = ["switch_pd_tunnel.c"], hdrs = ["switch_pd_tunnel.h"], @@ -175,7 +175,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_utils", srcs = ["switch_pd_utils.c"], hdrs = ["switch_pd_utils.h"], @@ -193,7 +193,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_rif", srcs = ["switch_rif.c"], deps = [ @@ -203,7 +203,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_rmac", srcs = ["switch_rmac.c"], deps = [ @@ -215,7 +215,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_table", srcs = ["switch_table.c"], deps = [ @@ -227,7 +227,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_tunnel", srcs = ["switch_tunnel.c"], deps = [ @@ -239,7 +239,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_vrf", srcs = ["switch_vrf.c"], deps = [ @@ -250,7 +250,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchapi_utils", srcs = ["switchapi_utils.c"], deps = [ diff --git a/switchapi/es2k/BUILD.bazel b/switchapi/es2k/BUILD.bazel index 0fa5cd8..4f2215e 100644 --- a/switchapi/es2k/BUILD.bazel +++ b/switchapi/es2k/BUILD.bazel @@ -4,11 +4,11 @@ # SPDX-License-Identifier: Apache-2.0 load("@rules_cc//cc:defs.bzl", "cc_library") -load("//bazel:rules.bzl", "target_cc_library") +load("//bazel:rules.bzl", "krnlmon_cc_library") package(default_visibility = ["//visibility:public"]) -target_cc_library( +krnlmon_cc_library( name = "switch_config", srcs = ["switch_config.c"], deps = [ @@ -19,7 +19,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_device", srcs = ["switch_device.c"], deps = [ @@ -37,7 +37,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_fdb", srcs = ["switch_fdb.c"], deps = [ @@ -46,7 +46,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_handle", srcs = ["switch_handle.c"], deps = [ @@ -62,7 +62,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_id", srcs = ["switch_id.c"], deps = [ @@ -74,7 +74,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_l3", srcs = ["switch_l3.c"], deps = [ @@ -88,7 +88,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_lag", srcs = ["switch_lag.c"], deps = [ @@ -97,7 +97,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_neighbor", srcs = ["switch_neighbor.c"], deps = [ @@ -108,7 +108,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_nhop", srcs = ["switch_nhop.c"], deps = [ @@ -124,7 +124,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_fdb", srcs = ["switch_pd_fdb.c"], hdrs = ["switch_pd_fdb.h"], @@ -141,7 +141,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_lag", srcs = ["switch_pd_lag.c"], hdrs = ["switch_pd_lag.h"], @@ -156,17 +156,17 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_p4_name_mapping", hdrs = ["switch_pd_p4_name_mapping.h"], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_routing_hdr", hdrs = ["switch_pd_routing.h"], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_routing", srcs = ["switch_pd_routing.c"], deps = [ @@ -182,7 +182,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_tunnel", srcs = ["switch_pd_tunnel.c"], hdrs = ["switch_pd_tunnel.h"], @@ -195,7 +195,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_pd_utils", srcs = ["switch_pd_utils.c"], hdrs = ["switch_pd_utils.h"], @@ -215,7 +215,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_rif", srcs = ["switch_rif.c"], deps = [ @@ -225,7 +225,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_rmac", srcs = ["switch_rmac.c"], deps = [ @@ -237,7 +237,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_table", srcs = ["switch_table.c"], deps = [ @@ -249,7 +249,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_tunnel", srcs = ["switch_tunnel.c"], deps = [ @@ -261,7 +261,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switch_vrf", srcs = ["switch_vrf.c"], deps = [ @@ -272,7 +272,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchapi_utils", srcs = ["switchapi_utils.c"], deps = [ diff --git a/switchlink/BUILD.bazel b/switchlink/BUILD.bazel index 951b3e9..3931432 100644 --- a/switchlink/BUILD.bazel +++ b/switchlink/BUILD.bazel @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 load("@rules_cc//cc:defs.bzl", "cc_library") -load("//bazel:rules.bzl", "target_cc_library") +load("//bazel:rules.bzl", "krnlmon_cc_library") package(default_visibility = ["//visibility:public"]) @@ -13,7 +13,7 @@ OVS_DEFINES = select({ "//conditions:default": [], }) -target_cc_library( +krnlmon_cc_library( name = "switchlink_address", srcs = ["switchlink_address.c"], deps = [ @@ -36,7 +36,7 @@ cc_test( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_db", srcs = [ "switchlink_db.c", @@ -53,14 +53,14 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_globals", srcs = ["switchlink_globals.c"], hdrs = ["switchlink_globals.h"], deps = [":switchlink_types"], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_types", srcs = ["switchlink.h"], # rename deps = [ @@ -68,7 +68,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_handlers", srcs = ["switchlink_handlers.h"], linkopts = ["-lnl-3"], @@ -79,12 +79,12 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_int", srcs = ["switchlink_int.h"], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_link", srcs = ["switchlink_link.c"], defines = OVS_DEFINES, @@ -110,12 +110,12 @@ cc_test( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_link_types", srcs = ["switchlink_link_types.h"], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_main", srcs = [ "switchlink_main.c", @@ -134,7 +134,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_neigh", srcs = ["switchlink_neigh.c"], deps = [ @@ -157,7 +157,7 @@ cc_test( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_route", srcs = ["switchlink_route.c"], deps = [ @@ -179,7 +179,7 @@ cc_test( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_utils", srcs = ["switchlink_utils.c"], hdrs = ["switchlink_utils.h"], @@ -188,7 +188,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_validate_driver", srcs = ["switchlink_validate_driver.c"], deps = [ diff --git a/switchlink/sai/BUILD.bazel b/switchlink/sai/BUILD.bazel index 784accf..cd37bb7 100644 --- a/switchlink/sai/BUILD.bazel +++ b/switchlink/sai/BUILD.bazel @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 load("@rules_cc//cc:defs.bzl", "cc_library") -load("//bazel:rules.bzl", "target_cc_library") +load("//bazel:rules.bzl", "krnlmon_cc_library") load("//bazel:sde.bzl", "TARGET_SDE") package(default_visibility = ["//visibility:public"]) @@ -16,7 +16,7 @@ SWITCHLINK_SAI_TARGET_LIBS = select( }, ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_handle_ecmp", srcs = ["switchlink_handle_ecmp.c"], deps = [ @@ -27,7 +27,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_handle_lag", srcs = ["switchlink_handle_lag.c"], deps = [ @@ -38,7 +38,7 @@ target_cc_library( ] + TARGET_SDE, ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_handle_link", srcs = ["switchlink_handle_link.c"], deps = [ @@ -47,7 +47,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_handle_neigh", srcs = ["switchlink_handle_neigh.c"], deps = [ @@ -57,7 +57,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_handle_nexthop", srcs = ["switchlink_handle_nexthop.c"], deps = [ @@ -66,7 +66,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_handle_route", srcs = ["switchlink_handle_route.c"], deps = [ @@ -76,7 +76,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_handle_tunnel", srcs = ["switchlink_handle_tunnel.c"], deps = [ @@ -85,7 +85,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "switchlink_init_sai", srcs = ["switchlink_init_sai.c"], hdrs = ["switchlink_init_sai.h"], diff --git a/switchsai/BUILD.bazel b/switchsai/BUILD.bazel index 3a2cf28..7b49b5a 100644 --- a/switchsai/BUILD.bazel +++ b/switchsai/BUILD.bazel @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 load("@rules_cc//cc:defs.bzl", "cc_library") -load("//bazel:rules.bzl", "target_cc_library") +load("//bazel:rules.bzl", "krnlmon_cc_library") package(default_visibility = ["//visibility:public"]) @@ -15,7 +15,7 @@ SAI_TARGET_LIBS = select( }, ) -target_cc_library( +krnlmon_cc_library( name = "sai", srcs = ["sai.c"], deps = [ @@ -26,7 +26,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "saifdb", srcs = ["saifdb.c"], deps = [ @@ -37,7 +37,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "saiinternal", hdrs = ["saiinternal.h"], deps = [ @@ -48,7 +48,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "saineighbor", srcs = ["saineighbor.c"], deps = [ @@ -61,7 +61,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "sainexthop", srcs = ["sainexthop.c"], deps = [ @@ -72,7 +72,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "sainexthopgroup", srcs = ["sainexthopgroup.c"], deps = [ @@ -83,7 +83,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "sailag", srcs = ["sailag.c"], deps = [ @@ -95,7 +95,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "sairoute", srcs = ["sairoute.c"], deps = [ @@ -107,7 +107,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "sairouterinterface", srcs = ["sairouterinterface.c"], deps = [ @@ -120,7 +120,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "saitunnel", srcs = ["saitunnel.c"], deps = [ @@ -131,7 +131,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "saiutils", srcs = ["saiutils.c"], deps = [ @@ -140,7 +140,7 @@ target_cc_library( ], ) -target_cc_library( +krnlmon_cc_library( name = "saivirtualrouter", srcs = ["saivirtualrouter.c"], deps = [ diff --git a/switchsde/BUILD.bazel b/switchsde/BUILD.bazel index 3def655..4343654 100644 --- a/switchsde/BUILD.bazel +++ b/switchsde/BUILD.bazel @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 load("@rules_cc//cc:defs.bzl", "cc_library") -load("//bazel:rules.bzl", "target_cc_library") +load("//bazel:rules.bzl", "krnlmon_cc_library") load("//bazel:sde.bzl", "TARGET_SDE_HDRS") package(default_visibility = ["//visibility:public"]) @@ -17,7 +17,7 @@ TARGET_UNIT_TEST = select( no_match_error = "must specify --define target={dpdk|es2k}", ) -target_cc_library( +krnlmon_cc_library( name = "sde_port_intf", srcs = select({ "//flags:dpdk_target": ["sde_dpdk_port_intf.c"], @@ -30,13 +30,13 @@ target_cc_library( ] + TARGET_SDE_HDRS, ) -target_cc_library( +krnlmon_cc_library( name = "sde_status", srcs = ["sde_status.c"], hdrs = ["sde_status.h"], ) -target_cc_library( +krnlmon_cc_library( name = "sde_types", hdrs = ["sde_types.h"], )