Add RISC-V test utils 57/284557/1
authorMarek Pikuła <m.pikula@partner.samsung.com>
Mon, 17 Oct 2022 21:17:16 +0000 (23:17 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 18 Nov 2022 11:56:15 +0000 (12:56 +0100)
Change-Id: I6a5f1302dc4bf017a2b094d4c5095be6f0e18fea
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
config/CMakeLists.txt
packaging/security-config.spec
test/utils/riscv64/file [new file with mode: 0755]
test/utils/riscv64/readelf [new file with mode: 0755]

index 9e7e83675c47cca4fef971cba924a1a33456ed89..0e07e3f947d72cfab3ef29e452290d28a84efbcc 100755 (executable)
@@ -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()
-
index 6cd9241b106727b07cb9b9e4a18f6030879129f0..9dd39c100e2dd1916766e32b713d6c8b79d7ad20 100755 (executable)
@@ -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 (executable)
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 (executable)
index 0000000..6917f95
Binary files /dev/null and b/test/utils/riscv64/readelf differ