import:
 - ${home}/.rtebuild/toolchain.rtebuild
targets:
  arm:
    defines     : [ "PRINT_XML_REPORT=1", "${device}${dsuffix}=1" ]
  armcm:
    extends     : arm
    include:
      - ./config/core_m
      - ../../Core/Include
    source:
      - ../../../Device/ARM/${device}/Source/startup_${device}.c
      - ../../../Device/ARM/${device}/Source/system_${device}.c
      - ../Source/CV_CoreFunc.c
      - ../Source/CV_CoreSimd.c
      - ../Source/CV_CML1Cache.c
  armcm_v7:
    extends: armcm
    source:
      - ../Source/CV_MPU_ARMv7.c
  armcm_v8:
    extends: armcm
    source:
      - ../Source/CV_MPU_ARMv8.c
  armcm0:
    extends: armcm_v7
    device : ARMCM0
    dsuffix: ""
  armcm0plus:
    extends: armcm_v7
    defines: [ "ARMCM0P=1" ]
    device : ARMCM0plus
    dsuffix: ""
  armcm3:
    extends: armcm_v7
    device : ARMCM3
    dsuffix: ""
  armcm4:
    extends: armcm_v7
    device : ARMCM4
    dsuffix: ""
  armcm4fp:
    extends: armcm_v7
    device : ARMCM4
    dsuffix: _FP
  armcm7:
    extends: armcm_v7
    device : ARMCM7
    dsuffix: ""
  armcm7sp:
    extends: armcm_v7
    device : ARMCM7
    dsuffix: _SP
  armcm7dp:
    extends: armcm_v7
    device : ARMCM7
    dsuffix: _DP
  armcm23:
    extends: armcm_v8
    device : ARMCM23
    dsuffix: ""
  armcm23s:
    extends: armcm_v8
    device : ARMCM23
    dsuffix: "_TZ"
  armcm23ns:
    extends: armcm_v8
    device : ARMCM23
    dsuffix: "_TZ"
  armcm33:
    extends: armcm_v8
    device : ARMCM33
    dsuffix: ""
  armcm33s:
    extends: armcm_v8
    device : ARMCM33
    dsuffix: "_DSP_FP_TZ"
  armcm33ns:
    extends: armcm_v8
    device : ARMCM33
    dsuffix: "_DSP_FP_TZ"
  armcm35p:
    extends: armcm_v8
    device : ARMCM35P
    dsuffix: ""
  armcm35ps:
    extends: armcm_v8
    device : ARMCM35P
    dsuffix: "_DSP_FP_TZ"
  armcm35pns:
    extends: armcm_v8
    device : ARMCM35P
    dsuffix: "_DSP_FP_TZ"
  armcm55:
    extends: armcm_v8
    device : ARMCM55
    dsuffix: ""
  armcm55s:
    extends: armcm_v8
    device : ARMCM55
    dsuffix: ""
  armcm55ns:
    extends: armcm_v8
    device : ARMCM55
    dsuffix: ""
  armca:
    extends    : arm
    include:
      - ./config/core_a
      - ../../Core_A/Include
      - ../../../Device/ARM/${device}/Config
    source:
      - ./config/core_a/mmu.c
      - ../Source/CV_CoreAFunc.c
      - ../Source/CV_CAL1Cache.c
      - ../../Core_A/Source/irq_ctrl_gic.c
      - ../../../Device/ARM/${device}/Source/system_${device}.c
  armca5:
    extends: armca
    device : ARMCA5
    dsuffix: ""
  armca5neon:
    extends: armca
    device : ARMCA5
    dsuffix: ""
  armca7:
    extends: armca
    device : ARMCA7
    dsuffix: ""
  armca7neon:
    extends: armca
    device : ARMCA7
    dsuffix: ""
  armca9:
    extends: armca
    device : ARMCA9
    dsuffix: ""
  armca9neon:
    extends: armca
    device : ARMCA9
    dsuffix: ""
include: 
  - ./
  - ../Include/
  - ../../../Device/ARM/${device}/Include
source:
  - ./main.c
  - ../Source/cmsis_cv.c
  - ../Source/CV_Framework.c
  - ../Source/CV_Report.c
  - ../Source/CV_CoreInstr.c
