1#
2# Copyright (c) 2017, 2024 NXP
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6zephyr_library()
7
8zephyr_library_sources(soc.c)
9zephyr_library_sources_ifdef(CONFIG_SOC_RESET_HOOK gcc/startup_LPC54114_cm4.S)
10
11zephyr_library_include_directories(
12  ${ZEPHYR_BASE}/kernel/include
13  ${ZEPHYR_BASE}/arch/${ARCH}/include
14  )
15
16
17# CMSIS SystemInit allows us to skip enabling clock to SRAM2 bank via
18# this compiler definition
19if(NOT DEFINED CONFIG_LPC54XXX_SRAM2_CLOCK)
20zephyr_compile_definitions(DONT_ENABLE_DISABLED_RAMBANKS=1)
21endif()
22
23zephyr_include_directories(.)
24
25set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")
26