# Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL"). # All rights reserved. # # Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL"). # All rights reserved. # set(target boot_ex_ql_pin) add_app_libraries($) add_library(${target} STATIC) set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_quec_lib_dir}) target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC) target_include_directories(${target} PUBLIC inc) target_include_directories(${target} PUBLIC petitfatfs) target_link_libraries(${target} PRIVATE calclib driver) target_include_targets(${target} PRIVATE hal fs sffs bdev driver fsmount nvm cpio_parser bootloader fupdate) if (CONFIG_QUEC_PROJECT_FEATURE_BOOT_NAND_FLASH OR CONFIG_QUEC_PROJECT_FEATURE_BOOT_SPI6_NAND) target_link_libraries(${target} PRIVATE ql_spi4_nand_prop) target_include_targets(${target} PRIVATE ql_spi4_nand_prop) endif() target_sources(${target} PRIVATE quec_boot_pin_map.c) set(target boot_ex_ql) include(core_ex_ql.cmake) if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_SDMMC) set(target boot_ex_sdmmc) include(core_ex_sdmmc.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_EMMC) set(target boot_ex_emmc) include(core_ex_emmc.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_SDMMC2) set(target boot_ex_sdmmc2) include(core_ex_sdmmc2.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_EMMC2) set(target boot_ex_emmc2) include(core_ex_emmc2.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_FAT_RDONLY) set(target boot_ex_fat_rdonly) include(core_ex_fat_rdonly.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_FAT_RW) set(target boot_ex_fat_rw) include(core_ex_fat_rw.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_SPI6_EXT_NOR) set(target boot_ex_spi6nor) include(core_ex_spi6nor.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_SPI_FLASH) set(target boot_ex_spiflash) include(core_ex_spiflash.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_LCD) set(target boot_ex_lcd) include(core_ex_lcd.cmake) endif() if (CONFIG_QUEC_PROJECT_FEATURE_BOOT_NAND_FLASH) set(target boot_ex_nandflash) include(core_ex_nandflash.cmake) endif() if (CONFIG_QUEC_PROJECT_FEATURE_BOOT_SPI6_NAND) set(target boot_ex_spi6nand) include(core_ex_spi6nand.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_LED) set(target boot_ex_led) include(core_ex_led.cmake) endif() if (CONFIG_QUEC_PROJECT_FEATURE_BOOT_ADC) set(target boot_ex_adc) include(core_ex_adc.cmake) endif() if (CONFIG_QUEC_PROJECT_FEATURE_BOOT_SCATTER) set(target boot_ex_scatter) include(core_ex_scatter.cmake) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_SPI4_EXTNSFFS) set(target boot_ex_spi) include(core_ex_spi.cmake) set(target boot_ex_spi4exnsffs) include(core_ex_spi4exnsffs.cmake) set(target boot_ex_spi4exnsffs_cfg) add_app_libraries($) add_library(${target} STATIC) set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_quec_lib_dir}) target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC) target_include_directories(${target} PUBLIC inc) target_link_libraries(${target} PRIVATE calclib driver bootloader boot_ex_spi4exnsffs boot_ex_spi ql_spi4_nor_prop) target_include_targets(${target} PRIVATE hal driver bootloader boot_ex_spi4exnsffs boot_ex_spi ql_spi4_nor_prop) target_sources_if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_SPI4_EXTNSFFS THEN ${target} PRIVATE ql_boot_spi4_exnsffs_cfg.c ) endif() if(CONFIG_QUEC_PROJECT_FEATURE_BOOT_SPI4_NORFLASH) set(target boot_ex_spi4norflash) include(core_ex_spi4norflash.cmake) endif() relative_glob(srcs include/*.h src/*.c *.c inc/*.h) beautify_c_code(${target} ${srcs})