# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_CACHE_ASPEED	cache_aspeed.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE		cache_handlers.c)

# SPDX-License-Identifier: Apache-2.0

zephyr_library()
zephyr_library_property(ALLOW_EMPTY TRUE)

zephyr_library_sources_ifdef(CONFIG_CACHE_ASPEED	cache_aspeed.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE		cache_handlers.c)

Fix build warning 'No SOURCES given to Zephyr library'
cache: Fix build warning 'No SOURCES given to Zephyr library'

Following 4806e1087eb0eabc6864f4a5e29eafc3d4c5d58d ,
the following warning appears for some boards (e.g. `qemu_cortex_a53`)
```
CMake Warning at /zephyr/CMakeLists.txt:798 (message):
  No SOURCES given to Zephyr library: drivers__cache

  Excluding target from build.
```

Allow this driver to have no sources.

Signed-off-by: Henri Xavier <004cdf75a4eb04b9a3ca9fc20d90a2af049c2af7@huawei.com>
