From: Dongwoo Lee Date: Thu, 18 Aug 2022 04:59:09 +0000 (+0900) Subject: pass-hal-tm1: Add display/disk hal information X-Git-Tag: submit/tizen/20220818.050924^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fadaptation%2Ftm1%2Fpass-hal-tm1.git pass-hal-tm1: Add display/disk hal information Change-Id: I0b6f0d886319788c6a61a5148e51947ecefdfb39 Signed-off-by: Chanwoo Choi Signed-off-by: Dongwoo Lee --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e8dc32e..329da92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,8 @@ TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${pkgs_LDFLAGS} -ldl) SET(CONF_FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass.json - ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-resource0.json) + ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-resource0.json + ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-dummy.json) INSTALL(FILES ${CONF_FILES} DESTINATION /hal/etc/pass) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-hal.conf DESTINATION /hal/lib/tmpfiles.d) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION ${HAL_LICENSEDIR}/${PROJECT_NAME}) diff --git a/packaging/pass-hal-tm1.spec b/packaging/pass-hal-tm1.spec index 48b0810..7066e66 100644 --- a/packaging/pass-hal-tm1.spec +++ b/packaging/pass-hal-tm1.spec @@ -59,3 +59,4 @@ fi /hal/lib/tmpfiles.d/pass-hal.conf %config %{_hal_sysconfdir}/pass/pass.json %config %{_hal_sysconfdir}/pass/pass-resource0.json +%config %{_hal_sysconfdir}/pass/pass-dummy.json diff --git a/scripts/pass-dummy.json b/scripts/pass-dummy.json new file mode 100644 index 0000000..e2c17ca --- /dev/null +++ b/scripts/pass-dummy.json @@ -0,0 +1,14 @@ +{ + "support" : false, + "init_level" : 0, + "level_list" : + [ + { + "level" : 0 + } + ], + + "pmqos_support" : false, + "thermal_support" : false, + "cpuhp_support" : false +} diff --git a/scripts/pass.json b/scripts/pass.json index 6d18069..f9e05c6 100644 --- a/scripts/pass.json +++ b/scripts/pass.json @@ -11,6 +11,18 @@ "cpu,number_of_cpus" : 4, "cpu,first_cpu" : 0, "cpu,cpu_load_path" : null + }, { + "device_type" : "display", + "device_name" : "lcd", + "device_config_path" : "/hal/etc/pass/pass-dummy.json" + }, { + "device_type" : "disk", + "device_name" : "zram0", + "device_config_path" : "/hal/etc/pass/pass-dummy.json" + }, { + "device_type" : "disk", + "device_name" : "mmcblk0", + "device_config_path" : "/hal/etc/pass/pass-dummy.json" } ] }