platform/hal/backend/c4/device-c4.git
10 months agoutil: Add handling code to safely read and write arrays 10/314910/2 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.235835 accepted/tizen/unified/20240725.155015 accepted/tizen/unified/dev/20240729.000855 accepted/tizen/unified/x/asan/20241224.003757 tizen_9.0_m2_release
Yunhee Seo [Tue, 16 Jul 2024 07:21:32 +0000 (16:21 +0900)]
util: Add handling code to safely read and write arrays

There was a missing code for handling the null character
so that it doesn't exceed the array size when reading and storing strings.
The code has been modified to handle the array safely.
To avoid overflow issue, this is necessary.

Change-Id: Ib75301a07906391c57fb739ef3399ff211cd1503
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoUse only hal-rootstrap package to build 12/314012/1 accepted/tizen/unified/20240704.173835 accepted/tizen/unified/dev/20240708.001605
Yunhee Seo [Thu, 27 Jun 2024 08:24:20 +0000 (17:24 +0900)]
Use only hal-rootstrap package to build

As support hal-abi-versioning, the hal-backend package should be built
using only the hal-rootstrap.
Other packages not included in the hal-roostrap have been deleted to remove dependencies.
util is added to replace functions of dlog and libsyscommon package

Change-Id: Ib9f0dcc85e7182bf83ccabdf6add27f88463d1e3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoRemove free data section when the module exits 35/310235/1 accepted/tizen/unified/20240614.084943 accepted/tizen/unified/dev/20240620.010501
Yunhee Seo [Wed, 24 Apr 2024 08:20:56 +0000 (17:20 +0900)]
Remove free data section when the module exits

In the hal backend module, when the moudle exits, the hal_backend_[module]_funcs was
handled from [module]_exit function.
The data parameter is handed over from hal-api-common put_backend function.
And data is pointing to hal_backend_[module]_funcs, and free by hal-backend module.
As memory release operation moves to the hal-api-device side,
also double free operation is useless, thus it is deleted from hal-backend.

Change-Id: If15d94024ba1db89912c9787da870bcfd60424e3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agomemory: Apply HAL ABI versioning 63/310063/1
Yunhee Seo [Mon, 22 Apr 2024 01:42:49 +0000 (10:42 +0900)]
memory: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-memory side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"memory" -> "device-memory"

Change-Id: Ibc48399e2ead7ffcd8aa5f2e1169ba699682eb16
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agotouchscreen: Apply HAL ABI versioning 21/310021/1
Yunhee Seo [Fri, 19 Apr 2024 07:35:59 +0000 (16:35 +0900)]
touchscreen: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-touchscreen side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"touchscreen" -> "device-touchscreen"

Change-Id: I6776398dcfa8c36c5749e284ba673e0da08b70d9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agothermal: Apply HAL ABI versioning 99/309999/2
Yunhee Seo [Fri, 19 Apr 2024 04:12:57 +0000 (13:12 +0900)]
thermal: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-thermal side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"thermal" -> "device-thermal"

Change-Id: I89caa12d62873b1fcd7d478699cb201d0f44db21
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoWork in advance to apply HAL ABI versioning 77/309677/1
Yunhee Seo [Mon, 15 Apr 2024 08:34:06 +0000 (17:34 +0900)]
Work in advance to apply HAL ABI versioning

To apply HAL ABI versioning, major/minor_version is added.
Also, as removed abi_version policy, abi_version variable is removed.

Change-Id: I9b71d6ddafb208656b5f0c039ad14620def17c35
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agohaptic: Apply HAL ABI versioning 13/309413/1
Yunhee Seo [Tue, 9 Apr 2024 12:42:44 +0000 (21:42 +0900)]
haptic: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-haptic side.

Change-Id: If132c3151d89c68df12c65b09657555474684a5e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agohaptic: Fix incorrect module naming 12/309412/1
Yunhee Seo [Tue, 9 Apr 2024 12:38:40 +0000 (21:38 +0900)]
haptic: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "haptic" but "device-haptic".

Change-Id: Iad720bed5f1b958e3d03efbdb3b624148b75715c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoboard: Apply HAL ABI versioning 11/309411/1
Yunhee Seo [Tue, 9 Apr 2024 12:37:53 +0000 (21:37 +0900)]
board: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-board side.

Change-Id: I87306793816c393fc2db451bafc1e09bb4eec202
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoboard: Fix incorrect module naming 10/309410/1
Yunhee Seo [Tue, 9 Apr 2024 12:37:02 +0000 (21:37 +0900)]
board: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "board" but "device-board".

Change-Id: I93fa3ebf9b8473ca4067ce6f54cc9f97bc79b1a9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agodisplay: Apply HAL ABI versioning 09/309409/1
Yunhee Seo [Tue, 9 Apr 2024 12:35:46 +0000 (21:35 +0900)]
display: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-display side.

