blob: 294fcbc701cb9fbcd6d0c2d1b8b0813328951738 [file] [log] [blame]
# Copyright 2024 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"])
filegroup(
name = "dt_bindings",
srcs = glob(["zephyr/dt-bindings/**"]) + [
"zephyr/sys/util_internal.h",
"zephyr/sys/util_internal_is_eq.h",
"zephyr/sys/util_internal_util_dec.h",
"zephyr/sys/util_internal_util_inc.h",
"zephyr/sys/util_internal_util_x2.h",
"zephyr/sys/util_listify.h",
"zephyr/sys/util_loops.h",
"zephyr/sys/util_macro.h",
],
)
filegroup(
name = "core",
srcs = [
"zephyr/device.h",
"zephyr/devicetree.h",
"zephyr/fatal.h",
"zephyr/fatal_types.h",
"zephyr/init.h",
"zephyr/irq.h",
"zephyr/irq_multilevel.h",
"zephyr/irq_offload.h",
"zephyr/kernel.h",
"zephyr/kernel_includes.h",
"zephyr/kernel_structs.h",
"zephyr/kernel_version.h",
"zephyr/spinlock.h",
"zephyr/syscall.h",
"zephyr/sys_clock.h",
"zephyr/sw_isr_table.h",
"zephyr/toolchain.h",
"zephyr/types.h",
"zephyr/app_memory/mem_domain.h",
"zephyr/arch/arch_inlines.h",
"zephyr/arch/cpu.h",
"zephyr/arch/structs.h",
"zephyr/arch/syscall.h",
"zephyr/arch/arch_interface.h",
"zephyr/arch/arm/arch.h",
"zephyr/arch/arm/arch_inlines.h",
"zephyr/arch/arm/asm_inline.h",
"zephyr/arch/arm/asm_inline_gcc.h",
"zephyr/arch/arm/error.h",
"zephyr/arch/arm/exception.h",
"zephyr/arch/arm/gdbstub.h",
"zephyr/arch/arm/irq.h",
"zephyr/arch/arm/misc.h",
"zephyr/arch/arm/nmi.h",
"zephyr/arch/arm/structs.h",
"zephyr/arch/arm/syscall.h",
"zephyr/arch/arm/thread.h",
"zephyr/arch/common/addr_types.h",
"zephyr/arch/common/ffs.h",
"zephyr/arch/common/sys_bitops.h",
"zephyr/arch/x86/arch.h",
"zephyr/arch/x86/arch_inlines.h",
"zephyr/arch/x86/mmustructs.h",
"zephyr/arch/x86/msr.h",
"zephyr/arch/x86/thread_stack.h",
"zephyr/arch/x86/x86_acpi.h",
"zephyr/arch/x86/ia32/arch.h",
"zephyr/arch/x86/ia32/gdbstub.h",
"zephyr/arch/x86/ia32/segmentation.h",
"zephyr/arch/x86/ia32/syscall.h",
"zephyr/arch/x86/ia32/sys_io.h",
"zephyr/arch/x86/ia32/thread.h",
"zephyr/devicetree/io-channels.h",
"zephyr/devicetree/clocks.h",
"zephyr/devicetree/gpio.h",
"zephyr/devicetree/spi.h",
"zephyr/devicetree/dma.h",
"zephyr/devicetree/pwms.h",
"zephyr/devicetree/fixed-partitions.h",
"zephyr/devicetree/ordinals.h",
"zephyr/devicetree/pinctrl.h",
"zephyr/devicetree/can.h",
"zephyr/devicetree/reset.h",
"zephyr/devicetree/mbox.h",
"zephyr/drivers/watchdog.h",
"zephyr/drivers/gpio.h",
"zephyr/drivers/mbox.h",
"zephyr/drivers/interrupt_controller/sysapic.h",
"zephyr/drivers/interrupt_controller/loapic.h",
"zephyr/dt-bindings/gpio/gpio.h",
"zephyr/kernel/mm.h",
"zephyr/kernel/obj_core.h",
"zephyr/kernel/stats.h",
"zephyr/kernel/thread.h",
"zephyr/kernel/thread_stack.h",
"zephyr/kernel/internal/mm.h",
# "zephyr/kernel/internal/sched_priq.h",
"zephyr/kernel/internal/smp.h",
"zephyr/linker/sections.h",
"zephyr/linker/section_tags.h",
"zephyr/pm/pm.h",
"zephyr/pm/state.h",
"zephyr/sys/__assert.h",
"zephyr/sys/atomic.h",
"zephyr/sys/atomic_builtin.h",
"zephyr/sys/atomic_types.h",
"zephyr/sys/device_mmio.h",
"zephyr/sys/dlist.h",
"zephyr/sys/iterable_sections.h",
"zephyr/sys/kobject.h",
"zephyr/sys/list_gen.h",
"zephyr/sys/mem_manage.h",
"zephyr/sys/mem_stats.h",
"zephyr/sys/printk.h",
"zephyr/sys/rb.h",
"zephyr/sys/slist.h",
"zephyr/sys/sflist.h",
"zephyr/sys/sys_heap.h",
"zephyr/sys/sys_io.h",
"zephyr/sys/time_units.h",
"zephyr/sys/util.h",
"zephyr/sys/util_internal.h",
"zephyr/sys/util_listify.h",
"zephyr/sys/util_loops.h",
"zephyr/sys/util_macro.h",
"zephyr/sys/util_internal_is_eq.h",
"zephyr/sys/util_internal_util_inc.h",
"zephyr/sys/util_internal_util_dec.h",
"zephyr/sys/util_internal_util_x2.h",
"zephyr/sys/internal/kobject_internal.h",
"zephyr/toolchain/common.h",
"zephyr/toolchain/gcc.h",
"zephyr/toolchain/llvm.h",
"zephyr/tracing/tracing_macros.h",
"zephyr/tracing/tracing.h",
"zephyr/tracing/tracking.h",
],
)
cc_library(
name = "posix",
hdrs = [
"zephyr/arch/posix/arch.h",
"zephyr/arch/posix/arch_inlines.h",
"zephyr/arch/posix/asm_inline.h",
"zephyr/arch/posix/asm_inline_gcc.h",
"zephyr/arch/posix/posix_soc_if.h",
"zephyr/arch/posix/posix_trace.h",
"zephyr/arch/posix/thread.h",
],
includes = [
".",
"../dts",
"../dts/common",
],
)