[TRE-2860] Add existing hal backend for tbm/tdm/mesa/bluetooth 32/269132/5
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 10 Jan 2022 07:21:53 +0000 (16:21 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 10 Jan 2022 08:10:20 +0000 (17:10 +0900)
Generic HAL Image uses the existing hal backend for
tbm/tdm/mesa/bluetooth module as following:
- hal-backend-tbm-dumb
- hal-backend-tdm-drm
- mesa
- hal-backend-bluetooth-usb

And copy the feature value from rpi4 hal backend configuration.

Change-Id: I9a18f55522442a6e320ccdb133ae8691d0beca04
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
packaging/platform-preset-boards-generic-hal-backend.inc

index d4ead9cf870b9f46a7ca213fc27ccf7f7d97a36e..8b1a6cf0790b5508d2887aa0539aab3f637eacfa 100644 (file)
@@ -22,6 +22,51 @@ Requires:    %{name}-sub2-Preset_boards-GENERIC_HAL_Backend-FlashManager
 %description sub1-Preset_boards-GENERIC_HAL_Backend
 Firstly select HAL Backends to add to your image.
 %files sub1-Preset_boards-GENERIC_HAL_Backend
+%posttrans sub1-Preset_boards-GENERIC_HAL_Backend
+%tizen_hal_feature tizen.org/system/platform.processor none
+%tizen_hal_feature tizen.org/system/platform.communication_processor none
+%tizen_hal_feature tizen.org/feature/network.asp true
+%tizen_hal_feature tizen.org/feature/network.mtp true
+%tizen_hal_feature tizen.org/feature/network.push true
+%tizen_hal_feature tizen.org/feature/network.wifi true
+%tizen_hal_feature tizen.org/feature/network.ethernet true
+%tizen_hal_feature tizen.org/feature/network.internet true
+%tizen_hal_feature tizen.org/feature/network.inm true
+%tizen_hal_feature tizen.org/feature/network.service_discovery.dnssd true
+%tizen_hal_feature tizen.org/feature/network.service_discovery.ssdp true
+%tizen_hal_feature tizen.org/feature/network.wifi.tdls false
+%tizen_hal_feature tizen.org/feature/network.wifi.softap true
+%tizen_hal_feature tizen.org/feature/network.wifi.direct true
+%tizen_hal_feature tizen.org/feature/network.wifi.direct.display true
+%tizen_hal_feature tizen.org/feature/network.vpn true
+%tizen_hal_feature tizen.org/feature/network.tethering true
+%tizen_hal_feature tizen.org/feature/network.tethering.wifi true
+%tizen_hal_feature tizen.org/feature/network.traffic_control true
+%tizen_hal_feature tizen.org/feature/screen.height 720
+%tizen_hal_feature tizen.org/feature/screen.output.hdmi true
+%tizen_hal_feature tizen.org/feature/screen.output.rca false
+%tizen_hal_feature tizen.org/feature/screen.shape.circle false
+%tizen_hal_feature tizen.org/feature/screen.shape.rectangle true
+%tizen_hal_feature tizen.org/feature/screen.size.normal.720.1280 true
+%tizen_hal_feature tizen.org/feature/screen.width 1280
+%tizen_hal_feature tizen.org/feature/sensor.accelerometer false
+%tizen_hal_feature tizen.org/feature/sensor.gravity false
+%tizen_hal_feature tizen.org/feature/sensor.linear_acceleration false
+%tizen_hal_feature tizen.org/feature/sensor.proximity false
+%tizen_hal_feature tizen.org/feature/sensor.temperature false
+%tizen_hal_feature tizen.org/feature/sensor.heart_rate_monitor.batch false
+%tizen_hal_feature tizen.org/feature/sensor.heart_rate_monitor.led_green.batch false
+%tizen_hal_feature tizen.org/feature/storage.external true
+%tizen_hal_feature tizen.org/feature/peripheral_io.gpio true
+%tizen_hal_feature tizen.org/feature/peripheral_io.i2c true
+%tizen_hal_feature tizen.org/feature/peripheral_io.pwm false
+%tizen_hal_feature tizen.org/feature/peripheral_io.spi true
+%tizen_hal_feature tizen.org/feature/peripheral_io.uart true
+%tizen_hal_feature tizen.org/system/model_name generic
+%tizen_hal_feature tizen.org/feature/diagnostics true
+%tizen_hal_feature tizen.org/feature/iot.ocf true
+%tizen_hal_feature tizen.org/feature/usb.host true
+%tizen_hal_feature tizen.org/feature/download true
 
 ### GENERIC-Power ###
 %package sub2-Preset_boards-GENERIC_HAL_Backend-Power
@@ -42,10 +87,26 @@ Packages for Deviced HAL and Feature for RPI.
 ### GENERIC-Bluetooth ###
 %package sub2-Preset_boards-GENERIC_HAL_Backend-Bluetooth
 Summary:       GENERIC_Bluetooth for HAL
+Requires:      hal-backend-bluetooth-usb
 
 %description sub2-Preset_boards-GENERIC_HAL_Backend-Bluetooth
 Packages of Bluetooth HAL and Feature for GENERIC.
 %files sub2-Preset_boards-GENERIC_HAL_Backend-Bluetooth
+%posttrans sub2-Preset_boards-GENERIC_HAL_Backend-Bluetooth
+%tizen_hal_feature tizen.org/feature/network.bluetooth true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.audio.call true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.audio.controller true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.audio.media true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.phonebook.client true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.opp true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.hid true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.hid_device true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.health true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.le true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.le.gatt.server true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.le.gatt.client true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.oob true
+%tizen_hal_feature tizen.org/feature/network.bluetooth.le.5_0 false
 
 ### GENERIC-Audio ###
 %package sub2-Preset_boards-GENERIC_HAL_Backend-Audio
@@ -74,10 +135,26 @@ Packages of Camera HAL and Feature for GENERIC(Common).
 ### GENERIC-Display ###
 %package sub2-Preset_boards-GENERIC_HAL_Backend-Display
 Summary:       GENERIC_Display for HAL
+Requires:      hal-backend-tbm-dumb
+Requires:      hal-backend-tdm-drm
+Requires:      mesa
 
 %description sub2-Preset_boards-GENERIC_HAL_Backend-Display
 Packages of Display HAL and Feature for GENERIC.
 %files sub2-Preset_boards-GENERIC_HAL_Backend-Display
+%posttrans sub2-Preset_boards-GENERIC_HAL_Backend-Display
+%tizen_hal_feature tizen.org/feature/graphics.acceleration true
+%tizen_hal_feature tizen.org/feature/multi_point_touch.pinch_zoom true
+%tizen_hal_feature tizen.org/feature/opengles true
+%tizen_hal_feature tizen.org/feature/opengles.version.1_1 true
+%tizen_hal_feature tizen.org/feature/opengles.version.2_0 true
+%tizen_hal_feature tizen.org/feature/opengles.version.3_0 false
+%tizen_hal_feature tizen.org/feature/opengles.version.3_1 false
+%tizen_hal_feature tizen.org/feature/opengles.version.3_2 false
+%tizen_hal_feature tizen.org/feature/vulkan.version.1_0 false
+%tizen_hal_feature tizen.org/feature/screen true
+%tizen_hal_feature tizen.org/feature/opengles.surfaceless_context true
+%tizen_hal_feature tizen.org/feature/display true
 
 ### GENERIC-Codec ###
 %package sub2-Preset_boards-GENERIC_HAL_Backend-Codec