Change-Id: Ia8b2499864154b0e469d15863d688c49f565374d
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agodisplay: Fix incorrect module naming 08/309408/1
Yunhee Seo [Tue, 9 Apr 2024 12:34:49 +0000 (21:34 +0900)]
display: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "display" but "device-display".

Change-Id: I8162957b1006a2d03763c0fd2733a318ed90ae1a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoChange header file inclusion path 07/309407/1
Yunhee Seo [Tue, 9 Apr 2024 12:33:49 +0000 (21:33 +0900)]
Change header file inclusion path

As the header files installation path below hal-api-device module is changed,
the inclusion path is also changed.

Change-Id: Ia6c8eb41578cefb81130c91686714c712b976503
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
3 years agousb-gadget: remove usb-gadget and add configuration file 51/274551/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.063333 accepted/tizen/7.0/unified/hotfix/20221116.110354 accepted/tizen/8.0/unified/20231005.094440 accepted/tizen/unified/20220526.144015 submit/tizen/20220525.001052 tizen_7.0_m2_release tizen_8.0_m2_release
Youngjae Cho [Mon, 2 May 2022 07:43:48 +0000 (16:43 +0900)]
usb-gadget: remove usb-gadget and add configuration file

The actual operation of usb-gadget is no more hal dependent. Instead,
the deviced is now in charge of running usb-gadget. The hal backend
has changed to provide only target specific usb-gadget configurations.
If there is no target specific configurations, deviced runs usb-gadget
with default configurations.

Change-Id: I748637f754972b5f77e6587d4158d0e0fd1fdd1d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoUpdate ABI version 75/271075/1 accepted/tizen/unified/20220310.120934 submit/tizen/20220222.024249 submit/tizen/20220308.032646
Youngjae Cho [Tue, 15 Feb 2022 06:26:43 +0000 (15:26 +0900)]
Update ABI version

Change-Id: I0dad1094b2dc37d3a14a4e21b630d8ea5a3c8f65
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agodisplay: brightness control is not supported 09/270609/2 submit/tizen/20220208.052553 submit/tizen/20220208.075544
Youngjae Cho [Mon, 7 Feb 2022 04:11:56 +0000 (13:11 +0900)]
display: brightness control is not supported

Change-Id: Ib984846ff7d0fd877978bf7db9a05aa9438906c3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agospec: Add "ExclusiveArch: %{arm} aarch64" 89/268289/1 accepted/tizen/unified/20211220.133556 submit/tizen/20211220.071509
INSUN PYO [Mon, 20 Dec 2021 04:34:09 +0000 (13:34 +0900)]
spec: Add "ExclusiveArch: %{arm} aarch64"

Change-Id: I1e4daffb5bdab53f02cf8dec4976d92da87348cf

3 years agothermal: rename device_thermal_e to hal_device_thermal_e 51/262051/1 accepted/tizen/6.5/unified/20211028.115340 accepted/tizen/unified/20210804.085721 submit/tizen/20210802.064402 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
Youngjae Cho [Mon, 2 Aug 2021 05:35:04 +0000 (14:35 +0900)]
thermal: rename device_thermal_e to hal_device_thermal_e

Change-Id: Iff79b89c0146e407bdf31ac4a6e3e2abd357f907
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoboard: fix parameter of get_deviec_serial_number() 51/260051/2 accepted/tizen/unified/20210621.123254 submit/tizen/20210618.075427
Youngjae Cho [Fri, 18 Jun 2021 03:16:35 +0000 (12:16 +0900)]
board: fix parameter of get_deviec_serial_number()

Change-Id: Ib7303ad9f8fdac2784e94285149b20ec0286b732
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoAdd libsyscommon to required package to provide linker flag 73/259973/1
Youngjae Cho [Thu, 17 Jun 2021 05:22:25 +0000 (14:22 +0900)]
Add libsyscommon to required package to provide linker flag

For haltest, it cannot run by itself because it is not able to resolve
sys_get_int() symbol of libsyscommon. Therefore, provide ldflag to
locate libsyscommon.so

Change-Id: Ic9b4cedce88c888a9925264cfd22ff3504ee5193
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoboard: renaming get_device_serial_number 89/259789/1 accepted/tizen/unified/20210615.120414 submit/tizen/20210614.021455
Youngjae Cho [Mon, 14 Jun 2021 08:36:38 +0000 (17:36 +0900)]
board: renaming get_device_serial_number

Change-Id: I5a4afe0891e13fb5e81bec91b7b10da0ba9609af
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoInitialization 46/259346/1 accepted/tizen/unified/20210607.011707 submit/tizen/20210604.120949
Hyotaek Shim [Fri, 4 Jun 2021 12:08:40 +0000 (21:08 +0900)]
Initialization

Change-Id: Idd5e0e66079d57694c50bba3d4bd6917368f9bb7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoInitial empty repository master
Tizen Infrastructure [Fri, 4 Jun 2021 07:48:03 +0000 (07:48 +0000)]
Initial empty repository