blob: eaae0e79ba016a10f0695a40fc365d7abb268495 [file]
# SPDX-License-Identifier: Apache-2.0
# Auto-generated from corresponding CMakeLists.txt in Zephyr using scripts
# in zephyr-bazel.
load("@bazel_skylib//lib:selects.bzl", "selects")
load("//bazel:cc.bzl", "zephyr_cc_library")
package(default_visibility = ["//:__subpackages__"])
zephyr_cc_library(
name = "reset",
srcs = [
] + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_AST10X0=true": [
"reset_ast10x0.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_FOCALTECH_FT9001=true": [
"reset_ft9001.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_GD32=true": [
"reset_gd32.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_INTEL_SOCFPGA=true": [
"reset_intel_socfpga.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_MCHP_MSS=true": [
"reset_mchp_mss.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_MCHP_RSTC_G1=true": [
"reset_mchp_rstc_g1.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_MMIO=true": [
"reset_mmio.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_NPCX=true": [
"reset_npcx.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_NUMAKER=true": [
"reset_numaker.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_NXP_MRCC=true": [
"reset_nxp_mrcc.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_NXP_RSTCTL=true": [
"reset_nxp_rstctl.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_NXP_SYSCON=true": [
"reset_lpc_syscon.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_RPI_PICO=true": [
"reset_rpi_pico.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_RTS5817=true": [
"reset_rts5817.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_SF32LB=true": [
"reset_sf32lb.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_STM32=true": [
"reset_stm32.c",
],
}) + select({
"//conditions:default": [],
"@zephyr_kconfig//:CONFIG_RESET_SYNA_SR100=true": [
"reset_syna_sr100.c",
],
}),
hdrs = glob(
["*.h"],
allow_empty = True,
),
)
filegroup(
name = "syscall_client_files",
srcs = [
"//include:zephyr/drivers/reset.h",
],
)