From: Marek Pikuła Date: Mon, 17 Oct 2022 21:17:16 +0000 (+0200) Subject: Add RISC-V test utils X-Git-Tag: accepted/tizen/unified/20230512.084101~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f35a475d5abfd56906d9fcacd5614b90f7c7f52;p=platform%2Fcore%2Fsecurity%2Fsecurity-config.git Add RISC-V test utils Change-Id: I6a5f1302dc4bf017a2b094d4c5095be6f0e18fea Signed-off-by: Łukasz Stelmach --- diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index 9e7e836..0e07e3f 100755 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(EMULATOR_MOUNT_LISTS ${CMAKE_SOURCE_DIR}/config/mount_list/emulator/) SET(TARGET_MOUNT_LISTS ${CMAKE_SOURCE_DIR}/config/mount_list/target/) -IF(("${ARCH}" STREQUAL "arm") OR ("${ARCH}" STREQUAL "aarch64")) +IF(("${ARCH}" STREQUAL "arm") OR ("${ARCH}" STREQUAL "aarch64") OR ("${ARCH}" STREQUAL "riscv64")) INSTALL(DIRECTORY ${TARGET_MOUNT_LISTS} DESTINATION @@ -14,4 +14,3 @@ ELSEIF(("${ARCH}" STREQUAL "i386") OR ("${ARCH}" STREQUAL "x86_64")) DESTINATION /usr/share/security-config/mount_list) ENDIF() - diff --git a/packaging/security-config.spec b/packaging/security-config.spec index 6cd9241..9dd39c1 100755 --- a/packaging/security-config.spec +++ b/packaging/security-config.spec @@ -80,6 +80,9 @@ cp -f test/utils/aarch64/* %{buildroot}%{SECURITY_TEST_DIR}/utils/ %ifarch %{ix86} cp -f test/utils/i386/* %{buildroot}%{SECURITY_TEST_DIR}/utils/ %endif +%ifarch riscv64 +cp -f test/utils/riscv64/* %{buildroot}%{SECURITY_TEST_DIR}/utils/ +%endif %post /usr/share/security-config/group_id_setting diff --git a/test/utils/riscv64/file b/test/utils/riscv64/file new file mode 100755 index 0000000..db3df7b Binary files /dev/null and b/test/utils/riscv64/file differ diff --git a/test/utils/riscv64/readelf b/test/utils/riscv64/readelf new file mode 100755 index 0000000..6917f95 Binary files /dev/null and b/test/utils/riscv64/readelf differ