Add new VIM3 and C4 hal backend files 13/259613/2
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 9 Jun 2021 07:38:07 +0000 (16:38 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 10 Jun 2021 08:57:47 +0000 (17:57 +0900)
Add new VIM3 and C4 hal backend inc files to support Amlogic series
devices and each hal backend inc file contains the following packages:

The hal backens files contains power/device/bluetooth/audio/camera
/display/codec/sensor hal backend packages basically.

1. platform-preset-boards-vim3-hal-backend.inc for Khadas VIM3 board
: VIM3_HAL_Backend-System_Device is hal-backend-device-vim3
: VIM3_HAL_Backend-Bluetooth is hal-backend-bluetooth-usb
: VIM3_HAL_Backend-Camera_Common is camera-hal-v4l2
: VIM3_HAL_Backend-Power/Audio/Display/Codec/Sensor have not yet implemented.

2. platform-preset-boards-c4-hal-backend.inc for Odroid C4 board
: C4_HAL_Backend-System_Device is hal-backend-device-c4
: C4_HAL_Backend-Camera_Common is camera-hal-v4l2
: C4_HAL_Backend-Power/Audio/Display/Codec/Bluetooth have not yet implemented.

Change-Id: I0a5c0c021f11776d8082b3741eb0908209b60ade
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
packaging/building-blocks.spec
packaging/platform-preset-boards-c4-hal-backend.inc [new file with mode: 0644]
packaging/platform-preset-boards-vim3-hal-backend.inc [new file with mode: 0644]
packaging/platform-preset-boards.inc

index 9f8970a7c786c15efe17bd668bbb4ef569b7119f..4e6730353695021ecefa612a689aa6c331b93c02 100644 (file)
@@ -90,6 +90,10 @@ Source3820:  platform-preset-boards-common.inc
 Source3802:    platform-preset-boards-artik530.inc
 Source3812:    platform-preset-boards-artik530-hal-backend.inc
 %endif
+%ifarch aarch64
+Source3813:    platform-preset-boards-vim3-hal-backend.inc
+Source3814:    platform-preset-boards-c4-hal-backend.inc
+%endif
 %ifarch i586 i686 x86_64
 Source3803: platform-preset-boards-emul.inc
 %endif
@@ -419,6 +423,10 @@ python ./rule_checker.py
 %{include_if_mainbuild %{SOURCE3802}}
 %{include_if_mainbuild %{SOURCE3812}}
 %endif
+%ifarch aarch64
+%{include_if_mainbuild %{SOURCE3813}}
+%{include_if_mainbuild %{SOURCE3814}}
+%endif
 %ifarch i586 i686 x86_64
 %{include_if_mainbuild %{SOURCE3803}}
 %endif
diff --git a/packaging/platform-preset-boards-c4-hal-backend.inc b/packaging/platform-preset-boards-c4-hal-backend.inc
new file mode 100644 (file)
index 0000000..a66b508
--- /dev/null
@@ -0,0 +1,78 @@
+# Maintainer: Tizen PM?
+# You need ACK (+1) from the maintainer to be reviewed by building-block maintainers.
+
+################
+###  C4  ###
+################
+%package sub1-Preset_boards-C4_HAL_Backend
+Summary:       C4 Selection for HAL
+Requires:      %{name}-sub2-Preset_boards-C4_HAL_Backend-Power
+Requires:      %{name}-sub2-Preset_boards-C4_HAL_Backend-System_Device
+Requires:      %{name}-sub2-Preset_boards-C4_HAL_Backend-Bluetooth
+Requires:      %{name}-sub2-Preset_boards-C4_HAL_Backend-Audio
+Requires:      %{name}-sub2-Preset_boards-C4_HAL_Backend-Camera_Common
+Requires:      %{name}-sub2-Preset_boards-C4_HAL_Backend-Display
+Requires:      %{name}-sub2-Preset_boards-C4_HAL_Backend-Codec
+
+%description sub1-Preset_boards-C4_HAL_Backend
+Firstly select HAL Backends to add to your image.
+%files sub1-Preset_boards-C4_HAL_Backend
+
+### C4-Power ###
+%package sub2-Preset_boards-C4_HAL_Backend-Power
+Summary:       C4_Power
+
+%description sub2-Preset_boards-C4_HAL_Backend-Power
+Packages for PASS HAL and Feature for C4.
+%files sub2-Preset_boards-C4_HAL_Backend-Power
+
+### C4-System_Device ###
+%package sub2-Preset_boards-C4_HAL_Backend-System_Device
+Summary:       C4_Deviced Plugin for HAL
+Requires:      hal-backend-device-c4
+
+%description sub2-Preset_boards-C4_HAL_Backend-System_Device
+Packages for Deviced HAL and Feature for C4.
+%files sub2-Preset_boards-C4_HAL_Backend-System_Device
+
+### C4-Bluetooth ###
+%package sub2-Preset_boards-C4_HAL_Backend-Bluetooth
+Summary:       C4_Bluetooth for HAL
+Requires:      hal-backend-bluetooth-usb
+
+%description sub2-Preset_boards-C4_HAL_Backend-Bluetooth
+Packages of Bluetooth HAL and Feature for C4.
+%files sub2-Preset_boards-C4_HAL_Backend-Bluetooth
+
+### C4-Audio ###
+%package sub2-Preset_boards-C4_HAL_Backend-Audio
+Summary:       C4_Audio for HAL
+
+%description sub2-Preset_boards-C4_HAL_Backend-Audio
+Packages of Audio HAL and Feature for C4.
+%files sub2-Preset_boards-C4_HAL_Backend-Audio
+
+### C4-Camera_Common ###
+%package sub2-Preset_boards-C4_HAL_Backend-Camera_Common
+Summary:       C4_Camera(Common) for HAL
+Requires:      camera-hal-v4l2
+
+%description sub2-Preset_boards-C4_HAL_Backend-Camera_Common
+Packages of Camera HAL and Feature for C4(Common).
+%files sub2-Preset_boards-C4_HAL_Backend-Camera_Common
+
+### C4-Display ###
+%package sub2-Preset_boards-C4_HAL_Backend-Display
+Summary:       C4_Display for HAL
+
+%description sub2-Preset_boards-C4_HAL_Backend-Display
+Packages of Display HAL and Feature for C4.
+%files sub2-Preset_boards-C4_HAL_Backend-Display
+
+### C4-Codec ###
+%package sub2-Preset_boards-C4_HAL_Backend-Codec
+Summary:       C4_Codec for HAL
+
+%description sub2-Preset_boards-C4_HAL_Backend-Codec
+Packages of Codec HAL and Feature for C4.
+%files sub2-Preset_boards-C4_HAL_Backend-Codec
diff --git a/packaging/platform-preset-boards-vim3-hal-backend.inc b/packaging/platform-preset-boards-vim3-hal-backend.inc
new file mode 100644 (file)
index 0000000..2613172
--- /dev/null
@@ -0,0 +1,86 @@
+# Maintainer: Tizen PM?
+# You need ACK (+1) from the maintainer to be reviewed by building-block maintainers.
+
+################
+###  VIM3  ###
+################
+%package sub1-Preset_boards-VIM3_HAL_Backend
+Summary:       VIM3 Selection for HAL
+Requires:      %{name}-sub2-Preset_boards-VIM3_HAL_Backend-Power
+Requires:      %{name}-sub2-Preset_boards-VIM3_HAL_Backend-System_Device
+Requires:      %{name}-sub2-Preset_boards-VIM3_HAL_Backend-Bluetooth
+Requires:      %{name}-sub2-Preset_boards-VIM3_HAL_Backend-Audio
+Requires:      %{name}-sub2-Preset_boards-VIM3_HAL_Backend-Camera_Common
+Requires:      %{name}-sub2-Preset_boards-VIM3_HAL_Backend-Display
+Requires:      %{name}-sub2-Preset_boards-VIM3_HAL_Backend-Codec
+Requires:      %{name}-sub2-Preset_boards-VIM3_HAL_Backend-Sensor
+
+%description sub1-Preset_boards-VIM3_HAL_Backend
+Firstly select HAL Backends to add to your image.
+%files sub1-Preset_boards-VIM3_HAL_Backend
+
+### VIM3-Power ###
+%package sub2-Preset_boards-VIM3_HAL_Backend-Power
+Summary:       VIM3_Power
+
+%description sub2-Preset_boards-VIM3_HAL_Backend-Power
+Packages for PASS HAL and Feature for VIM3.
+%files sub2-Preset_boards-VIM3_HAL_Backend-Power
+
+### VIM3-System_Device ###
+%package sub2-Preset_boards-VIM3_HAL_Backend-System_Device
+Summary:       VIM3_Deviced Plugin for HAL
+Requires:      hal-backend-device-vim3
+
+%description sub2-Preset_boards-VIM3_HAL_Backend-System_Device
+Packages for Deviced HAL and Feature for VIM3.
+%files sub2-Preset_boards-VIM3_HAL_Backend-System_Device
+
+### VIM3-Bluetooth ###
+%package sub2-Preset_boards-VIM3_HAL_Backend-Bluetooth
+Summary:       VIM3_Bluetooth for HAL
+
+%description sub2-Preset_boards-VIM3_HAL_Backend-Bluetooth
+Packages of Bluetooth HAL and Feature for VIM3.
+%files sub2-Preset_boards-VIM3_HAL_Backend-Bluetooth
+
+### VIM3-Audio ###
+%package sub2-Preset_boards-VIM3_HAL_Backend-Audio
+Summary:       VIM3_Audio for HAL
+
+%description sub2-Preset_boards-VIM3_HAL_Backend-Audio
+Packages of Audio HAL and Feature for VIM3.
+%files sub2-Preset_boards-VIM3_HAL_Backend-Audio
+
+### VIM3-Camera_Common ###
+%package sub2-Preset_boards-VIM3_HAL_Backend-Camera_Common
+Summary:       VIM3_Camera(Common) for HAL
+Requires:      camera-hal-v4l2
+
+%description sub2-Preset_boards-VIM3_HAL_Backend-Camera_Common
+Packages of Camera HAL and Feature for VIM3(Common).
+%files sub2-Preset_boards-VIM3_HAL_Backend-Camera_Common
+
+### VIM3-Display ###
+%package sub2-Preset_boards-VIM3_HAL_Backend-Display
+Summary:       VIM3_Display for HAL
+
+%description sub2-Preset_boards-VIM3_HAL_Backend-Display
+Packages of Display HAL and Feature for VIM3.
+%files sub2-Preset_boards-VIM3_HAL_Backend-Display
+
+### VIM3-Codec ###
+%package sub2-Preset_boards-VIM3_HAL_Backend-Codec
+Summary:       VIM3_Codec for HAL
+
+%description sub2-Preset_boards-VIM3_HAL_Backend-Codec
+Packages of Codec HAL and Feature for VIM3.
+%files sub2-Preset_boards-VIM3_HAL_Backend-Codec
+
+### VIM3-Sensor ###
+%package sub2-Preset_boards-VIM3_HAL_Backend-Sensor
+Summary:       VIM3_Sensor for HAL
+
+%description sub2-Preset_boards-VIM3_HAL_Backend-Sensor
+Packages of Sensor HAL and Feature for VIM3.
+%files sub2-Preset_boards-VIM3_HAL_Backend-Sensor
index 49d32310b0ac09cdb872f0527b3ecfe5cdb0106f..f884adbe6a665d94cd457168dafb941ddae2db6b 100644 (file)
@@ -14,6 +14,10 @@ Suggests:    %{name}-sub1-Preset_boards-COMMON
 Suggests:      %{name}-sub1-Preset_boards-RPI3
 Suggests:      %{name}-sub1-Preset_boards-RPI3_HAL_Backend
 %endif
+%ifarch aarch64
+Suggests:      %{name}-sub1-Preset_boards-VIM3_HAL_Backend
+Suggests:      %{name}-sub1-Preset_boards-C4_HAL_Backend
+%endif
 %ifarch i586 i686 x86_64
 Suggests:      %{name}-sub1-Preset_boards-EMUL
 %endif