| # Copyright 2026 The Pigweed Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| # use this file except in compliance with the License. You may obtain a copy of |
| # the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, 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. |
| |
| load("@rules_cc//cc:defs.bzl", "cc_library") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| licenses(["notice"]) |
| |
| cc_library( |
| name = "hdrs", |
| hdrs = glob(["include/**/*.h"]), |
| strip_include_prefix = "include", |
| ) |
| |
| cc_library( |
| name = "dc233c_hdrs", |
| hdrs = glob(["zephyr/soc/dc233c/**/*.h"]), |
| strip_include_prefix = "zephyr/soc/dc233c", |
| ) |
| |
| filegroup( |
| name = "srcs", |
| srcs = [ |
| "src/hal/attribute.c", |
| "src/hal/cache.c", |
| "src/hal/cache_asm.S", |
| "src/hal/clock.S", |
| "src/hal/coherence.c", |
| "src/hal/debug.c", |
| "src/hal/debug_hndlr.S", |
| "src/hal/disass.c", |
| "src/hal/int_asm.S", |
| "src/hal/interrupts.c", |
| "src/hal/mem_ecc_parity.S", |
| "src/hal/memcopy.S", |
| "src/hal/misc.c", |
| "src/hal/miscellaneous.S", |
| "src/hal/mmu.c", |
| "src/hal/mp_asm.S", |
| "src/hal/set_region_translate.c", |
| "src/hal/state.c", |
| "src/hal/state_asm.S", |
| "src/hal/syscache_asm.S", |
| "src/hal/windowspill_asm.S", |
| ], |
| ) |