225 lines
3.0 KiB
CMake
Executable File
225 lines
3.0 KiB
CMake
Executable File
armino_build_get_property(target ARMINO_SOC)
|
|
|
|
set(incs
|
|
soc/include
|
|
hal/include
|
|
)
|
|
|
|
set(srcs
|
|
hal/timer_hal.c
|
|
hal/dma_hal.c
|
|
hal/icu_hal.c
|
|
hal/wdt_hal.c
|
|
hal/spi_hal.c
|
|
hal/i2c_hal.c
|
|
hal/gpio_hal.c
|
|
hal/uart_hal.c
|
|
hal/adc_hal.c
|
|
)
|
|
|
|
if (CONFIG_AON_WDT)
|
|
list(APPEND srcs
|
|
hal/aon_wdt_hal.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_PWM)
|
|
if (CONFIG_PWM_V1PX)
|
|
list(APPEND srcs
|
|
hal/pwm_hal_v1px.c
|
|
)
|
|
endif()
|
|
if (CONFIG_PWM_V0P0)
|
|
list(APPEND srcs
|
|
hal/pwm_hal.c
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if (CONFIG_FLASH)
|
|
list(APPEND srcs
|
|
hal/flash_hal.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_FFT)
|
|
list(APPEND srcs
|
|
hal/fft_hal.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_I2S)
|
|
if ((NOT CONFIG_SOC_BK7236XX) AND (NOT CONFIG_SOC_BK7239XX) AND (NOT CONFIG_SOC_BK7286XX))
|
|
list(APPEND srcs
|
|
hal/i2s_hal.c
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if(CONFIG_EFUSE)
|
|
list(APPEND srcs
|
|
hal/efuse_hal.c
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_TRNG_SUPPORT)
|
|
list(APPEND srcs
|
|
"hal/trng_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_MAILBOX)
|
|
if (NOT CONFIG_MAILBOX_V2_0)
|
|
list(APPEND srcs
|
|
"hal/mailbox_hal.c"
|
|
)
|
|
endif()
|
|
if (CONFIG_MAILBOX_V2_0)
|
|
list(APPEND srcs
|
|
"hal/mbox0_hal.c"
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if(CONFIG_QSPI)
|
|
list(APPEND srcs
|
|
"hal/qspi_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_JPEGENC_HW)
|
|
list(APPEND srcs
|
|
"hal/jpeg_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_YUV_BUF)
|
|
list(APPEND srcs
|
|
"hal/yuv_buf_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_H264)
|
|
list(APPEND srcs
|
|
"hal/h264_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_PSRAM)
|
|
list(APPEND srcs
|
|
"hal/psram_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_AON_RTC)
|
|
if(CONFIG_AON_RTC_64BIT)
|
|
list(APPEND srcs
|
|
"hal/aon_rtc_hal_64bit.c"
|
|
)
|
|
else()
|
|
list(APPEND srcs
|
|
"hal/aon_rtc_hal.c"
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if (CONFIG_SDIO_V2P0)
|
|
list(APPEND srcs
|
|
"hal/sdio_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_VAULT_SUPPORT)
|
|
list(APPEND srcs
|
|
"hal/vault_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_AUDIO)
|
|
if(CONFIG_SOC_BK7256XX)
|
|
list(APPEND srcs
|
|
"hal/aud_hal.c"
|
|
)
|
|
endif()
|
|
if(CONFIG_SOC_BK7236XX OR CONFIG_SOC_BK7239XX OR CONFIG_SOC_BK7286XX)
|
|
list(APPEND srcs
|
|
"hal/aud_hal.c"
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if(CONFIG_SBC)
|
|
list(APPEND srcs
|
|
"hal/sbc_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_CALENDAR)
|
|
list(APPEND srcs
|
|
"hal/calendar_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_SDIO_HOST)
|
|
list(APPEND srcs
|
|
"hal/sdio_host_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_SDMADC)
|
|
list(APPEND srcs
|
|
"hal/sdmadc_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_OTP_V1)
|
|
list(APPEND srcs
|
|
"hal/otp_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_CKMN)
|
|
list(APPEND srcs
|
|
"hal/ckmn_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_LCD)
|
|
list(APPEND srcs
|
|
"hal/lcd_disp_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_DMA2D)
|
|
list(APPEND srcs
|
|
"hal/dma2d_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_JPEGDEC_HW)
|
|
list(APPEND srcs
|
|
"hal/jpeg_dec_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_HW_SCALE)
|
|
list(APPEND srcs
|
|
"hal/scale0_hal.c"
|
|
"hal/scale1_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_LIN)
|
|
list(APPEND srcs
|
|
"hal/lin_hal.c"
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_SLCD)
|
|
list(APPEND srcs
|
|
"hal/slcd_hal.c"
|
|
)
|
|
endif()
|
|
|
|
armino_component_register(SRCS "${srcs}" INCLUDE_DIRS "${incs}" REQUIRES ${target} PRIV_REQUIRES tfm)
|