zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers)

zephyr_cc_option(-mcpu=em4_dmips -mno-sdata)
zephyr_cc_option(-mdiv-rem -mswap -mnorm)
zephyr_cc_option(-mmpy-option=6 -mbarrel-shifter)
zephyr_cc_option(--param l1-cache-size=16384)
zephyr_cc_option(--param l1-cache-line-size=32)

zephyr_cc_option_ifdef(CONFIG_CODE_DENSITY -mcode-density)

if(CONFIG_BOARD_EM_STARTERKIT_R23)
  message(FATAL "em7d from em starterkit 2.3 is not supported")
endif()


zephyr_sources(
  soc.c
  soc_config.c
  )

zephyr_sources_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c)
