| package(default_visibility = ["//visibility:public"]) |
| |
| cc_library( |
| name = "pico_mem_ops", |
| srcs = [ |
| "mem_ops.c", |
| "mem_ops_aeabi.S", |
| ], |
| hdrs = ["include/pico/mem_ops.h"], |
| includes = ["include"], |
| linkopts = [ |
| "-Wl,--wrap=memcpy", |
| "-Wl,--wrap=memset", |
| "-Wl,--wrap=__aeabi_memcpy", |
| "-Wl,--wrap=__aeabi_memset", |
| "-Wl,--wrap=__aeabi_memcpy4", |
| "-Wl,--wrap=__aeabi_memset4", |
| "-Wl,--wrap=__aeabi_memcpy8", |
| "-Wl,--wrap=__aeabi_memset8", |
| ], |
| target_compatible_with = select({ |
| "//bazel/constraint:rp2": [], |
| "//conditions:default": ["@platforms//:incompatible"], |
| }), |
| deps = [ |
| "//src/common/pico_base", |
| "//src/rp2_common/pico_bootrom", |
| "//src/rp2_common/pico_platform", |
| ], |
| alwayslink = True, # Ensures the wrapped symbols are linked in. |
| ) |