Skip to content

Commit

Permalink
Move tools to upper level
Browse files Browse the repository at this point in the history
Signed-off-by: Min Xu <min.m.xu@intel.com>
  • Loading branch information
mxu9 committed May 28, 2024
1 parent 64001c8 commit 619593a
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 31 deletions.
3 changes: 2 additions & 1 deletion teeio-validator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif()

SET(LIBSPDM_DIR ${PROJECT_SOURCE_DIR}/../spdm-emu/libspdm)
SET(SPDM_EMU_DIR ${PROJECT_SOURCE_DIR}/../spdm-emu)
SET(TEEIO_VALIDATOR_DIR ${PROJECT_SOURCE_DIR})
SET(TEEIO_VALIDATOR_DIR ${PROJECT_SOURCE_DIR}/teeio_validator)
SET(SPDM_DEVICE_DIR ${PROJECT_SOURCE_DIR})

#
Expand Down Expand Up @@ -246,5 +246,6 @@ ADD_COMPILE_OPTIONS(-DLIBSPDM_CONFIG="${PROJECT_SOURCE_DIR}/include/spdm_lib_con
ADD_SUBDIRECTORY(${SPDM_EMU_DIR}/library/pci_tdisp_requester_lib out/pci_tdisp_requester_lib.lib)

ADD_SUBDIRECTORY(teeio_validator)
ADD_SUBDIRECTORY(tools)

endif()
30 changes: 0 additions & 30 deletions teeio-validator/teeio_validator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,35 +79,5 @@ SET(teeio_validator_LIBRARY
platform_lib
)

SET(src_lside
tools/lside.c
tools/ide_common.c
utils.c
pci_ide.c
scan_pci.c
ide_test_ini.c
rp_pci.c)

SET(lside_LIBRARY
debuglib)

SET(src_setide
tools/setide.c
tools/ide_common.c
utils.c
pci_ide.c
scan_pci.c
ide_test_ini.c
rp_pci.c)

SET(setide_LIBRARY
debuglib)

ADD_EXECUTABLE(teeio_validator ${src_teeio_validator})
TARGET_LINK_LIBRARIES(teeio_validator ${teeio_validator_LIBRARY})

ADD_EXECUTABLE(lside ${src_lside})
TARGET_LINK_LIBRARIES(lside ${lside_LIBRARY})

ADD_EXECUTABLE(setide ${src_setide})
TARGET_LINK_LIBRARIES(setide ${setide_LIBRARY})
48 changes: 48 additions & 0 deletions teeio-validator/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
cmake_minimum_required(VERSION 2.8.12)

ADD_COMPILE_OPTIONS(-Wno-unused-result -Werror)

if(CMAKE_BUILD_TYPE STREQUAL "Release")
ADD_COMPILE_OPTIONS(-Wno-error=unused-variable -Wno-error=unused-but-set-variable)
endif()

SET(BUILD_SHARED_LIBS OFF)
SET(CMAKE_EXE_LINKER_FLAGS "-static")

INCLUDE_DIRECTORIES(${SPDM_DEVICE_DIR}/include
${LIBSPDM_DIR}/os_stub/spdm_device_secret_lib_sample
${LIBSPDM_DIR}/include
${LIBSPDM_DIR}/os_stub/include
${LIBSPDM_DIR}/os_stub
${SPDM_EMU_DIR}/include
)

SET(src_lside
lside.c
ide_common.c
${TEEIO_VALIDATOR_DIR}/utils.c
${TEEIO_VALIDATOR_DIR}/pci_ide.c
${TEEIO_VALIDATOR_DIR}/scan_pci.c
${TEEIO_VALIDATOR_DIR}/ide_test_ini.c
${TEEIO_VALIDATOR_DIR}/rp_pci.c)

SET(lside_LIBRARY
debuglib)

SET(src_setide
setide.c
ide_common.c
${TEEIO_VALIDATOR_DIR}/utils.c
${TEEIO_VALIDATOR_DIR}/pci_ide.c
${TEEIO_VALIDATOR_DIR}/scan_pci.c
${TEEIO_VALIDATOR_DIR}/ide_test_ini.c
${TEEIO_VALIDATOR_DIR}/rp_pci.c)

SET(setide_LIBRARY
debuglib)

ADD_EXECUTABLE(lside ${src_lside})
TARGET_LINK_LIBRARIES(lside ${lside_LIBRARY})

ADD_EXECUTABLE(setide ${src_setide})
TARGET_LINK_LIBRARIES(setide ${setide_LIBRARY})
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 619593a

Please sign in to comment.