1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- # Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
- # All rights reserved.
- #
- # This software is supplied "AS IS" without any warranties.
- # RDA assumes no responsibility or liability for the use of the software,
- # conveys no license or title under any patent, copyright, or mask work
- # right to the product. RDA reserves the right to make changes in the
- # software without notification. RDA also make no representation or
- # warranty that such application will be suitable for the specified use
- # without further testing or modification.
- configure_file(include/fupdate_config.h.in ${out_inc_dir}/fupdate_config.h)
- set(target fupdate_security_app)
- add_app_libraries($<TARGET_FILE:${target}>)
- if(CONFIG_SOC_8910)
- add_library(${target} STATIC
- src/fupdate_security_pack.c
- src/8910/fupdate_security_app.c
- )
- endif()
- if(CONFIG_SOC_8811)
- add_library(${target} STATIC
- src/fupdate_security_pack.c
- src/88xx/fupdate_security_app.c
- )
- endif()
- if(CONFIG_SOC_8850)
- add_library(${target} STATIC
- src/fupdate_security_pack.c
- src/88xx/fupdate_security_app.c
- )
- endif()
- set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_lib_dir})
- set_target_properties(${target} PROPERTIES OUTPUT_NAME fupdate_security_app)
- target_include_directories(${target} PUBLIC include)
- target_include_targets(${target} PRIVATE kernel fs sffs calclib driver hal)
- relative_glob(srcs src/*.[ch] src/8910/*.c src/88xx/*.c include/fupdate_security.h)
- beautify_c_code(${target} ${srcs})
- set(target fupdate_security_boot)
- if(CONFIG_SOC_8910)
- add_library(${target} STATIC
- src/fupdate_security_pack.c
- src/8910/fupdate_security_boot.c
- )
- endif()
- if(CONFIG_SOC_8811)
- add_library(${target} STATIC
- src/fupdate_security_pack.c
- src/88xx/fupdate_security_boot.c
- )
- endif()
- if(CONFIG_SOC_8850)
- add_library(${target} STATIC
- src/fupdate_security_pack.c
- src/88xx/fupdate_security_boot.c
- )
- endif()
- set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_lib_dir})
- set_target_properties(${target} PROPERTIES OUTPUT_NAME fupdate_security_boot)
- target_include_directories(${target} PUBLIC include)
- target_include_targets(${target} PRIVATE bootloader kernel fs sffs calclib driver hal)
- include(core.cmake)
|